|
1 |
| -####this configuration requires clang - format 3.8 or higher## |
2 |
| -Language : Cpp |
3 |
| -UseTab : Never |
4 |
| -TabWidth : 4 |
5 |
| -IndentWidth : 4 |
6 |
| -BasedOnStyle : Google |
7 |
| -PenaltyBreakString : 999999999 |
8 |
| -ColumnLimit : 132 |
| 1 | +--- |
| 2 | +Language: Cpp |
| 3 | +# BasedOnStyle: WebKit |
| 4 | +AccessModifierOffset: -4 |
| 5 | +AlignAfterOpenBracket: DontAlign |
| 6 | +AlignConsecutiveMacros: false |
| 7 | +AlignConsecutiveAssignments: false |
| 8 | +AlignConsecutiveBitFields: false |
| 9 | +AlignConsecutiveDeclarations: false |
| 10 | +AlignEscapedNewlines: Right |
| 11 | +AlignOperands: DontAlign |
| 12 | +AlignTrailingComments: false |
| 13 | +AllowAllArgumentsOnNextLine: true |
| 14 | +AllowAllConstructorInitializersOnNextLine: true |
| 15 | +AllowAllParametersOfDeclarationOnNextLine: true |
| 16 | +AllowShortEnumsOnASingleLine: true |
| 17 | +AllowShortBlocksOnASingleLine: Empty |
| 18 | +AllowShortCaseLabelsOnASingleLine: false |
| 19 | +AllowShortFunctionsOnASingleLine: All |
| 20 | +AllowShortLambdasOnASingleLine: All |
| 21 | +AllowShortIfStatementsOnASingleLine: Never |
| 22 | +AllowShortLoopsOnASingleLine: false |
| 23 | +AlwaysBreakAfterDefinitionReturnType: None |
| 24 | +AlwaysBreakAfterReturnType: None |
| 25 | +AlwaysBreakBeforeMultilineStrings: false |
| 26 | +AlwaysBreakTemplateDeclarations: MultiLine |
| 27 | +BinPackArguments: true |
| 28 | +BinPackParameters: true |
| 29 | +BraceWrapping: |
| 30 | + AfterCaseLabel: false |
| 31 | + AfterClass: false |
| 32 | + AfterControlStatement: Never |
| 33 | + AfterEnum: false |
| 34 | + AfterFunction: true |
| 35 | + AfterNamespace: false |
| 36 | + AfterObjCDeclaration: false |
| 37 | + AfterStruct: false |
| 38 | + AfterUnion: false |
| 39 | + AfterExternBlock: false |
| 40 | + BeforeCatch: false |
| 41 | + BeforeElse: false |
| 42 | + BeforeLambdaBody: false |
| 43 | + BeforeWhile: false |
| 44 | + IndentBraces: false |
| 45 | + SplitEmptyFunction: true |
| 46 | + SplitEmptyRecord: true |
| 47 | + SplitEmptyNamespace: true |
| 48 | +BreakBeforeBinaryOperators: All |
| 49 | +BreakBeforeBraces: WebKit |
| 50 | +BreakBeforeInheritanceComma: false |
| 51 | +BreakInheritanceList: BeforeColon |
| 52 | +BreakBeforeTernaryOperators: true |
| 53 | +BreakConstructorInitializersBeforeComma: false |
| 54 | +BreakConstructorInitializers: BeforeComma |
| 55 | +BreakAfterJavaFieldAnnotations: false |
| 56 | +BreakStringLiterals: true |
| 57 | +ColumnLimit: 80 |
| 58 | +CommentPragmas: '^ IWYU pragma:' |
| 59 | +CompactNamespaces: false |
| 60 | +ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 61 | +ConstructorInitializerIndentWidth: 4 |
| 62 | +ContinuationIndentWidth: 4 |
| 63 | +Cpp11BracedListStyle: false |
| 64 | +DeriveLineEnding: true |
| 65 | +DerivePointerAlignment: false |
| 66 | +DisableFormat: false |
| 67 | +ExperimentalAutoDetectBinPacking: false |
| 68 | +FixNamespaceComments: false |
| 69 | +ForEachMacros: |
| 70 | + - foreach |
| 71 | + - Q_FOREACH |
| 72 | + - BOOST_FOREACH |
| 73 | +IncludeBlocks: Preserve |
| 74 | +IncludeCategories: |
| 75 | + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 76 | + Priority: 2 |
| 77 | + SortPriority: 0 |
| 78 | + - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
| 79 | + Priority: 3 |
| 80 | + SortPriority: 0 |
| 81 | + - Regex: '.*' |
| 82 | + Priority: 1 |
| 83 | + SortPriority: 0 |
| 84 | +IncludeIsMainRegex: '(Test)?$' |
| 85 | +IncludeIsMainSourceRegex: '' |
| 86 | +IndentCaseLabels: false |
| 87 | +IndentCaseBlocks: false |
| 88 | +IndentGotoLabels: true |
| 89 | +IndentPPDirectives: None |
| 90 | +IndentExternBlock: AfterExternBlock |
| 91 | +IndentWidth: 4 |
| 92 | +IndentWrappedFunctionNames: false |
| 93 | +InsertTrailingCommas: None |
| 94 | +JavaScriptQuotes: Leave |
| 95 | +JavaScriptWrapImports: true |
| 96 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 97 | +MacroBlockBegin: '' |
| 98 | +MacroBlockEnd: '' |
| 99 | +MaxEmptyLinesToKeep: 1 |
| 100 | +NamespaceIndentation: Inner |
| 101 | +ObjCBinPackProtocolList: Auto |
| 102 | +ObjCBlockIndentWidth: 4 |
| 103 | +ObjCBreakBeforeNestedBlockParam: true |
| 104 | +ObjCSpaceAfterProperty: true |
| 105 | +ObjCSpaceBeforeProtocolList: true |
| 106 | +PenaltyBreakAssignment: 2 |
| 107 | +PenaltyBreakBeforeFirstCallParameter: 19 |
| 108 | +PenaltyBreakComment: 300 |
| 109 | +PenaltyBreakFirstLessLess: 120 |
| 110 | +PenaltyBreakString: 1000 |
| 111 | +PenaltyBreakTemplateDeclaration: 10 |
| 112 | +PenaltyExcessCharacter: 1000000 |
| 113 | +PenaltyReturnTypeOnItsOwnLine: 60 |
| 114 | +PointerAlignment: Left |
| 115 | +ReflowComments: true |
| 116 | +SortIncludes: true |
| 117 | +SortUsingDeclarations: true |
| 118 | +SpaceAfterCStyleCast: false |
| 119 | +SpaceAfterLogicalNot: false |
| 120 | +SpaceAfterTemplateKeyword: true |
| 121 | +SpaceBeforeAssignmentOperators: true |
| 122 | +SpaceBeforeCpp11BracedList: true |
| 123 | +SpaceBeforeCtorInitializerColon: true |
| 124 | +SpaceBeforeInheritanceColon: true |
| 125 | +SpaceBeforeParens: ControlStatements |
| 126 | +SpaceBeforeRangeBasedForLoopColon: true |
| 127 | +SpaceInEmptyBlock: true |
| 128 | +SpaceInEmptyParentheses: false |
| 129 | +SpacesBeforeTrailingComments: 1 |
| 130 | +SpacesInAngles: false |
| 131 | +SpacesInConditionalStatement: false |
| 132 | +SpacesInContainerLiterals: true |
| 133 | +SpacesInCStyleCastParentheses: false |
| 134 | +SpacesInParentheses: false |
| 135 | +SpacesInSquareBrackets: false |
| 136 | +SpaceBeforeSquareBrackets: false |
| 137 | +Standard: Latest |
| 138 | +StatementMacros: |
| 139 | + - Q_UNUSED |
| 140 | + - QT_REQUIRE_VERSION |
| 141 | +TabWidth: 8 |
| 142 | +UseCRLF: false |
| 143 | +UseTab: Never |
| 144 | +WhitespaceSensitiveMacros: |
| 145 | + - STRINGIZE |
| 146 | + - PP_STRINGIZE |
| 147 | + - BOOST_PP_STRINGIZE |
| 148 | +... |
0 commit comments