Skip to content
Permalink
Browse files
[sipify] handle SIP_SKIP on several lines
  • Loading branch information
3nids committed Apr 20, 2017
1 parent 1ab5a62 commit f022858643dfa613b43d8ad438bfc7f108017f98
Showing with 14 additions and 0 deletions.
  1. +9 −0 scripts/sipify.pl
  2. +1 −0 tests/scripts/sipifyheader.expected.sip
  3. +4 −0 tests/scripts/sipifyheader.h
@@ -189,6 +189,15 @@ sub processDoxygenLine
# SIP_SKIP
if ( $line =~ m/SIP_SKIP/ ){
$comment = '';
# if multiline definition, remove previous lines
if ( $MULTILINE_DEFINITION == 1){
my $opening_line = '';
while ( $opening_line !~ m/^[^()]*\(([^()]*\([^()]*\)[^()]*)*[^()]*$/){
$opening_line = pop(@output);
$#output >= 0 or die 'could not reach opening definition';
}
$MULTILINE_DEFINITION = 0;
}
next;
}

@@ -120,6 +120,7 @@ A multiline method signature

void nonAnnotatedMethodFollowingSkip();


virtual QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) /Factory/;
%Docstring
Factory annotation
@@ -163,6 +163,10 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas

void nonAnnotatedMethodFollowingSkip();

bool myMultiLineSkipped( const QList<int, QString> &list1,
const QList<int, QString> &list2,
const QList<int, QString> &list3 ) SIP_SKIP;

//! Factory annotation
virtual QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) override SIP_FACTORY;

0 comments on commit f022858

Please sign in to comment.