Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 1 | --- |
| 2 | Language: Cpp |
| 3 | # BasedOnStyle: LLVM |
| 4 | AccessModifierOffset: -2 |
| 5 | AlignAfterOpenBracket: Align |
| 6 | AlignConsecutiveAssignments: false |
| 7 | AlignConsecutiveDeclarations: false |
| 8 | AlignEscapedNewlines: Right |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 9 | AlignOperands: Align |
| 10 | AlignTrailingComments: |
| 11 | Kind: Always |
| 12 | OverEmptyLines: 1 |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 13 | AllowAllParametersOfDeclarationOnNextLine: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 14 | AllowShortBlocksOnASingleLine: Empty |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 15 | AllowShortCaseLabelsOnASingleLine: false |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 16 | AllowShortFunctionsOnASingleLine: Empty |
| 17 | AllowShortIfStatementsOnASingleLine: Never |
| 18 | AllowShortLambdasOnASingleLine: true |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 19 | AllowShortLoopsOnASingleLine: false |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 20 | AlwaysBreakBeforeMultilineStrings: false |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 21 | BinPackArguments: true |
| 22 | BinPackParameters: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 23 | BitFieldColonSpacing: None |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 24 | BraceWrapping: |
| 25 | AfterCaseLabel: true |
| 26 | AfterClass: true |
| 27 | AfterControlStatement: true |
| 28 | AfterEnum: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 29 | AfterExternBlock: true |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 30 | AfterFunction: true |
| 31 | AfterNamespace: true |
| 32 | AfterObjCDeclaration: true |
| 33 | AfterStruct: true |
| 34 | AfterUnion: true |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 35 | BeforeCatch: true |
| 36 | BeforeElse: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 37 | BeforeLambdaBody: false |
| 38 | BeforeWhile: false |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 39 | IndentBraces: false |
| 40 | SplitEmptyFunction: false |
| 41 | SplitEmptyRecord: false |
| 42 | SplitEmptyNamespace: false |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 43 | BreakAfterAttributes: Never |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 44 | BreakBeforeBinaryOperators: None |
| 45 | BreakBeforeBraces: Custom |
| 46 | BreakBeforeTernaryOperators: true |
| 47 | BreakConstructorInitializers: AfterColon |
| 48 | BreakInheritanceList: AfterColon |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 49 | BreakStringLiterals: false |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 50 | ColumnLimit: 80 |
| 51 | CommentPragmas: '^ IWYU pragma:' |
| 52 | CompactNamespaces: false |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 53 | ConstructorInitializerIndentWidth: 4 |
| 54 | ContinuationIndentWidth: 4 |
| 55 | Cpp11BracedListStyle: true |
| 56 | DerivePointerAlignment: false |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 57 | DisableFormat: false |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 58 | FixNamespaceComments: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 59 | ForEachMacros: |
| 60 | - foreach |
| 61 | - Q_FOREACH |
| 62 | - BOOST_FOREACH |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 63 | IncludeBlocks: Regroup |
| 64 | IncludeCategories: |
| 65 | - Regex: '^[<"](gtest|gmock)' |
| 66 | Priority: 7 |
| 67 | - Regex: '^"config.h"' |
| 68 | Priority: -1 |
| 69 | - Regex: '^".*\.h"' |
| 70 | Priority: 1 |
| 71 | - Regex: '^".*\.hpp"' |
| 72 | Priority: 2 |
| 73 | - Regex: '^<.*\.h>' |
| 74 | Priority: 3 |
| 75 | - Regex: '^<.*\.hpp>' |
| 76 | Priority: 4 |
| 77 | - Regex: '^<.*' |
| 78 | Priority: 5 |
| 79 | - Regex: '.*' |
| 80 | Priority: 6 |
| 81 | IndentCaseLabels: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 82 | IndentExternBlock: NoIndent |
| 83 | IndentRequiresClause: true |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 84 | IndentWidth: 4 |
| 85 | IndentWrappedFunctionNames: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 86 | InsertNewlineAtEOF: true |
| 87 | KeepEmptyLinesAtTheStartOfBlocks: false |
George Liu | 93b6a33 | 2024-08-19 08:30:52 +0800 | [diff] [blame] | 88 | LambdaBodyIndentation: Signature |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 89 | LineEnding: LF |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 90 | MacroBlockBegin: '' |
| 91 | MacroBlockEnd: '' |
| 92 | MaxEmptyLinesToKeep: 1 |
| 93 | NamespaceIndentation: None |
| 94 | ObjCBlockIndentWidth: 2 |
| 95 | ObjCSpaceAfterProperty: false |
| 96 | ObjCSpaceBeforeProtocolList: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 97 | PackConstructorInitializers: BinPack |
| 98 | PenaltyBreakAssignment: 25 |
George Liu | 93b6a33 | 2024-08-19 08:30:52 +0800 | [diff] [blame] | 99 | PenaltyBreakBeforeFirstCallParameter: 50 |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 100 | PenaltyBreakComment: 300 |
| 101 | PenaltyBreakFirstLessLess: 120 |
| 102 | PenaltyBreakString: 1000 |
George Liu | 93b6a33 | 2024-08-19 08:30:52 +0800 | [diff] [blame] | 103 | PenaltyBreakTemplateDeclaration: 10 |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 104 | PenaltyExcessCharacter: 1000000 |
| 105 | PenaltyReturnTypeOnItsOwnLine: 60 |
George Liu | 93b6a33 | 2024-08-19 08:30:52 +0800 | [diff] [blame] | 106 | PenaltyIndentedWhitespace: 1 |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 107 | PointerAlignment: Left |
| 108 | QualifierAlignment: Left |
| 109 | ReferenceAlignment: Left |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 110 | ReflowComments: true |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 111 | RequiresClausePosition: OwnLine |
| 112 | RequiresExpressionIndentation: Keyword |
| 113 | SortIncludes: CaseSensitive |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 114 | SortUsingDeclarations: true |
| 115 | SpaceAfterCStyleCast: false |
| 116 | SpaceAfterTemplateKeyword: true |
| 117 | SpaceBeforeAssignmentOperators: true |
| 118 | SpaceBeforeCpp11BracedList: false |
| 119 | SpaceBeforeCtorInitializerColon: true |
| 120 | SpaceBeforeInheritanceColon: true |
| 121 | SpaceBeforeParens: ControlStatements |
| 122 | SpaceBeforeRangeBasedForLoopColon: true |
| 123 | SpaceInEmptyParentheses: false |
| 124 | SpacesBeforeTrailingComments: 1 |
George Liu | 2ae5423 | 2024-04-03 09:40:27 +0800 | [diff] [blame] | 125 | SpacesInAngles: Never |
Lei YU | 0555a17 | 2020-09-20 14:54:20 +0800 | [diff] [blame] | 126 | SpacesInContainerLiterals: true |
| 127 | SpacesInCStyleCastParentheses: false |
| 128 | SpacesInParentheses: false |
| 129 | SpacesInSquareBrackets: false |
| 130 | Standard: Latest |
| 131 | TabWidth: 4 |
| 132 | UseTab: Never |
| 133 | ... |