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