Skip to content

Commit d01f4a0

Browse files
szymon-czaprackisjanc
authored andcommitted
ci: Adjust .clang-format to properly handle STATS macro blocks.
Refined `MacroBlockBegin` and `MacroBlockEnd` to include `STATS_SECT_START` and `STATS_SECT_END`. Removed `STATS_NAME_START` and `STATS_NAME_END` from `StatementMacros`.
1 parent 57b6581 commit d01f4a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.clang-format

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ BraceWrapping:
2727
SplitEmptyRecord: false
2828
SplitEmptyNamespace: false
2929

30-
MacroBlockBegin: '(STATS_NAME_START | STATS_SECT_DECL)'
31-
MacroBlockEnd: 'STATS_NAME_END'
32-
StatementMacros: ['SLIST_HEAD', 'STATS_NAME_START', 'STATS_NAME_END']
30+
MacroBlockBegin: '(STATS_NAME_START|STATS_SECT_START)'
31+
MacroBlockEnd: '(STATS_NAME_END|STATS_SECT_END)'
32+
StatementMacros: ['SLIST_HEAD']
3333

3434
ForEachMacros:
3535
- 'SLIST_FOREACH'

0 commit comments

Comments
 (0)