blob: 84647d07fe8d653b34cef16cbf6fba5f7aebacce [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
George Liu7af7bdc2025-07-02 15:51:10 +080044BreakAfterReturnType: Automatic
Lei YU0555a172020-09-20 14:54:20 +080045BreakBeforeBinaryOperators: None
46BreakBeforeBraces: Custom
47BreakBeforeTernaryOperators: true
48BreakConstructorInitializers: AfterColon
49BreakInheritanceList: AfterColon
George Liu2ae54232024-04-03 09:40:27 +080050BreakStringLiterals: false
George Liu7af7bdc2025-07-02 15:51:10 +080051BreakTemplateDeclarations: Yes
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
George Liu1f075562025-02-19 08:28:04 +0800107PenaltyReturnTypeOnItsOwnLine: 150
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...