diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-10 09:25:04 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-06 14:33:05 -0500 |
commit | c8fae6b5c8c76089da37c169defbc63a53300a3f (patch) | |
tree | d92b6d1faefd99d99bc57a277f9cbe18820230cc /scripts/maint | |
parent | 9feeb4cf97d98c7b8cf3c7e871b239cea835f3f4 (diff) | |
download | tor-c8fae6b5c8c76089da37c169defbc63a53300a3f.tar.gz tor-c8fae6b5c8c76089da37c169defbc63a53300a3f.zip |
checkSpace: don't treat an unindented label as starting a function.
Diffstat (limited to 'scripts/maint')
-rwxr-xr-x | scripts/maint/checkSpace.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl index a5480d5ba4..bf1c69e00a 100755 --- a/scripts/maint/checkSpace.pl +++ b/scripts/maint/checkSpace.pl @@ -207,7 +207,7 @@ for my $fn (@ARGV) { if ($in_func_head || ($fn !~ /\.h$/ && /^[a-zA-Z0-9_]/ && ! /^(?:const |static )*(?:typedef|struct|union)[^\(]*$/ && - ! /= *\{$/ && ! /;$/)) { + ! /= *\{$/ && ! /;$/) && ! /^[a-zA-Z0-9_]+\s*:/) { if (/.\{$/){ msg "fn() {:$fn:$.\n"; $in_func_head = 0; |