blob: ef6f54e27aa9b2daf7ad0d38201131009321799a [file] [log] [blame]
Jia, Chunhuia835eaa2018-09-05 09:00:41 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
James Feistfcd2d3a2020-05-28 10:38:15 -07008AlignEscapedNewlines: Right
Jia, Chunhuia835eaa2018-09-05 09:00:41 +08009AlignOperands: true
10AlignTrailingComments: true
11AllowAllParametersOfDeclarationOnNextLine: true
12AllowShortBlocksOnASingleLine: false
13AllowShortCaseLabelsOnASingleLine: false
14AllowShortFunctionsOnASingleLine: None
15AllowShortIfStatementsOnASingleLine: false
16AllowShortLoopsOnASingleLine: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080017AlwaysBreakAfterReturnType: None
18AlwaysBreakBeforeMultilineStrings: false
James Feistfcd2d3a2020-05-28 10:38:15 -070019AlwaysBreakTemplateDeclarations: Yes
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080020BinPackArguments: true
21BinPackParameters: true
22BraceWrapping:
James Feistfcd2d3a2020-05-28 10:38:15 -070023 AfterCaseLabel: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080024 AfterClass: true
25 AfterControlStatement: true
26 AfterEnum: true
27 AfterFunction: true
28 AfterNamespace: true
29 AfterObjCDeclaration: true
30 AfterStruct: true
31 AfterUnion: true
James Feistfcd2d3a2020-05-28 10:38:15 -070032 AfterExternBlock: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080033 BeforeCatch: true
34 BeforeElse: true
35 IndentBraces: false
James Feistfcd2d3a2020-05-28 10:38:15 -070036 SplitEmptyFunction: false
37 SplitEmptyRecord: false
38 SplitEmptyNamespace: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080039BreakBeforeBinaryOperators: None
40BreakBeforeBraces: Custom
41BreakBeforeTernaryOperators: true
42BreakConstructorInitializers: AfterColon
James Feistfcd2d3a2020-05-28 10:38:15 -070043BreakInheritanceList: AfterColon
44BreakStringLiterals: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080045ColumnLimit: 80
46CommentPragmas: '^ IWYU pragma:'
James Feistfcd2d3a2020-05-28 10:38:15 -070047CompactNamespaces: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080048ConstructorInitializerAllOnOneLineOrOnePerLine: false
49ConstructorInitializerIndentWidth: 4
50ContinuationIndentWidth: 4
51Cpp11BracedListStyle: true
James Feistfcd2d3a2020-05-28 10:38:15 -070052DerivePointerAlignment: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080053PointerAlignment: Left
54DisableFormat: false
55ExperimentalAutoDetectBinPacking: false
56FixNamespaceComments: true
57ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
58IncludeBlocks: Regroup
59IncludeCategories:
60 - Regex: '^[<"](gtest|gmock)'
James Feistfcd2d3a2020-05-28 10:38:15 -070061 Priority: 7
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080062 - Regex: '^"config.h"'
63 Priority: -1
James Feistfcd2d3a2020-05-28 10:38:15 -070064 - Regex: '^".*\.h"'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080065 Priority: 1
James Feistfcd2d3a2020-05-28 10:38:15 -070066 - Regex: '^".*\.hpp"'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080067 Priority: 2
James Feistfcd2d3a2020-05-28 10:38:15 -070068 - Regex: '^<.*\.h>'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080069 Priority: 3
James Feistfcd2d3a2020-05-28 10:38:15 -070070 - Regex: '^<.*\.hpp>'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080071 Priority: 4
James Feistfcd2d3a2020-05-28 10:38:15 -070072 - Regex: '^<.*'
73 Priority: 5
74 - Regex: '.*'
75 Priority: 6
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080076IndentCaseLabels: true
77IndentWidth: 4
78IndentWrappedFunctionNames: true
79KeepEmptyLinesAtTheStartOfBlocks: true
80MacroBlockBegin: ''
81MacroBlockEnd: ''
82MaxEmptyLinesToKeep: 1
83NamespaceIndentation: None
84ObjCBlockIndentWidth: 2
85ObjCSpaceAfterProperty: false
86ObjCSpaceBeforeProtocolList: true
87PenaltyBreakBeforeFirstCallParameter: 19
88PenaltyBreakComment: 300
89PenaltyBreakFirstLessLess: 120
90PenaltyBreakString: 1000
91PenaltyExcessCharacter: 1000000
92PenaltyReturnTypeOnItsOwnLine: 60
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080093ReflowComments: true
94SortIncludes: true
James Feistfcd2d3a2020-05-28 10:38:15 -070095SortUsingDeclarations: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080096SpaceAfterCStyleCast: false
James Feistfcd2d3a2020-05-28 10:38:15 -070097SpaceAfterTemplateKeyword: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080098SpaceBeforeAssignmentOperators: true
James Feistfcd2d3a2020-05-28 10:38:15 -070099SpaceBeforeCpp11BracedList: false
100SpaceBeforeCtorInitializerColon: true
101SpaceBeforeInheritanceColon: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800102SpaceBeforeParens: ControlStatements
James Feistfcd2d3a2020-05-28 10:38:15 -0700103SpaceBeforeRangeBasedForLoopColon: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800104SpaceInEmptyParentheses: false
105SpacesBeforeTrailingComments: 1
106SpacesInAngles: false
107SpacesInContainerLiterals: true
108SpacesInCStyleCastParentheses: false
109SpacesInParentheses: false
110SpacesInSquareBrackets: false
111Standard: Cpp11
112TabWidth: 4
113UseTab: Never
114...
James Feistfcd2d3a2020-05-28 10:38:15 -0700115