blob: a75a2c266137ca6c7017f3d8710a60d81c5aa7ee [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 +080020AlwaysBreakBeforeMultilineStrings: false
Lei YUa184bf62019-07-31 15:54:32 +080021BinPackArguments: true
22BinPackParameters: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050023BitFieldColonSpacing: None
Lei YUa184bf62019-07-31 15:54:32 +080024BraceWrapping:
Patrick Williams5670b182023-05-10 07:50:50 -050025 AfterCaseLabel: true
Lei YUa184bf62019-07-31 15:54:32 +080026 AfterClass: true
27 AfterControlStatement: true
28 AfterEnum: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050029 AfterExternBlock: true
Lei YUa184bf62019-07-31 15:54:32 +080030 AfterFunction: true
31 AfterNamespace: true
32 AfterObjCDeclaration: true
33 AfterStruct: true
34 AfterUnion: true
35 BeforeCatch: true
36 BeforeElse: true
Patrick Williams3f6c12b2023-10-20 11:19:11 -050037 BeforeLambdaBody: false
38 BeforeWhile: false
Lei YUa184bf62019-07-31 15:54:32 +080039 IndentBraces: false
Patrick Williams5670b182023-05-10 07:50:50 -050040 SplitEmptyFunction: false
41 SplitEmptyRecord: false
42 SplitEmptyNamespace: false
43BreakAfterAttributes: Never
Patrick Williams20a045f2024-12-18 11:21:25 -050044BreakAfterReturnType: Automatic
Lei YUa184bf62019-07-31 15:54:32 +080045BreakBeforeBinaryOperators: None
46BreakBeforeBraces: Custom
47BreakBeforeTernaryOperators: true
48BreakConstructorInitializers: AfterColon
Patrick Williams5670b182023-05-10 07:50:50 -050049BreakInheritanceList: AfterColon
50BreakStringLiterals: false
Patrick Williams20a045f2024-12-18 11:21:25 -050051BreakTemplateDeclarations: Yes
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
Patrick Williamsbab5ed92024-08-16 15:20:54 -040090LambdaBodyIndentation: Signature
Patrick Williams5670b182023-05-10 07:50:50 -050091LineEnding: 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
Patrick Williamsbab5ed92024-08-16 15:20:54 -0400101PenaltyBreakBeforeFirstCallParameter: 50
Lei YUa184bf62019-07-31 15:54:32 +0800102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
Patrick Williamsbab5ed92024-08-16 15:20:54 -0400105PenaltyBreakTemplateDeclaration: 10
Lei YUa184bf62019-07-31 15:54:32 +0800106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williamsbab5ed92024-08-16 15:20:54 -0400108PenaltyIndentedWhitespace: 1
Patrick Williams3f6c12b2023-10-20 11:19:11 -0500109PointerAlignment: Left
Patrick Williams5670b182023-05-10 07:50:50 -0500110QualifierAlignment: Left
111ReferenceAlignment: Left
Lei YUa184bf62019-07-31 15:54:32 +0800112ReflowComments: true
Patrick Williams5670b182023-05-10 07:50:50 -0500113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
Patrick Williams3f6c12b2023-10-20 11:19:11 -0500115SortIncludes: CaseSensitive
Lei YUa184bf62019-07-31 15:54:32 +0800116SortUsingDeclarations: true
117SpaceAfterCStyleCast: false
Patrick Williams5670b182023-05-10 07:50:50 -0500118SpaceAfterTemplateKeyword: true
Lei YUa184bf62019-07-31 15:54:32 +0800119SpaceBeforeAssignmentOperators: true
Patrick Williams5670b182023-05-10 07:50:50 -0500120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
Lei YUa184bf62019-07-31 15:54:32 +0800123SpaceBeforeParens: ControlStatements
Patrick Williams5670b182023-05-10 07:50:50 -0500124SpaceBeforeRangeBasedForLoopColon: true
Lei YUa184bf62019-07-31 15:54:32 +0800125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
Patrick Williams3f6c12b2023-10-20 11:19:11 -0500127SpacesInAngles: Never
Lei YUa184bf62019-07-31 15:54:32 +0800128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
Patrick Williams5670b182023-05-10 07:50:50 -0500132Standard: Latest
Lei YUa184bf62019-07-31 15:54:32 +0800133TabWidth: 4
134UseTab: Never
135...
Patrick Williams5670b182023-05-10 07:50:50 -0500136