summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2022-11-30 21:12:20 +0100
committerDr. David von Oheimb <dev@ddvo.net>2023-03-14 17:36:40 +0100
commitd327f7c4ad2fe19bb6e69818dc540f8ae7c37a39 (patch)
tree4cf4ba748737f8da9ca1c082917a68e7d0ef1232 /util
parenta49ade26324423fdf6eed4083a71f44e8a17754f (diff)
check-format.pl: fix detection of '#ifdef __cplusplus'
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/20254)
Diffstat (limited to 'util')
-rwxr-xr-xutil/check-format.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/check-format.pl b/util/check-format.pl
index 8303c7823f..21ecaf0aa6 100755
--- a/util/check-format.pl
+++ b/util/check-format.pl
@@ -715,7 +715,7 @@ while (<>) { # loop over all lines of all input files
my $space_count = length($space); # maybe could also use indentation before '#'
report("'#if' nesting indent = $space_count != $preproc_if_nesting") if $space_count != $preproc_if_nesting;
$preproc_if_nesting++ if $preproc_directive =~ m/^(if|ifdef|ifndef|else|elif)$/;
- $ifdef__cplusplus = $preproc_directive eq "ifdef2" && m/\s+__cplusplus\s*$/;
+ $ifdef__cplusplus = $preproc_directive eq "ifdef" && m/\s+__cplusplus\s*$/;
# handle indentation of preprocessor directive independently of surrounding normal code
$count = -1; # do not check indentation of first line of preprocessor directive