From: Dr. David von Oheimb Date: Thu, 29 Apr 2021 06:05:10 +0000 (+0200) Subject: check-format.pl: Fix false positive "no SPC before binary '*'" for '!*' X-Git-Tag: openssl-3.0.0-beta1~462 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ad9002dd5f705d528ae20acb0e1b53767cde3dd;p=thirdparty%2Fopenssl.git check-format.pl: Fix false positive "no SPC before binary '*'" for '!*' Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15077) --- diff --git a/util/check-format.pl b/util/check-format.pl index 5c637f9333b..734022c5403 100755 --- a/util/check-format.pl +++ b/util/check-format.pl @@ -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