]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
check-format-test-negatives.c: add 2nd macro indent test and hint on how known false...
authorDr. David von Oheimb <dev@ddvo.net>
Fri, 13 Jun 2025 14:44:08 +0000 (16:44 +0200)
committerNeil Horman <nhorman@openssl.org>
Tue, 17 Jun 2025 19:33:20 +0000 (15:33 -0400)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27836)

(cherry picked from commit e925b99f9435826aca3fa41b7661e6e9fa7e10b6)

util/check-format-test-negatives.c

index 93cf20228bb35cebdc3b87786f95789bea734a87..33abf00215333db98d35bde992983d1e8a165477 100644 (file)
@@ -10,7 +10,7 @@
 
 /*
  * A collection of test cases where check-format.pl should not report issues.
- * There are some known false positives, though, which are marked below.
+ * There are some known false positives, though, which are marked below using /*@
  */
 
 #include <errno.h> /* should not report whitespace nits within <...> */
@@ -264,7 +264,14 @@ int g(void)
             && expr_line3)
         hanging_stmt;
 }
-#define m \
+
+#define m1                           \
+    if (ctx == NULL)                 \
+        return 0;                    \
+    if (ossl_param_is_empty(params)) \
+        return 1;                    \
+
+#define m2                                                               \
     do { /* should not be confused with function header followed by '{' */ \
     } while (0)