Sfoglia il codice sorgente

clang-format: Enable skipping of macro definitions for clang-format 19

Without this setting many multi-line macro definitions in the code-base
would have been reformatted. As many of those definitions are formatted
in a bespoke way to ensure legibility, changing their format would be
detrimental to that specific goal.
PatTheMav 7 mesi fa
parent
commit
b3ab792916
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      .clang-format

+ 1 - 0
.clang-format

@@ -81,6 +81,7 @@ PenaltyReturnTypeOnItsOwnLine: 60
 
 PointerAlignment: Right
 ReflowComments: false
+SkipMacroDefinitionBody: true
 SortIncludes: false
 SortUsingDeclarations: false
 SpaceAfterCStyleCast: false