File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -957,11 +957,13 @@ sub detect_non_method_member{
957
957
958
958
# Enum declaration
959
959
# For scoped and type based enum, the type has to be removed
960
- if ( $LINE =~ m / ^(\s *enum\s +(class\s +)?(\w +))(:?\s +SIP_.*)?(\s *:\s *\w +)?(?<oneliner>.*)$ / ){
961
- write_output(" ENU1" , " $1 " );
960
+ if ( $LINE =~ m / ^(\s *enum(\s +Q_DECL_DEPRECATED)?\s +(class\s +)?(?<enum_qualname>\w +))(:?\s +SIP_.*)?(\s *:\s *\w +)?(?<oneliner>.*)$ / ){
961
+ my $enum_decl = $1 ;
962
+ $enum_decl =~ s /\s *\b Q_DECL_DEPRECATED\b // ;
963
+ write_output(" ENU1" , " $enum_decl " );
962
964
write_output(" ENU1" , $+ {oneliner }) if defined $+ {oneliner };
963
965
write_output(" ENU1" , " \n " );
964
- my $enum_qualname = $3 ;
966
+ my $enum_qualname = $+ { enum_qualname } ;
965
967
my $is_scope_based = " 0" ;
966
968
$is_scope_based = " 1" if defined $2 ;
967
969
my $monkeypatch = " 0" ;
You can’t perform that action at this time.
0 commit comments