소스 검색

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 달 전
부모
커밋
b3ab792916
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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