From aa2b83d4ab9f15d83d0d4897d0176c585d94ecde Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Thu, 23 May 2024 10:42:06 -0400 Subject: [PATCH] clang-format: add array-for-each to correct formatting issues The ARRAY_FOR_EACH() and ARRAY_FOR_EACH_PTR() macros were not formatting correctly in vs code (and I would guess other editors). Add an entry to .clang-format so that the opening brace is on the same line as the macro. Signed-off-by: Chris Friedt --- .clang-format | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.clang-format b/.clang-format index 15012747148..8dc1f55d575 100644 --- a/.clang-format +++ b/.clang-format @@ -32,6 +32,8 @@ ColumnLimit: 100 ConstructorInitializerIndentWidth: 8 ContinuationIndentWidth: 8 ForEachMacros: + - 'ARRAY_FOR_EACH' + - 'ARRAY_FOR_EACH_PTR' - 'FOR_EACH' - 'FOR_EACH_FIXED_ARG' - 'FOR_EACH_IDX'