blob: 27681a9988819d896fda21c1d00adc450da3c4d7 [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
20AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
22AlwaysBreakTemplateDeclarations: Yes
23BinPackArguments: true
24BinPackParameters: true
George Liu2ae54232024-04-03 09:40:27 +080025BitFieldColonSpacing: None
Lei YU0555a172020-09-20 14:54:20 +080026BraceWrapping:
27 AfterCaseLabel: true
28 AfterClass: true
29 AfterControlStatement: true
30 AfterEnum: true
George Liu2ae54232024-04-03 09:40:27 +080031 AfterExternBlock: true
Lei YU0555a172020-09-20 14:54:20 +080032 AfterFunction: true
33 AfterNamespace: true
34 AfterObjCDeclaration: true
35 AfterStruct: true
36 AfterUnion: true
Lei YU0555a172020-09-20 14:54:20 +080037 BeforeCatch: true
38 BeforeElse: true
George Liu2ae54232024-04-03 09:40:27 +080039 BeforeLambdaBody: false
40 BeforeWhile: false
Lei YU0555a172020-09-20 14:54:20 +080041 IndentBraces: false
42 SplitEmptyFunction: false
43 SplitEmptyRecord: false
44 SplitEmptyNamespace: false
George Liu2ae54232024-04-03 09:40:27 +080045BreakAfterAttributes: Never
Lei YU0555a172020-09-20 14:54:20 +080046BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
50BreakInheritanceList: AfterColon
George Liu2ae54232024-04-03 09:40:27 +080051BreakStringLiterals: false
Lei YU0555a172020-09-20 14:54:20 +080052ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
54CompactNamespaces: false
Lei YU0555a172020-09-20 14:54:20 +080055ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
58DerivePointerAlignment: false
Lei YU0555a172020-09-20 14:54:20 +080059DisableFormat: false
Lei YU0555a172020-09-20 14:54:20 +080060FixNamespaceComments: true
George Liu2ae54232024-04-03 09:40:27 +080061ForEachMacros:
62 - foreach
63 - Q_FOREACH
64 - BOOST_FOREACH
Lei YU0555a172020-09-20 14:54:20 +080065IncludeBlocks: Regroup
66IncludeCategories:
67 - Regex: '^[<"](gtest|gmock)'
68 Priority: 7
69 - Regex: '^"config.h"'
70 Priority: -1
71 - Regex: '^".*\.h"'
72 Priority: 1
73 - Regex: '^".*\.hpp"'
74 Priority: 2
75 - Regex: '^<.*\.h>'
76 Priority: 3
77 - Regex: '^<.*\.hpp>'
78 Priority: 4
79 - Regex: '^<.*'
80 Priority: 5
81 - Regex: '.*'
82 Priority: 6
83IndentCaseLabels: true
George Liu2ae54232024-04-03 09:40:27 +080084IndentExternBlock: NoIndent
85IndentRequiresClause: true
Lei YU0555a172020-09-20 14:54:20 +080086IndentWidth: 4
87IndentWrappedFunctionNames: true
George Liu2ae54232024-04-03 09:40:27 +080088InsertNewlineAtEOF: true
89KeepEmptyLinesAtTheStartOfBlocks: false
George Liu93b6a332024-08-19 08:30:52 +080090LambdaBodyIndentation: Signature
George Liu2ae54232024-04-03 09:40:27 +080091LineEnding: LF
Lei YU0555a172020-09-20 14:54:20 +080092MacroBlockBegin: ''
93MacroBlockEnd: ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
George Liu2ae54232024-04-03 09:40:27 +080099PackConstructorInitializers: BinPack
100PenaltyBreakAssignment: 25
George Liu93b6a332024-08-19 08:30:52 +0800101PenaltyBreakBeforeFirstCallParameter: 50
Lei YU0555a172020-09-20 14:54:20 +0800102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
George Liu93b6a332024-08-19 08:30:52 +0800105PenaltyBreakTemplateDeclaration: 10
Lei YU0555a172020-09-20 14:54:20 +0800106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
George Liu93b6a332024-08-19 08:30:52 +0800108PenaltyIndentedWhitespace: 1
George Liu2ae54232024-04-03 09:40:27 +0800109PointerAlignment: Left
110QualifierAlignment: Left
111ReferenceAlignment: Left
Lei YU0555a172020-09-20 14:54:20 +0800112ReflowComments: true
George Liu2ae54232024-04-03 09:40:27 +0800113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
115SortIncludes: CaseSensitive
Lei YU0555a172020-09-20 14:54:20 +0800116SortUsingDeclarations: true
117SpaceAfterCStyleCast: false
118SpaceAfterTemplateKeyword: true
119SpaceBeforeAssignmentOperators: true
120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
123SpaceBeforeParens: ControlStatements
124SpaceBeforeRangeBasedForLoopColon: true
125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
George Liu2ae54232024-04-03 09:40:27 +0800127SpacesInAngles: Never
Lei YU0555a172020-09-20 14:54:20 +0800128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
132Standard: Latest
133TabWidth: 4
134UseTab: Never
135...