Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 1 | --- |
| 2 | Language: Cpp |
| 3 | # BasedOnStyle: LLVM |
| 4 | AccessModifierOffset: -2 |
| 5 | AlignAfterOpenBracket: Align |
| 6 | AlignConsecutiveAssignments: false |
| 7 | AlignConsecutiveDeclarations: false |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 8 | AlignEscapedNewlines: Right |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [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 |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 17 | AlwaysBreakAfterReturnType: None |
| 18 | AlwaysBreakBeforeMultilineStrings: false |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 19 | AlwaysBreakTemplateDeclarations: Yes |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 20 | BinPackArguments: true |
| 21 | BinPackParameters: true |
| 22 | BraceWrapping: |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 23 | AfterCaseLabel: true |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [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 |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 32 | AfterExternBlock: true |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 33 | BeforeCatch: true |
| 34 | BeforeElse: true |
| 35 | IndentBraces: false |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 36 | SplitEmptyFunction: false |
| 37 | SplitEmptyRecord: false |
| 38 | SplitEmptyNamespace: false |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 39 | BreakBeforeBinaryOperators: None |
| 40 | BreakBeforeBraces: Custom |
| 41 | BreakBeforeTernaryOperators: true |
| 42 | BreakConstructorInitializers: AfterColon |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 43 | BreakInheritanceList: AfterColon |
| 44 | BreakStringLiterals: false |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 45 | ColumnLimit: 80 |
| 46 | CommentPragmas: '^ IWYU pragma:' |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 47 | CompactNamespaces: false |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 48 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 49 | ConstructorInitializerIndentWidth: 4 |
| 50 | ContinuationIndentWidth: 4 |
| 51 | Cpp11BracedListStyle: true |
| 52 | DerivePointerAlignment: false |
| 53 | PointerAlignment: Left |
| 54 | DisableFormat: false |
| 55 | ExperimentalAutoDetectBinPacking: false |
| 56 | FixNamespaceComments: true |
| 57 | ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 58 | IncludeBlocks: Regroup |
| 59 | IncludeCategories: |
| 60 | - Regex: '^[<"](gtest|gmock)' |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 61 | Priority: 7 |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 62 | - Regex: '^"config.h"' |
| 63 | Priority: -1 |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 64 | - Regex: '^".*\.h"' |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 65 | Priority: 1 |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 66 | - Regex: '^".*\.hpp"' |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 67 | Priority: 2 |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 68 | - Regex: '^<.*\.h>' |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 69 | Priority: 3 |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 70 | - Regex: '^<.*\.hpp>' |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 71 | Priority: 4 |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 72 | - Regex: '^<.*' |
| 73 | Priority: 5 |
| 74 | - Regex: '.*' |
| 75 | Priority: 6 |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 76 | IndentCaseLabels: true |
| 77 | IndentWidth: 4 |
| 78 | IndentWrappedFunctionNames: true |
| 79 | KeepEmptyLinesAtTheStartOfBlocks: true |
| 80 | MacroBlockBegin: '' |
| 81 | MacroBlockEnd: '' |
| 82 | MaxEmptyLinesToKeep: 1 |
| 83 | NamespaceIndentation: None |
| 84 | ObjCBlockIndentWidth: 2 |
| 85 | ObjCSpaceAfterProperty: false |
| 86 | ObjCSpaceBeforeProtocolList: true |
| 87 | PenaltyBreakBeforeFirstCallParameter: 19 |
| 88 | PenaltyBreakComment: 300 |
| 89 | PenaltyBreakFirstLessLess: 120 |
| 90 | PenaltyBreakString: 1000 |
| 91 | PenaltyExcessCharacter: 1000000 |
| 92 | PenaltyReturnTypeOnItsOwnLine: 60 |
| 93 | ReflowComments: true |
| 94 | SortIncludes: true |
| 95 | SortUsingDeclarations: true |
| 96 | SpaceAfterCStyleCast: false |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 97 | SpaceAfterTemplateKeyword: true |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 98 | SpaceBeforeAssignmentOperators: true |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 99 | SpaceBeforeCpp11BracedList: false |
| 100 | SpaceBeforeCtorInitializerColon: true |
| 101 | SpaceBeforeInheritanceColon: true |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 102 | SpaceBeforeParens: ControlStatements |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 103 | SpaceBeforeRangeBasedForLoopColon: true |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 104 | SpaceInEmptyParentheses: false |
| 105 | SpacesBeforeTrailingComments: 1 |
| 106 | SpacesInAngles: false |
| 107 | SpacesInContainerLiterals: true |
| 108 | SpacesInCStyleCastParentheses: false |
| 109 | SpacesInParentheses: false |
| 110 | SpacesInSquareBrackets: false |
Manojkiran Eda | ee12f48 | 2021-10-26 22:16:29 +0530 | [diff] [blame] | 111 | Standard: Latest |
Patrick Venture | 537ff14 | 2018-11-01 16:37:09 -0700 | [diff] [blame] | 112 | TabWidth: 4 |
| 113 | UseTab: Never |
| 114 | ... |
| 115 | |