mirror of
https://github.com/openssl/openssl.git
synced 2025-03-13 19:47:47 +08:00
check-format.pl: Fix false positive "no SPC before binary '*'" for '!*'
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15077)
This commit is contained in:
parent
435e659a03
commit
9ad9002dd5
@ -683,7 +683,7 @@ while (<>) { # loop over all lines of all input files
|
||||
# TODO ternary ':' without preceding SPC, while allowing no SPC before ':' after 'case'
|
||||
report("no SPC before binary '$1'") if $intra_line =~ m/[^\s{()\[]([+\-])/;# +/- without preceding space or {()[
|
||||
# or ')' (which is used f type casts)
|
||||
report("no SPC before binary '$1'") if $intra_line =~ m/[^\s{()\[*]([*])/; # '*' without preceding space or {()[*
|
||||
report("no SPC before binary '$1'") if $intra_line =~ m/[^\s{()\[*!]([*])/; # '*' without preceding space or {()[*!
|
||||
report("no SPC before binary '$1'") if $intra_line =~ m/[^\s{()\[]([&])/; # '&' without preceding space or {()[
|
||||
report("no SPC after ternary '$1'") if $intra_line =~ m/(:)[^\s\d]/; # ':' without following space or digit
|
||||
report("no SPC after '$1'") if $intra_line =~ m/([,;=|\/%<>^\?])\S/; # ,;=|/%<>^? without following space
|
||||
|
Loading…
x
Reference in New Issue
Block a user