mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
checkSpace: don't treat an unindented label as starting a function.
This commit is contained in:
parent
9feeb4cf97
commit
c8fae6b5c8
@ -207,7 +207,7 @@ for my $fn (@ARGV) {
|
|||||||
if ($in_func_head ||
|
if ($in_func_head ||
|
||||||
($fn !~ /\.h$/ && /^[a-zA-Z0-9_]/ &&
|
($fn !~ /\.h$/ && /^[a-zA-Z0-9_]/ &&
|
||||||
! /^(?:const |static )*(?:typedef|struct|union)[^\(]*$/ &&
|
! /^(?:const |static )*(?:typedef|struct|union)[^\(]*$/ &&
|
||||||
! /= *\{$/ && ! /;$/)) {
|
! /= *\{$/ && ! /;$/) && ! /^[a-zA-Z0-9_]+\s*:/) {
|
||||||
if (/.\{$/){
|
if (/.\{$/){
|
||||||
msg "fn() {:$fn:$.\n";
|
msg "fn() {:$fn:$.\n";
|
||||||
$in_func_head = 0;
|
$in_func_head = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user