Tell clang-format that STACK_OF and LHASH_OF are types. If clang-format sees STACK_OF(T) *foo, it has a hard time telling whether * is a multiplication or a pointer and often indents things wrong. There is now a TypenameMacros option to fix this. Change-Id: I235f2f40ef32760e0232da265e78a4fbd5f187a0 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/43145 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/.clang-format b/.clang-format index 3ccecaa..f8a95c6 100644 --- a/.clang-format +++ b/.clang-format
@@ -8,4 +8,5 @@ # IncludeCategories does not recognize <openssl/header.h>. We should # reconfigure IncludeCategories to match. For now, keep it at Preserve. IncludeBlocks: Preserve +TypenameMacros: ['LHASH_OF', 'STACK_OF']