Skip to content

Commit bfc3821

Browse files
committed
update .clang-format
1 parent 66ba5e6 commit bfc3821

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.clang-format

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
Language: Cpp
33
# BasedOnStyle: WebKit
44
AccessModifierOffset: -4
5-
AlignAfterOpenBracket: DontAlign
5+
AlignAfterOpenBracket: Align
6+
#AlignAfterOpenBracket: DontAlign
67
AlignArrayOfStructures: None
78
AlignConsecutiveMacros: None
89
AlignConsecutiveAssignments: None
@@ -22,7 +23,8 @@ AllowShortLambdasOnASingleLine: All
2223
AllowShortIfStatementsOnASingleLine: Never
2324
AllowShortLoopsOnASingleLine: false
2425
AlwaysBreakAfterDefinitionReturnType: None
25-
AlwaysBreakAfterReturnType: AllDefinitions
26+
AlwaysBreakAfterReturnType: TopLevelDefinitions
27+
#AlwaysBreakAfterReturnType: None
2628
AlwaysBreakBeforeMultilineStrings: false
2729
AlwaysBreakTemplateDeclarations: MultiLine
2830
AttributeMacros:
@@ -63,14 +65,16 @@ CommentPragmas: '^ IWYU pragma:'
6365
CompactNamespaces: false
6466
ConstructorInitializerAllOnOneLineOrOnePerLine: false
6567
ConstructorInitializerIndentWidth: 4
66-
ContinuationIndentWidth: 4
68+
ContinuationIndentWidth: 8
69+
#ContinuationIndentWidth: 4
6770
Cpp11BracedListStyle: false
6871
DeriveLineEnding: true
6972
DerivePointerAlignment: false
7073
DisableFormat: false
7174
EmptyLineAfterAccessModifier: Never
7275
EmptyLineBeforeAccessModifier: LogicalBlock
73-
ExperimentalAutoDetectBinPacking: false
76+
ExperimentalAutoDetectBinPacking: true
77+
#ExperimentalAutoDetectBinPacking: false
7478
FixNamespaceComments: false
7579
ForEachMacros:
7680
- foreach
@@ -129,9 +133,11 @@ PenaltyIndentedWhitespace: 0
129133
PointerAlignment: Left
130134
PPIndentWidth: -1
131135
ReferenceAlignment: Pointer
132-
ReflowComments: true
136+
ReflowComments: false
137+
#ReflowComments: true
133138
ShortNamespaceLines: 1
134139
SortIncludes: false
140+
#SortIncludes: CaseSensitive
135141
SortJavaStaticImport: Before
136142
SortUsingDeclarations: true
137143
SpaceAfterCStyleCast: false

0 commit comments

Comments
 (0)