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 |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 9 | AlignOperands: true |
| 10 | AlignTrailingComments: true |
| 11 | AllowAllParametersOfDeclarationOnNextLine: true |
| 12 | AllowShortBlocksOnASingleLine: false |
| 13 | AllowShortCaseLabelsOnASingleLine: false |
| 14 | AllowShortFunctionsOnASingleLine: None |
| 15 | AllowShortIfStatementsOnASingleLine: false |
| 16 | AllowShortLoopsOnASingleLine: false |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 17 | AlwaysBreakAfterReturnType: None |
| 18 | AlwaysBreakBeforeMultilineStrings: false |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 19 | AlwaysBreakTemplateDeclarations: Yes |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 20 | BinPackArguments: true |
| 21 | BinPackParameters: true |
| 22 | BraceWrapping: |
Deepak Kodihalli | 826c9d4 | 2020-05-26 01:58:06 -0500 | [diff] [blame] | 23 | AfterCaseLabel: true |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 24 | AfterClass: true |
| 25 | AfterControlStatement: true |
| 26 | AfterEnum: true |
| 27 | AfterFunction: true |
| 28 | AfterNamespace: true |
| 29 | AfterObjCDeclaration: true |
| 30 | AfterStruct: true |
| 31 | AfterUnion: true |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 32 | AfterExternBlock: true |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 33 | BeforeCatch: true |
| 34 | BeforeElse: true |
| 35 | IndentBraces: false |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 36 | SplitEmptyFunction: false |
| 37 | SplitEmptyRecord: false |
| 38 | SplitEmptyNamespace: false |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 39 | BreakBeforeBinaryOperators: None |
| 40 | BreakBeforeBraces: Custom |
| 41 | BreakBeforeTernaryOperators: true |
| 42 | BreakConstructorInitializers: AfterColon |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 43 | BreakInheritanceList: AfterColon |
George Liu | a6678d7 | 2021-09-14 09:54:45 +0800 | [diff] [blame] | 44 | BreakStringLiterals: false |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 45 | ColumnLimit: 80 |
| 46 | CommentPragmas: '^ IWYU pragma:' |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 47 | CompactNamespaces: false |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 48 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 49 | ConstructorInitializerIndentWidth: 4 |
| 50 | ContinuationIndentWidth: 4 |
| 51 | Cpp11BracedListStyle: true |
Manojkiran Eda | 66d26e3 | 2021-11-23 09:09:18 +0530 | [diff] [blame] | 52 | DeriveLineEnding: false |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 53 | DerivePointerAlignment: false |
| 54 | PointerAlignment: Left |
| 55 | DisableFormat: false |
| 56 | ExperimentalAutoDetectBinPacking: false |
| 57 | FixNamespaceComments: true |
| 58 | ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 59 | IncludeBlocks: Regroup |
| 60 | IncludeCategories: |
| 61 | - Regex: '^[<"](gtest|gmock)' |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 62 | Priority: 7 |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 63 | - Regex: '^"config.h"' |
| 64 | Priority: -1 |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 65 | - Regex: '^".*\.h"' |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 66 | Priority: 1 |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 67 | - Regex: '^".*\.hpp"' |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 68 | Priority: 2 |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 69 | - Regex: '^<.*\.h>' |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 70 | Priority: 3 |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 71 | - Regex: '^<.*\.hpp>' |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 72 | Priority: 4 |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 73 | - Regex: '^<.*' |
| 74 | Priority: 5 |
| 75 | - Regex: '.*' |
| 76 | Priority: 6 |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 77 | IndentCaseLabels: true |
| 78 | IndentWidth: 4 |
| 79 | IndentWrappedFunctionNames: true |
Manojkiran Eda | ca1998f | 2022-06-06 16:48:25 +0530 | [diff] [blame] | 80 | KeepEmptyLinesAtTheStartOfBlocks: false |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 81 | MacroBlockBegin: '' |
| 82 | MacroBlockEnd: '' |
| 83 | MaxEmptyLinesToKeep: 1 |
| 84 | NamespaceIndentation: None |
| 85 | ObjCBlockIndentWidth: 2 |
| 86 | ObjCSpaceAfterProperty: false |
| 87 | ObjCSpaceBeforeProtocolList: true |
| 88 | PenaltyBreakBeforeFirstCallParameter: 19 |
| 89 | PenaltyBreakComment: 300 |
| 90 | PenaltyBreakFirstLessLess: 120 |
| 91 | PenaltyBreakString: 1000 |
| 92 | PenaltyExcessCharacter: 1000000 |
| 93 | PenaltyReturnTypeOnItsOwnLine: 60 |
| 94 | ReflowComments: true |
| 95 | SortIncludes: true |
| 96 | SortUsingDeclarations: true |
| 97 | SpaceAfterCStyleCast: false |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 98 | SpaceAfterTemplateKeyword: true |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 99 | SpaceBeforeAssignmentOperators: true |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 100 | SpaceBeforeCpp11BracedList: false |
| 101 | SpaceBeforeCtorInitializerColon: true |
| 102 | SpaceBeforeInheritanceColon: true |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 103 | SpaceBeforeParens: ControlStatements |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 104 | SpaceBeforeRangeBasedForLoopColon: true |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 105 | SpaceInEmptyParentheses: false |
| 106 | SpacesBeforeTrailingComments: 1 |
| 107 | SpacesInAngles: false |
| 108 | SpacesInContainerLiterals: true |
| 109 | SpacesInCStyleCastParentheses: false |
| 110 | SpacesInParentheses: false |
| 111 | SpacesInSquareBrackets: false |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 112 | Standard: Latest |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 113 | TabWidth: 4 |
Manojkiran Eda | 66d26e3 | 2021-11-23 09:09:18 +0530 | [diff] [blame] | 114 | UseCRLF: false |
Tom Joseph | cf0c642 | 2019-02-10 21:37:44 +0530 | [diff] [blame] | 115 | UseTab: Never |
| 116 | ... |
Manojkiran Eda | 66d26e3 | 2021-11-23 09:09:18 +0530 | [diff] [blame] | 117 | |