Browse Source

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 <cfriedt@tenstorrent.com>
pull/73029/head
Chris Friedt 1 year ago committed by Henrik Brix Andersen
parent
commit
aa2b83d4ab
  1. 2
      .clang-format

2
.clang-format

@ -32,6 +32,8 @@ ColumnLimit: 100 @@ -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'

Loading…
Cancel
Save