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