File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2693,7 +2693,7 @@ sub process {
2693
2693
my $second = $2 ;
2694
2694
my $start_pos = $- [1];
2695
2695
my $end_pos = $+ [2];
2696
- if ($first =~ / (?:struct|union|enum)/ ) {
2696
+ if ($first =~ / (?:class| struct|union|enum)/ ) {
2697
2697
pos ($rawline ) += length ($first ) + length ($second ) + 1;
2698
2698
next ;
2699
2699
}
@@ -2705,6 +2705,10 @@ sub process {
2705
2705
# @param request Request to process
2706
2706
next if $rawline =~ / ^\+\s\*\s +[\@\\ ]param(?:\[ [a-z,]*\] )*\s +$first $second / ;
2707
2707
2708
+ # Ignore variable declarations.
2709
+ next if $realfile =~ / .h|c|cc|proto$ / &&
2710
+ $rawline =~ / ^\+\s *(?:(?:$Storage |$Modifier |optional|required|repeated)\s +)*$first \s +$second \s *[=;]/ ;
2711
+
2708
2712
# check for character before and after the word matches
2709
2713
my $start_char = ' ' ;
2710
2714
my $end_char = ' ' ;
You can’t perform that action at this time.
0 commit comments