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