blob: d43e884dbbb3dae7d4099cba649bb733da65c09c [file] [log] [blame]
Lei YUa184bf62019-07-31 15:54:32 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
Patrick Williams5670b182023-05-10 07:50:50 -05008AlignEscapedNewlines: Right
9AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Lei YUa184bf62019-07-31 15:54:32 +080013AllowAllParametersOfDeclarationOnNextLine: true
Patrick Williams5670b182023-05-10 07:50:50 -050014AllowShortBlocksOnASingleLine: Empty
Lei YUa184bf62019-07-31 15:54:32 +080015AllowShortCaseLabelsOnASingleLine: false
Patrick Williams5670b182023-05-10 07:50:50 -050016AllowShortFunctionsOnASingleLine: Empty
Patrick Williams3f6c12b2023-10-20 11:19:11 -050017AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Lei YUa184bf62019-07-31 15:54:32 +080019AllowShortLoopsOnASingleLine: false
Lei YUa184bf62019-07-31 15:54:32 +080020AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
Patrick Williams5670b182023-05-10 07:50:50 -050022AlwaysBreakTemplateDeclarations: Yes
Lei YUa184bf62019-07-31 15:54:32 +080023BinPackArguments: true
24BinPackParameters: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050025BitFieldColonSpacing: None
Lei YUa184bf62019-07-31 15:54:32 +080026BraceWrapping:
Patrick Williams5670b182023-05-10 07:50:50 -050027 AfterCaseLabel: true
Lei YUa184bf62019-07-31 15:54:32 +080028 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050031 AfterExternBlock: true
Lei YUa184bf62019-07-31 15:54:32 +080032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
37 BeforeCatch: true
38 BeforeElse: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050039 BeforeLambdaBody: false
40 BeforeWhile: false
Lei YUa184bf62019-07-31 15:54:32 +080041 IndentBraces: false
Patrick Williams5670b182023-05-10 07:50:50 -050042 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
45BreakAfterAttributes: Never
Lei YUa184bf62019-07-31 15:54:32 +080046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
Patrick Williams5670b182023-05-10 07:50:50 -050050BreakInheritanceList: AfterColon
51BreakStringLiterals: false
Lei YUa184bf62019-07-31 15:54:32 +080052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
Patrick Williams5670b182023-05-10 07:50:50 -050054CompactNamespaces: false
Lei YUa184bf62019-07-31 15:54:32 +080055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
58DerivePointerAlignment: false
59DisableFormat: false
Lei YUa184bf62019-07-31 15:54:32 +080060FixNamespaceComments: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Lei YUa184bf62019-07-31 15:54:32 +080065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
Patrick Williams5670b182023-05-10 07:50:50 -050068 Priority: 7
Lei YUa184bf62019-07-31 15:54:32 +080069 - Regex: '^"config.h"'
70 Priority: -1
Patrick Williams5670b182023-05-10 07:50:50 -050071 - Regex: '^".*\.h"'
Lei YUa184bf62019-07-31 15:54:32 +080072 Priority: 1
Patrick Williams5670b182023-05-10 07:50:50 -050073 - Regex: '^".*\.hpp"'
Lei YUa184bf62019-07-31 15:54:32 +080074 Priority: 2
Patrick Williams5670b182023-05-10 07:50:50 -050075 - Regex: '^<.*\.h>'
Lei YUa184bf62019-07-31 15:54:32 +080076 Priority: 3
Patrick Williams5670b182023-05-10 07:50:50 -050077 - Regex: '^<.*\.hpp>'
Lei YUa184bf62019-07-31 15:54:32 +080078 Priority: 4
Patrick Williams5670b182023-05-10 07:50:50 -050079 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
Lei YUa184bf62019-07-31 15:54:32 +080083IndentCaseLabels: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050084IndentExternBlock: NoIndent
Patrick Williams5670b182023-05-10 07:50:50 -050085IndentRequiresClause: true
Lei YUa184bf62019-07-31 15:54:32 +080086IndentWidth: 4
87IndentWrappedFunctionNames: true
Patrick Williams5670b182023-05-10 07:50:50 -050088InsertNewlineAtEOF: true
89KeepEmptyLinesAtTheStartOfBlocks: false
90LambdaBodyIndentation: OuterScope
91LineEnding: LF
Lei YUa184bf62019-07-31 15:54:32 +080092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050099PackConstructorInitializers: BinPack
Patrick Williams5670b182023-05-10 07:50:50 -0500100PenaltyBreakAssignment: 25
Lei YUa184bf62019-07-31 15:54:32 +0800101PenaltyBreakBeforeFirstCallParameter: 19
102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
105PenaltyExcessCharacter: 1000000
106PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams5670b182023-05-10 07:50:50 -0500107PenaltyIndentedWhitespace: 0
Patrick Williams3f6c12b2023-10-20 11:19:11 -0500108PointerAlignment: Left
Patrick Williams5670b182023-05-10 07:50:50 -0500109QualifierAlignment: Left
110ReferenceAlignment: Left
Lei YUa184bf62019-07-31 15:54:32 +0800111ReflowComments: true
Patrick Williams5670b182023-05-10 07:50:50 -0500112RequiresClausePosition: OwnLine
113RequiresExpressionIndentation: Keyword
Patrick Williams3f6c12b2023-10-20 11:19:11 -0500114SortIncludes: CaseSensitive
Lei YUa184bf62019-07-31 15:54:32 +0800115SortUsingDeclarations: true
116SpaceAfterCStyleCast: false
Patrick Williams5670b182023-05-10 07:50:50 -0500117SpaceAfterTemplateKeyword: true
Lei YUa184bf62019-07-31 15:54:32 +0800118SpaceBeforeAssignmentOperators: true
Patrick Williams5670b182023-05-10 07:50:50 -0500119SpaceBeforeCpp11BracedList: false
120SpaceBeforeCtorInitializerColon: true
121SpaceBeforeInheritanceColon: true
Lei YUa184bf62019-07-31 15:54:32 +0800122SpaceBeforeParens: ControlStatements
Patrick Williams5670b182023-05-10 07:50:50 -0500123SpaceBeforeRangeBasedForLoopColon: true
Lei YUa184bf62019-07-31 15:54:32 +0800124SpaceInEmptyParentheses: false
125SpacesBeforeTrailingComments: 1
Patrick Williams3f6c12b2023-10-20 11:19:11 -0500126SpacesInAngles: Never
Lei YUa184bf62019-07-31 15:54:32 +0800127SpacesInContainerLiterals: true
128SpacesInCStyleCastParentheses: false
129SpacesInParentheses: false
130SpacesInSquareBrackets: false
Patrick Williams5670b182023-05-10 07:50:50 -0500131Standard: Latest
Lei YUa184bf62019-07-31 15:54:32 +0800132TabWidth: 4
133UseTab: Never
134...
Patrick Williams5670b182023-05-10 07:50:50 -0500135