mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[sipify] handle SIP_SKIP on several lines
This commit is contained in:
parent
1ab5a628df
commit
f022858643
@ -189,6 +189,15 @@ while ($line_idx < $line_count){
|
||||
# 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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user