mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
checkpatch: Fix bracing false positives on #if
789f88d0b2
only fixed #else,
fix also #if.
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
ea15fb0672
commit
d0510af26d
|
@ -2539,6 +2539,7 @@ sub process {
|
|||
}
|
||||
if (!defined $suppress_ifbraces{$linenr - 1} &&
|
||||
$line =~ /\b(if|while|for|else)\b/ &&
|
||||
$line !~ /\#\s*if/ &&
|
||||
$line !~ /\#\s*else/) {
|
||||
my $allowed = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue