Skip to content

Commit 9500b37

Browse files
committed
Modernize
1 parent f919f45 commit 9500b37

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.clang-format

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# the official .clang-format style for https://github.com/taocpp
22
#
3-
# clang-format-5.0 -i -style=file $(find . -name '[^.]*.[hc]pp')
3+
# clang-format -i -style=file $(find . -name '[^.]*.[hc]pp')
44

55
Language: Cpp
66
Standard: Cpp11
@@ -20,7 +20,7 @@ AllowShortIfStatementsOnASingleLine: false
2020
AllowShortLoopsOnASingleLine: false
2121
AlwaysBreakAfterReturnType: None
2222
AlwaysBreakBeforeMultilineStrings: false
23-
AlwaysBreakTemplateDeclarations: true
23+
AlwaysBreakTemplateDeclarations: Yes
2424
BinPackArguments: false
2525
BinPackParameters: false
2626
BraceWrapping:
@@ -31,40 +31,53 @@ BraceWrapping:
3131
AfterNamespace : true
3232
AfterStruct : true
3333
AfterUnion : true
34+
AfterExternBlock: true
3435
BeforeCatch : true
3536
BeforeElse : true
3637
IndentBraces : false
38+
SplitEmptyFunction: false
39+
SplitEmptyRecord: false
40+
SplitEmptyNamespace: false
3741
BreakBeforeBinaryOperators: All
3842
BreakBeforeBraces: Custom
3943
BreakBeforeTernaryOperators: false
44+
BreakConstructorInitializers: BeforeColon
45+
BreakInheritanceList: BeforeColon
4046
BreakStringLiterals: false
41-
BreakConstructorInitializersBeforeComma: false
4247
ColumnLimit: 0
48+
CompactNamespaces: false
4349
ConstructorInitializerAllOnOneLineOrOnePerLine: true
4450
ConstructorInitializerIndentWidth: 3
4551
ContinuationIndentWidth: 3
4652
Cpp11BracedListStyle: false
4753
DerivePointerAlignment: false
4854
DisableFormat: false
4955
ExperimentalAutoDetectBinPacking: false
56+
FixNamespaceComments: true
57+
IncludeBlocks: Preserve
5058
IndentCaseLabels: true
59+
IndentPPDirectives: None
5160
IndentWidth: 3
5261
IndentWrappedFunctionNames: false
53-
KeepEmptyLinesAtTheStartOfBlocks: true
62+
KeepEmptyLinesAtTheStartOfBlocks: false
5463
MaxEmptyLinesToKeep: 1
5564
NamespaceIndentation: All
5665
PointerAlignment: Left
5766
ReflowComments: false
5867
SortIncludes: true
68+
SortUsingDeclarations: false
5969
SpaceAfterCStyleCast: false
6070
SpaceAfterTemplateKeyword: false
6171
SpaceBeforeAssignmentOperators: true
72+
SpaceBeforeCpp11BracedList: false
73+
SpaceBeforeCtorInitializerColon: true
74+
SpaceBeforeInheritanceColon: true
6275
SpaceBeforeParens: Never
76+
SpaceBeforeRangeBasedForLoopColon: true
6377
SpaceInEmptyParentheses: false
6478
SpacesBeforeTrailingComments: 2
6579
SpacesInAngles: true
6680
SpacesInCStyleCastParentheses: false
67-
SpacesInContainerLiterals: true
6881
SpacesInParentheses: true
6982
SpacesInSquareBrackets: true
7083
TabWidth: 8

0 commit comments

Comments
 (0)