Skip to content

Commit 2482e66

Browse files
committed
Update clang-format rules to newer version.
1 parent b2af9d4 commit 2482e66

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.clang-format

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ AlignConsecutiveDeclarations: false
1212
AlignConsecutiveMacros: false
1313
AlignEscapedNewlines: DontAlign
1414
AlignOperands: Align
15-
AlignTrailingComments: false
15+
AlignTrailingComments:
16+
Kind: Leave
1617
AllowAllArgumentsOnNextLine: true
1718
AllowAllParametersOfDeclarationOnNextLine: true
1819
AllowShortBlocksOnASingleLine: Never
@@ -55,6 +56,7 @@ BreakBeforeTernaryOperators: false
5556
BreakConstructorInitializers: AfterColon
5657
BreakInheritanceList: BeforeComma
5758
BreakStringLiterals: false
59+
# clang-format 19 BreakTemplateDeclarations: Yes
5860
ColumnLimit: 0
5961
CompactNamespaces: false
6062
ConstructorInitializerAllOnOneLineOrOnePerLine: false
@@ -84,7 +86,7 @@ IndentGotoLabels: false
8486
IndentPPDirectives: BeforeHash
8587
IndentWidth: 4
8688
IndentWrappedFunctionNames: false
87-
# clang-format-16 InsertNewlineAtEOF: true
89+
InsertNewlineAtEOF: true
8890
InsertTrailingCommas: Wrapped
8991
KeepEmptyLinesAtTheStartOfBlocks: false
9092
MacroBlockBegin: ''
@@ -100,7 +102,7 @@ PenaltyBreakTemplateDeclaration: 10
100102
PenaltyExcessCharacter: 1000000
101103
PenaltyReturnTypeOnItsOwnLine: 200
102104
PointerAlignment: Right
103-
ReflowComments: false
105+
ReflowComments: Always
104106
SortIncludes: CaseInsensitive
105107
SortUsingDeclarations: true
106108
SpaceAfterCStyleCast: false

0 commit comments

Comments
 (0)