Using an open bracket after what seems to be a declaration can also be a function definition and declaration argument line continuation so remove the open bracket from the possible declaration/definition matching. e.g.: int foobar(int a; int *b[]);
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -3020,7 +3020,7 @@ sub process { · 3019 unmodified lines | ||
| 3020 | 3020 | |
| 3021 | 3021 | # check indentation starts on a tab stop |
| 3022 | 3022 | if ($^V && $^V ge 5.10.0 && |
| 3023 | − $sline =~ /^\+\t+( +)(?:$c90_Keywords\b|\{\s*$|\}\s*(?:else\b|while\b|\s*$)|$Declare\s*$Ident\s*[;=\[])/) { | |
| 3023 | + $sline =~ /^\+\t+( +)(?:$c90_Keywords\b|\{\s*$|\}\s*(?:else\b|while\b|\s*$)|$Declare\s*$Ident\s*[;=])/) { | |
| 3024 | 3024 | my $indent = length($1); |
| 3025 | 3025 | if ($indent % 8) { |
| 3026 | 3026 | if (WARN("TABSTOP", |