We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 64bb3ef commit 10fc175Copy full SHA for 10fc175
scripts/sipify.pl
@@ -935,11 +935,11 @@ sub detect_non_method_member{
935
if (detect_comment_block()){
936
next;
937
}
938
- if ($LINE =~ m/\};/){
939
- last;
940
- }
+ last if ($LINE =~ m/\};/);
+ next if ($LINE =~ m/^\s*\w+\s*\|/); # multi line declaration as sum of enums
+
941
do {no warnings 'uninitialized';
942
- my $enum_decl = $LINE =~ s/(\s*\w+)(\s+SIP_\w+(?:\([^()]+\))?)?(?:\s*=\s*(?:[\w\s\d|+-]|::|<<)+.*?)?(,?).*$/$1$2$3/r;
+ my $enum_decl = $LINE =~ s/^(\s*\w+)(\s+SIP_\w+(?:\([^()]+\))?)?(?:\s*=\s*(?:[\w\s\d|+-]|::|<<)+)?(,?).*$/$1$2$3/r;
943
$enum_decl = fix_annotations($enum_decl);
944
write_output("ENU3", "$enum_decl\n");
945
};
0 commit comments