blob: d92a3f10a47b602bb47e3844ce15ebcf7fb92bbb [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
Lei YUa184bf62019-07-31 15:54:32 +080017AllowShortIfStatementsOnASingleLine: false
18AllowShortLoopsOnASingleLine: false
Lei YUa184bf62019-07-31 15:54:32 +080019AlwaysBreakAfterReturnType: None
20AlwaysBreakBeforeMultilineStrings: false
Patrick Williams5670b182023-05-10 07:50:50 -050021AlwaysBreakTemplateDeclarations: Yes
Lei YUa184bf62019-07-31 15:54:32 +080022BinPackArguments: true
23BinPackParameters: true
24BraceWrapping:
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
29 AfterFunction: true
30 AfterNamespace: true
31 AfterObjCDeclaration: true
32 AfterStruct: true
33 AfterUnion: true
Patrick Williams5670b182023-05-10 07:50:50 -050034 AfterExternBlock: true
Lei YUa184bf62019-07-31 15:54:32 +080035 BeforeCatch: true
36 BeforeElse: true
37 IndentBraces: false
Patrick Williams5670b182023-05-10 07:50:50 -050038 SplitEmptyFunction: false
39 SplitEmptyRecord: false
40 SplitEmptyNamespace: false
41BreakAfterAttributes: Never
Lei YUa184bf62019-07-31 15:54:32 +080042BreakBeforeBinaryOperators: None
43BreakBeforeBraces: Custom
44BreakBeforeTernaryOperators: true
45BreakConstructorInitializers: AfterColon
Patrick Williams5670b182023-05-10 07:50:50 -050046BreakInheritanceList: AfterColon
47BreakStringLiterals: false
Lei YUa184bf62019-07-31 15:54:32 +080048ColumnLimit: 80
49CommentPragmas: '^ IWYU pragma:'
Patrick Williams5670b182023-05-10 07:50:50 -050050CompactNamespaces: false
Lei YUa184bf62019-07-31 15:54:32 +080051ConstructorInitializerAllOnOneLineOrOnePerLine: false
52ConstructorInitializerIndentWidth: 4
53ContinuationIndentWidth: 4
54Cpp11BracedListStyle: true
Patrick Williams5670b182023-05-10 07:50:50 -050055DeriveLineEnding: false
Lei YUa184bf62019-07-31 15:54:32 +080056DerivePointerAlignment: false
Patrick Williams5670b182023-05-10 07:50:50 -050057PointerAlignment: Left
Lei YUa184bf62019-07-31 15:54:32 +080058DisableFormat: false
59ExperimentalAutoDetectBinPacking: false
60FixNamespaceComments: true
61ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
62IncludeBlocks: Regroup
63IncludeCategories:
64 - Regex: '^[<"](gtest|gmock)'
Patrick Williams5670b182023-05-10 07:50:50 -050065 Priority: 7
Lei YUa184bf62019-07-31 15:54:32 +080066 - Regex: '^"config.h"'
67 Priority: -1
Patrick Williams5670b182023-05-10 07:50:50 -050068 - Regex: '^".*\.h"'
Lei YUa184bf62019-07-31 15:54:32 +080069 Priority: 1
Patrick Williams5670b182023-05-10 07:50:50 -050070 - Regex: '^".*\.hpp"'
Lei YUa184bf62019-07-31 15:54:32 +080071 Priority: 2
Patrick Williams5670b182023-05-10 07:50:50 -050072 - Regex: '^<.*\.h>'
Lei YUa184bf62019-07-31 15:54:32 +080073 Priority: 3
Patrick Williams5670b182023-05-10 07:50:50 -050074 - Regex: '^<.*\.hpp>'
Lei YUa184bf62019-07-31 15:54:32 +080075 Priority: 4
Patrick Williams5670b182023-05-10 07:50:50 -050076 - Regex: '^<.*'
77 Priority: 5
78 - Regex: '.*'
79 Priority: 6
Lei YUa184bf62019-07-31 15:54:32 +080080IndentCaseLabels: true
Patrick Williams5670b182023-05-10 07:50:50 -050081IndentRequiresClause: true
Lei YUa184bf62019-07-31 15:54:32 +080082IndentWidth: 4
83IndentWrappedFunctionNames: true
Patrick Williams5670b182023-05-10 07:50:50 -050084InsertNewlineAtEOF: true
85KeepEmptyLinesAtTheStartOfBlocks: false
86LambdaBodyIndentation: OuterScope
87LineEnding: LF
Lei YUa184bf62019-07-31 15:54:32 +080088MacroBlockBegin: ''
89MacroBlockEnd: ''
90MaxEmptyLinesToKeep: 1
91NamespaceIndentation: None
92ObjCBlockIndentWidth: 2
93ObjCSpaceAfterProperty: false
94ObjCSpaceBeforeProtocolList: true
Patrick Williams5670b182023-05-10 07:50:50 -050095PenaltyBreakAssignment: 25
Lei YUa184bf62019-07-31 15:54:32 +080096PenaltyBreakBeforeFirstCallParameter: 19
97PenaltyBreakComment: 300
98PenaltyBreakFirstLessLess: 120
99PenaltyBreakString: 1000
100PenaltyExcessCharacter: 1000000
101PenaltyReturnTypeOnItsOwnLine: 60
Patrick Williams5670b182023-05-10 07:50:50 -0500102PenaltyIndentedWhitespace: 0
103QualifierAlignment: Left
104ReferenceAlignment: Left
Lei YUa184bf62019-07-31 15:54:32 +0800105ReflowComments: true
Patrick Williams5670b182023-05-10 07:50:50 -0500106RequiresClausePosition: OwnLine
107RequiresExpressionIndentation: Keyword
Lei YUa184bf62019-07-31 15:54:32 +0800108SortIncludes: true
109SortUsingDeclarations: true
110SpaceAfterCStyleCast: false
Patrick Williams5670b182023-05-10 07:50:50 -0500111SpaceAfterTemplateKeyword: true
Lei YUa184bf62019-07-31 15:54:32 +0800112SpaceBeforeAssignmentOperators: true
Patrick Williams5670b182023-05-10 07:50:50 -0500113SpaceBeforeCpp11BracedList: false
114SpaceBeforeCtorInitializerColon: true
115SpaceBeforeInheritanceColon: true
Lei YUa184bf62019-07-31 15:54:32 +0800116SpaceBeforeParens: ControlStatements
Patrick Williams5670b182023-05-10 07:50:50 -0500117SpaceBeforeRangeBasedForLoopColon: true
Lei YUa184bf62019-07-31 15:54:32 +0800118SpaceInEmptyParentheses: false
119SpacesBeforeTrailingComments: 1
120SpacesInAngles: false
121SpacesInContainerLiterals: true
122SpacesInCStyleCastParentheses: false
123SpacesInParentheses: false
124SpacesInSquareBrackets: false
Patrick Williams5670b182023-05-10 07:50:50 -0500125Standard: Latest
Lei YUa184bf62019-07-31 15:54:32 +0800126TabWidth: 4
127UseTab: Never
128...
Patrick Williams5670b182023-05-10 07:50:50 -0500129