Skip to content

Commit fd67f46

Browse files
committed
Update clang-format configuration for version 13
1 parent 8ffd932 commit fd67f46

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.clang-format

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# Clang-Format 12.0.0
2-
# https://releases.llvm.org/12.0.0/tools/clang/docs/ClangFormatStyleOptions.html
1+
# Clang-Format 13.0.0
2+
# https://releases.llvm.org/13.0.0/tools/clang/docs/ClangFormatStyleOptions.html
33
---
44
AccessModifierOffset: -4
55
AlignAfterOpenBracket: AlwaysBreak
6+
AlignArrayOfStructures: None
67
AlignConsecutiveAssignments: None
78
AlignConsecutiveBitFields: None
89
AlignConsecutiveDeclarations: None
@@ -20,6 +21,7 @@ AllowShortFunctionsOnASingleLine: None
2021
AllowShortIfStatementsOnASingleLine: Never
2122
AllowShortLambdasOnASingleLine: Inline
2223
AllowShortLoopsOnASingleLine: false
24+
AlwaysBreakAfterDefinitionReturnType: None
2325
AlwaysBreakAfterReturnType: None
2426
AlwaysBreakBeforeMultilineStrings: true
2527
AlwaysBreakTemplateDeclarations: Yes
@@ -60,6 +62,7 @@ Cpp11BracedListStyle: true
6062
DeriveLineEnding: false
6163
DerivePointerAlignment: false
6264
DisableFormat: false
65+
EmptyLineAfterAccessModifier: Never
6366
EmptyLineBeforeAccessModifier: Always
6467
FixNamespaceComments: true
6568
IncludeBlocks: Regroup
@@ -74,6 +77,7 @@ IncludeCategories:
7477
Priority: 5
7578
- Regex: '<[[:alnum:]/_]+>'
7679
Priority: 6
80+
IndentAccessModifiers: false
7781
IndentCaseBlocks: false
7882
IndentCaseLabels: true
7983
IndentExternBlock: NoIndent
@@ -84,11 +88,15 @@ IndentWidth: 4
8488
IndentWrappedFunctionNames: false
8589
InsertTrailingCommas: Wrapped
8690
KeepEmptyLinesAtTheStartOfBlocks: false
91+
LambdaBodyIndentation: Signature
8792
MaxEmptyLinesToKeep: 1
8893
NamespaceIndentation: Inner
94+
PPIndentWidth: -1
8995
PointerAlignment: Right
96+
ReferenceAlignment: Right
9097
ReflowComments: true
91-
SortIncludes: true
98+
ShortNamespaceLines: 0
99+
SortIncludes: CaseInsensitive
92100
SortUsingDeclarations: true
93101
SpaceAfterCStyleCast: false
94102
SpaceAfterLogicalNot: false
@@ -109,6 +117,9 @@ SpacesInAngles: false
109117
SpacesInCStyleCastParentheses: false
110118
SpacesInConditionalStatement: false
111119
SpacesInContainerLiterals: false
120+
SpacesInLineCommentPrefix:
121+
Minimum: 1
122+
Maximum: -1
112123
SpacesInParentheses: false
113124
SpacesInSquareBrackets: false
114125
Standard: c++20

0 commit comments

Comments
 (0)