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 05756e5 commit e162040Copy full SHA for e162040
scripts/sipify.pl
@@ -950,8 +950,9 @@ sub detect_non_method_member{
950
}
951
952
# Enum declaration
953
- if ( $LINE =~ m/^\s*enum\s+\w+.*?$/ ){
954
- write_output("ENU1", "$LINE\n");
+ # For scoped and type based enum, the type has to be removed
+ if ( $LINE =~ m/^(\s*enum\s+(class\s+)?\w+)(\s*:\s*\w+)?.*$/ ){
955
+ write_output("ENU1", "$1\n");
956
if ($LINE =~ m/\{((\s*\w+)(\s*=\s*[\w\s\d<|]+.*?)?(,?))+\s*\}/){
957
# one line declaration
958
$LINE !~ m/=/ or exit_with_error("spify.pl does not handle enum one liners with value assignment. Use multiple lines instead.");
0 commit comments