blob: d43e884dbbb3dae7d4099cba649bb733da65c09c [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
Patrick Williamsbadedf12023-10-20 11:19:42 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Cheng C Yang3e3269a2019-12-02 15:11:30 +080019AllowShortLoopsOnASingleLine: false
Cheng C Yang3e3269a2019-12-02 15:11:30 +080020AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
Zhikui Ren18a5ab92020-09-01 21:35:20 -070022AlwaysBreakTemplateDeclarations: Yes
Cheng C Yang3e3269a2019-12-02 15:11:30 +080023BinPackArguments: true
24BinPackParameters: true
Patrick Williamsbadedf12023-10-20 11:19:42 -050025BitFieldColonSpacing: None
Cheng C Yang3e3269a2019-12-02 15:11:30 +080026BraceWrapping:
Zhikui Ren18a5ab92020-09-01 21:35:20 -070027 AfterCaseLabel: true
Cheng C Yang3e3269a2019-12-02 15:11:30 +080028 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williamsbadedf12023-10-20 11:19:42 -050031 AfterExternBlock: true
Cheng C Yang3e3269a2019-12-02 15:11:30 +080032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
37 BeforeCatch: true
38 BeforeElse: true
Patrick Williamsbadedf12023-10-20 11:19:42 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Cheng C Yang3e3269a2019-12-02 15:11:30 +080041 IndentBraces: false
Zhikui Ren18a5ab92020-09-01 21:35:20 -070042 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
Patrick Williamsc39d3df2023-05-10 07:51:14 -050045BreakAfterAttributes: Never
Cheng C Yang3e3269a2019-12-02 15:11:30 +080046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
Zhikui Ren18a5ab92020-09-01 21:35:20 -070050BreakInheritanceList: AfterColon
Patrick Williamsc39d3df2023-05-10 07:51:14 -050051BreakStringLiterals: false
Cheng C Yang3e3269a2019-12-02 15:11:30 +080052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
Zhikui Ren18a5ab92020-09-01 21:35:20 -070054CompactNamespaces: false
Cheng C Yang3e3269a2019-12-02 15:11:30 +080055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
58DerivePointerAlignment: false
Cheng C Yang3e3269a2019-12-02 15:11:30 +080059DisableFormat: false
Cheng C Yang3e3269a2019-12-02 15:11:30 +080060FixNamespaceComments: true
Patrick Williamsbadedf12023-10-20 11:19:42 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Cheng C Yang3e3269a2019-12-02 15:11:30 +080065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
Zhikui Ren18a5ab92020-09-01 21:35:20 -070068 Priority: 7
Cheng C Yang3e3269a2019-12-02 15:11:30 +080069 - Regex: '^"config.h"'
70 Priority: -1
Zhikui Ren18a5ab92020-09-01 21:35:20 -070071 - Regex: '^".*\.h"'
Cheng C Yang3e3269a2019-12-02 15:11:30 +080072 Priority: 1
Zhikui Ren18a5ab92020-09-01 21:35:20 -070073 - Regex: '^".*\.hpp"'
Cheng C Yang3e3269a2019-12-02 15:11:30 +080074 Priority: 2
Zhikui Ren18a5ab92020-09-01 21:35:20 -070075 - Regex: '^<.*\.h>'
Cheng C Yang3e3269a2019-12-02 15:11:30 +080076 Priority: 3
Zhikui Ren18a5ab92020-09-01 21:35:20 -070077 - Regex: '^<.*\.hpp>'
Cheng C Yang3e3269a2019-12-02 15:11:30 +080078 Priority: 4
Zhikui Ren18a5ab92020-09-01 21:35:20 -070079 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
Cheng C Yang3e3269a2019-12-02 15:11:30 +080083IndentCaseLabels: true
Patrick Williamsbadedf12023-10-20 11:19:42 -050084IndentExternBlock: NoIndent
Patrick Williamsc39d3df2023-05-10 07:51:14 -050085IndentRequiresClause: true
Cheng C Yang3e3269a2019-12-02 15:11:30 +080086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williamsc39d3df2023-05-10 07:51:14 -050088InsertNewlineAtEOF: true
89KeepEmptyLinesAtTheStartOfBlocks: false
90LambdaBodyIndentation: OuterScope
91LineEnding: LF
Cheng C Yang3e3269a2019-12-02 15:11:30 +080092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williamsbadedf12023-10-20 11:19:42 -050099PackConstructorInitializers: BinPack
Patrick Williamsc39d3df2023-05-10 07:51:14 -0500100PenaltyBreakAssignment: 25
Cheng C Yang3e3269a2019-12-02 15:11:30 +0800101PenaltyBreakBeforeFirstCallParameter: 19
102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
105PenaltyExcessCharacter: 1000000
106PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williamsc39d3df2023-05-10 07:51:14 -0500107PenaltyIndentedWhitespace: 0
Patrick Williamsbadedf12023-10-20 11:19:42 -0500108PointerAlignment: Left
Patrick Williamsc39d3df2023-05-10 07:51:14 -0500109QualifierAlignment: Left
110ReferenceAlignment: Left
Cheng C Yang3e3269a2019-12-02 15:11:30 +0800111ReflowComments: true
Patrick Williamsc39d3df2023-05-10 07:51:14 -0500112RequiresClausePosition: OwnLine
113RequiresExpressionIndentation: Keyword
Patrick Williamsbadedf12023-10-20 11:19:42 -0500114SortIncludes: CaseSensitive
Cheng C Yang3e3269a2019-12-02 15:11:30 +0800115SortUsingDeclarations: true
116SpaceAfterCStyleCast: false
Zhikui Ren18a5ab92020-09-01 21:35:20 -0700117SpaceAfterTemplateKeyword: true
Cheng C Yang3e3269a2019-12-02 15:11:30 +0800118SpaceBeforeAssignmentOperators: true
Zhikui Ren18a5ab92020-09-01 21:35:20 -0700119SpaceBeforeCpp11BracedList: false
120SpaceBeforeCtorInitializerColon: true
121SpaceBeforeInheritanceColon: true
Cheng C Yang3e3269a2019-12-02 15:11:30 +0800122SpaceBeforeParens: ControlStatements
Zhikui Ren18a5ab92020-09-01 21:35:20 -0700123SpaceBeforeRangeBasedForLoopColon: true
Cheng C Yang3e3269a2019-12-02 15:11:30 +0800124SpaceInEmptyParentheses: false
125SpacesBeforeTrailingComments: 1
Patrick Williamsbadedf12023-10-20 11:19:42 -0500126SpacesInAngles: Never
Cheng C Yang3e3269a2019-12-02 15:11:30 +0800127SpacesInContainerLiterals: true
128SpacesInCStyleCastParentheses: false
129SpacesInParentheses: false
130SpacesInSquareBrackets: false
Patrick Williamsc39d3df2023-05-10 07:51:14 -0500131Standard: Latest
Cheng C Yang3e3269a2019-12-02 15:11:30 +0800132TabWidth: 4
133UseTab: Never
134...
135