blob: f3875953bd7c6a49d07b1fcc5264fcd8bb7547d0 [file] [log] [blame]
Lei YU0555a172020-09-20 14:54:20 +08001---
2Language: Cpp
3# BasedOnStyle: LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlines: Right
George Liu2ae54232024-04-03 09:40:27 +08009AlignOperands: Align
10AlignTrailingComments:
11 Kind: Always
12 OverEmptyLines: 1
Lei YU0555a172020-09-20 14:54:20 +080013AllowAllParametersOfDeclarationOnNextLine: true
George Liu2ae54232024-04-03 09:40:27 +080014AllowShortBlocksOnASingleLine: Empty
Lei YU0555a172020-09-20 14:54:20 +080015AllowShortCaseLabelsOnASingleLine: false
George Liu2ae54232024-04-03 09:40:27 +080016AllowShortFunctionsOnASingleLine: Empty
17AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
Lei YU0555a172020-09-20 14:54:20 +080019AllowShortLoopsOnASingleLine: false
Lei YU0555a172020-09-20 14:54:20 +080020AlwaysBreakBeforeMultilineStrings: false
Lei YU0555a172020-09-20 14:54:20 +080021BinPackArguments: true
22BinPackParameters: true
George Liu2ae54232024-04-03 09:40:27 +080023BitFieldColonSpacing: None
Lei YU0555a172020-09-20 14:54:20 +080024BraceWrapping:
25 AfterCaseLabel: true
26 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
George Liu2ae54232024-04-03 09:40:27 +080029 AfterExternBlock: true
Lei YU0555a172020-09-20 14:54:20 +080030 AfterFunction: true
31 AfterNamespace: true
32 AfterObjCDeclaration: true
33 AfterStruct: true
34 AfterUnion: true
Lei YU0555a172020-09-20 14:54:20 +080035 BeforeCatch: true
36 BeforeElse: true
George Liu2ae54232024-04-03 09:40:27 +080037 BeforeLambdaBody: false
38 BeforeWhile: false
Lei YU0555a172020-09-20 14:54:20 +080039 IndentBraces: false
40 SplitEmptyFunction: false
41 SplitEmptyRecord: false
42 SplitEmptyNamespace: false
George Liu2ae54232024-04-03 09:40:27 +080043BreakAfterAttributes: Never
Lei YU0555a172020-09-20 14:54:20 +080044BreakBeforeBinaryOperators: None
45BreakBeforeBraces: Custom
46BreakBeforeTernaryOperators: true
47BreakConstructorInitializers: AfterColon
48BreakInheritanceList: AfterColon
George Liu2ae54232024-04-03 09:40:27 +080049BreakStringLiterals: false
Lei YU0555a172020-09-20 14:54:20 +080050ColumnLimit: 80
51CommentPragmas: '^ IWYU pragma:'
52CompactNamespaces: false
Lei YU0555a172020-09-20 14:54:20 +080053ConstructorInitializerIndentWidth: 4
54ContinuationIndentWidth: 4
55Cpp11BracedListStyle: true
56DerivePointerAlignment: false
Lei YU0555a172020-09-20 14:54:20 +080057DisableFormat: false
Lei YU0555a172020-09-20 14:54:20 +080058FixNamespaceComments: true
George Liu2ae54232024-04-03 09:40:27 +080059ForEachMacros:
60 - foreach
61 - Q_FOREACH
62 - BOOST_FOREACH
Lei YU0555a172020-09-20 14:54:20 +080063IncludeBlocks: Regroup
64IncludeCategories:
65 - Regex: '^[<"](gtest|gmock)'
66 Priority: 7
67 - Regex: '^"config.h"'
68 Priority: -1
69 - Regex: '^".*\.h"'
70 Priority: 1
71 - Regex: '^".*\.hpp"'
72 Priority: 2
73 - Regex: '^<.*\.h>'
74 Priority: 3
75 - Regex: '^<.*\.hpp>'
76 Priority: 4
77 - Regex: '^<.*'
78 Priority: 5
79 - Regex: '.*'
80 Priority: 6
81IndentCaseLabels: true
George Liu2ae54232024-04-03 09:40:27 +080082IndentExternBlock: NoIndent
83IndentRequiresClause: true
Lei YU0555a172020-09-20 14:54:20 +080084IndentWidth: 4
85IndentWrappedFunctionNames: true
George Liu2ae54232024-04-03 09:40:27 +080086InsertNewlineAtEOF: true
87KeepEmptyLinesAtTheStartOfBlocks: false
George Liu93b6a332024-08-19 08:30:52 +080088LambdaBodyIndentation: Signature
George Liu2ae54232024-04-03 09:40:27 +080089LineEnding: LF
Lei YU0555a172020-09-20 14:54:20 +080090MacroBlockBegin: ''
91MacroBlockEnd: ''
92MaxEmptyLinesToKeep: 1
93NamespaceIndentation: None
94ObjCBlockIndentWidth: 2
95ObjCSpaceAfterProperty: false
96ObjCSpaceBeforeProtocolList: true
George Liu2ae54232024-04-03 09:40:27 +080097PackConstructorInitializers: BinPack
98PenaltyBreakAssignment: 25
George Liu93b6a332024-08-19 08:30:52 +080099PenaltyBreakBeforeFirstCallParameter: 50
Lei YU0555a172020-09-20 14:54:20 +0800100PenaltyBreakComment: 300
101PenaltyBreakFirstLessLess: 120
102PenaltyBreakString: 1000
George Liu93b6a332024-08-19 08:30:52 +0800103PenaltyBreakTemplateDeclaration: 10
Lei YU0555a172020-09-20 14:54:20 +0800104PenaltyExcessCharacter: 1000000
George Liu1f075562025-02-19 08:28:04 +0800105PenaltyReturnTypeOnItsOwnLine: 150
George Liu93b6a332024-08-19 08:30:52 +0800106PenaltyIndentedWhitespace: 1
George Liu2ae54232024-04-03 09:40:27 +0800107PointerAlignment: Left
108QualifierAlignment: Left
109ReferenceAlignment: Left
Lei YU0555a172020-09-20 14:54:20 +0800110ReflowComments: true
George Liu2ae54232024-04-03 09:40:27 +0800111RequiresClausePosition: OwnLine
112RequiresExpressionIndentation: Keyword
113SortIncludes: CaseSensitive
Lei YU0555a172020-09-20 14:54:20 +0800114SortUsingDeclarations: true
115SpaceAfterCStyleCast: false
116SpaceAfterTemplateKeyword: true
117SpaceBeforeAssignmentOperators: true
118SpaceBeforeCpp11BracedList: false
119SpaceBeforeCtorInitializerColon: true
120SpaceBeforeInheritanceColon: true
121SpaceBeforeParens: ControlStatements
122SpaceBeforeRangeBasedForLoopColon: true
123SpaceInEmptyParentheses: false
124SpacesBeforeTrailingComments: 1
George Liu2ae54232024-04-03 09:40:27 +0800125SpacesInAngles: Never
Lei YU0555a172020-09-20 14:54:20 +0800126SpacesInContainerLiterals: true
127SpacesInCStyleCastParentheses: false
128SpacesInParentheses: false
129SpacesInSquareBrackets: false
130Standard: Latest
131TabWidth: 4
132UseTab: Never
133...