blob: d92a3f10a47b602bb47e3844ce15ebcf7fb92bbb [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
Patrick Williamsb37abfb2023-05-10 07:50:33 -05009AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -050014AllowShortBlocksOnASingleLine: Empty
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080015AllowShortCaseLabelsOnASingleLine: false
Patrick Williamsb37abfb2023-05-10 07:50:33 -050016AllowShortFunctionsOnASingleLine: Empty
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080017AllowShortIfStatementsOnASingleLine: false
18AllowShortLoopsOnASingleLine: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080019AlwaysBreakAfterReturnType: None
20AlwaysBreakBeforeMultilineStrings: false
James Feistfcd2d3a2020-05-28 10:38:15 -070021AlwaysBreakTemplateDeclarations: Yes
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080022BinPackArguments: true
23BinPackParameters: true
24BraceWrapping:
James Feistfcd2d3a2020-05-28 10:38:15 -070025 AfterCaseLabel: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080026 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
29 AfterFunction: true
30 AfterNamespace: true
31 AfterObjCDeclaration: true
32 AfterStruct: true
33 AfterUnion: true
James Feistfcd2d3a2020-05-28 10:38:15 -070034 AfterExternBlock: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080035 BeforeCatch: true
36 BeforeElse: true
37 IndentBraces: false
James Feistfcd2d3a2020-05-28 10:38:15 -070038 SplitEmptyFunction: false
39 SplitEmptyRecord: false
40 SplitEmptyNamespace: false
Patrick Williamsb37abfb2023-05-10 07:50:33 -050041BreakAfterAttributes: Never
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080042BreakBeforeBinaryOperators: None
43BreakBeforeBraces: Custom
44BreakBeforeTernaryOperators: true
45BreakConstructorInitializers: AfterColon
James Feistfcd2d3a2020-05-28 10:38:15 -070046BreakInheritanceList: AfterColon
Patrick Williamsb37abfb2023-05-10 07:50:33 -050047BreakStringLiterals: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080048ColumnLimit: 80
49CommentPragmas: '^ IWYU pragma:'
James Feistfcd2d3a2020-05-28 10:38:15 -070050CompactNamespaces: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080051ConstructorInitializerAllOnOneLineOrOnePerLine: false
52ConstructorInitializerIndentWidth: 4
53ContinuationIndentWidth: 4
54Cpp11BracedListStyle: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -050055DeriveLineEnding: false
James Feistfcd2d3a2020-05-28 10:38:15 -070056DerivePointerAlignment: false
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080057PointerAlignment: Left
58DisableFormat: false
59ExperimentalAutoDetectBinPacking: false
60FixNamespaceComments: true
61ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
62IncludeBlocks: Regroup
63IncludeCategories:
64 - Regex: '^[<"](gtest|gmock)'
James Feistfcd2d3a2020-05-28 10:38:15 -070065 Priority: 7
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080066 - Regex: '^"config.h"'
67 Priority: -1
James Feistfcd2d3a2020-05-28 10:38:15 -070068 - Regex: '^".*\.h"'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080069 Priority: 1
James Feistfcd2d3a2020-05-28 10:38:15 -070070 - Regex: '^".*\.hpp"'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080071 Priority: 2
James Feistfcd2d3a2020-05-28 10:38:15 -070072 - Regex: '^<.*\.h>'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080073 Priority: 3
James Feistfcd2d3a2020-05-28 10:38:15 -070074 - Regex: '^<.*\.hpp>'
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080075 Priority: 4
James Feistfcd2d3a2020-05-28 10:38:15 -070076 - Regex: '^<.*'
77 Priority: 5
78 - Regex: '.*'
79 Priority: 6
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080080IndentCaseLabels: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -050081IndentRequiresClause: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080082IndentWidth: 4
83IndentWrappedFunctionNames: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -050084InsertNewlineAtEOF: true
85KeepEmptyLinesAtTheStartOfBlocks: false
86LambdaBodyIndentation: OuterScope
87LineEnding: LF
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080088MacroBlockBegin: ''
89MacroBlockEnd: ''
90MaxEmptyLinesToKeep: 1
91NamespaceIndentation: None
92ObjCBlockIndentWidth: 2
93ObjCSpaceAfterProperty: false
94ObjCSpaceBeforeProtocolList: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -050095PenaltyBreakAssignment: 25
Jia, Chunhuia835eaa2018-09-05 09:00:41 +080096PenaltyBreakBeforeFirstCallParameter: 19
97PenaltyBreakComment: 300
98PenaltyBreakFirstLessLess: 120
99PenaltyBreakString: 1000
100PenaltyExcessCharacter: 1000000
101PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500102PenaltyIndentedWhitespace: 0
103QualifierAlignment: Left
104ReferenceAlignment: Left
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800105ReflowComments: true
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500106RequiresClausePosition: OwnLine
107RequiresExpressionIndentation: Keyword
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800108SortIncludes: true
James Feistfcd2d3a2020-05-28 10:38:15 -0700109SortUsingDeclarations: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800110SpaceAfterCStyleCast: false
James Feistfcd2d3a2020-05-28 10:38:15 -0700111SpaceAfterTemplateKeyword: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800112SpaceBeforeAssignmentOperators: true
James Feistfcd2d3a2020-05-28 10:38:15 -0700113SpaceBeforeCpp11BracedList: false
114SpaceBeforeCtorInitializerColon: true
115SpaceBeforeInheritanceColon: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800116SpaceBeforeParens: ControlStatements
James Feistfcd2d3a2020-05-28 10:38:15 -0700117SpaceBeforeRangeBasedForLoopColon: true
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800118SpaceInEmptyParentheses: false
119SpacesBeforeTrailingComments: 1
120SpacesInAngles: false
121SpacesInContainerLiterals: true
122SpacesInCStyleCastParentheses: false
123SpacesInParentheses: false
124SpacesInSquareBrackets: false
Patrick Williamsb37abfb2023-05-10 07:50:33 -0500125Standard: Latest
Jia, Chunhuia835eaa2018-09-05 09:00:41 +0800126TabWidth: 4
127UseTab: Never
128...
James Feistfcd2d3a2020-05-28 10:38:15 -0700129