blob: d7e09616e0a49f9a751ec3bf59dba651fee549eb [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
90LambdaBodyIndentation: OuterScope
91LineEnding: 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
Lei YU0555a172020-09-20 14:54:20 +0800101PenaltyBreakBeforeFirstCallParameter: 19
102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
105PenaltyExcessCharacter: 1000000
106PenaltyReturnTypeOnItsOwnLine: 60
George Liu2ae54232024-04-03 09:40:27 +0800107PenaltyIndentedWhitespace: 0
108PointerAlignment: Left
109QualifierAlignment: Left
110ReferenceAlignment: Left
Lei YU0555a172020-09-20 14:54:20 +0800111ReflowComments: true
George Liu2ae54232024-04-03 09:40:27 +0800112RequiresClausePosition: OwnLine
113RequiresExpressionIndentation: Keyword
114SortIncludes: CaseSensitive
Lei YU0555a172020-09-20 14:54:20 +0800115SortUsingDeclarations: true
116SpaceAfterCStyleCast: false
117SpaceAfterTemplateKeyword: true
118SpaceBeforeAssignmentOperators: true
119SpaceBeforeCpp11BracedList: false
120SpaceBeforeCtorInitializerColon: true
121SpaceBeforeInheritanceColon: true
122SpaceBeforeParens: ControlStatements
123SpaceBeforeRangeBasedForLoopColon: true
124SpaceInEmptyParentheses: false
125SpacesBeforeTrailingComments: 1
George Liu2ae54232024-04-03 09:40:27 +0800126SpacesInAngles: Never
Lei YU0555a172020-09-20 14:54:20 +0800127SpacesInContainerLiterals: true
128SpacesInCStyleCastParentheses: false
129SpacesInParentheses: false
130SpacesInSquareBrackets: false
131Standard: Latest
132TabWidth: 4
133UseTab: Never
134...