Commit 52b67815b1 for openssl.org
commit 52b67815b13f747c0a95662ac5d7342797ffc971
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Tue Aug 11 14:46:29 2026 +0200
.clang-format: add OSSL_LIST_FOREACH* macros to ForEachMacros
For some reason, these macros haven't been included in clang-format
config in commit 232b32804613 "Add a WebKit clang-format file", which
led to incorrect (and at times misleading) formatting of the code
that uses them. Rescind that omission.
Fixes: 232b32804613 "Add a WebKit clang-format file"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Milan Broz <mbroz@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Merge-date: Thu Sep 24 09:01:05 2026
Merged-from: https://github.com/openssl/openssl/pull/32304
diff --git a/.clang-format b/.clang-format
index 96f375529c..07513306ec 100644
--- a/.clang-format
+++ b/.clang-format
@@ -17,6 +17,14 @@ PointerAlignment: Right
# per STYLE.md
CommentPragmas: '(^ IWYU pragma:|^\*$|^-$)'
ForEachMacros:
+ - "OSSL_LIST_FOREACH"
+ - "OSSL_LIST_FOREACH_FROM"
+ - "OSSL_LIST_FOREACH_REV"
+ - "OSSL_LIST_FOREACH_REV_FROM"
+ - "OSSL_LIST_FOREACH_DELSAFE"
+ - "OSSL_LIST_FOREACH_DELSAFE_FROM"
+ - "OSSL_LIST_FOREACH_REV_DELSAFE"
+ - "OSSL_LIST_FOREACH_REV_DELSAFE_FROM"
- "OSSL_RBT_FOREACH"
- "OSSL_RBT_FOREACH_SAFE"
- "OSSL_RBT_FOREACH_REVERSE"