|
| 1 | +# Copyright 2021, 2022 The NexNix Project |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License |
| 5 | +# There should be a copy of the License distributed in a file named |
| 6 | +# LICENSE, if not, you may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +--- |
| 17 | +Language: Cpp |
| 18 | +# BasedOnStyle: Microsoft |
| 19 | +AccessModifierOffset: -2 |
| 20 | +AlignAfterOpenBracket: Align |
| 21 | +AlignArrayOfStructures: Left |
| 22 | +AlignConsecutiveMacros: AcrossComments |
| 23 | +AlignConsecutiveAssignments: false |
| 24 | +AlignConsecutiveDeclarations: false |
| 25 | +AlignEscapedNewlines: Left |
| 26 | +AlignOperands: true |
| 27 | +AlignTrailingComments: true |
| 28 | +AllowAllArgumentsOnNextLine: false |
| 29 | +AllowAllConstructorInitializersOnNextLine: true |
| 30 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 31 | +AllowShortBlocksOnASingleLine: Never |
| 32 | +AllowShortCaseLabelsOnASingleLine: false |
| 33 | +AllowShortFunctionsOnASingleLine: None |
| 34 | +AllowShortLambdasOnASingleLine: All |
| 35 | +AllowShortIfStatementsOnASingleLine: Never |
| 36 | +AllowShortLoopsOnASingleLine: false |
| 37 | +AlwaysBreakAfterDefinitionReturnType: None |
| 38 | +AlwaysBreakAfterReturnType: None |
| 39 | +AlwaysBreakBeforeMultilineStrings: false |
| 40 | +AlwaysBreakTemplateDeclarations: MultiLine |
| 41 | +BinPackArguments: false |
| 42 | +BinPackParameters: false |
| 43 | +BraceWrapping: |
| 44 | + AfterCaseLabel: false |
| 45 | + AfterClass: true |
| 46 | + AfterControlStatement: true |
| 47 | + AfterEnum: true |
| 48 | + AfterFunction: true |
| 49 | + AfterNamespace: true |
| 50 | + AfterObjCDeclaration: true |
| 51 | + AfterStruct: true |
| 52 | + AfterUnion: true |
| 53 | + AfterExternBlock: true |
| 54 | + BeforeCatch: true |
| 55 | + BeforeElse: true |
| 56 | + IndentBraces: false |
| 57 | + SplitEmptyFunction: true |
| 58 | + SplitEmptyRecord: true |
| 59 | + SplitEmptyNamespace: true |
| 60 | +BreakBeforeBinaryOperators: None |
| 61 | +BreakBeforeBraces: Custom |
| 62 | +BreakBeforeInheritanceComma: false |
| 63 | +BreakInheritanceList: BeforeColon |
| 64 | +BreakBeforeTernaryOperators: true |
| 65 | +BreakConstructorInitializersBeforeComma: false |
| 66 | +BreakConstructorInitializers: BeforeColon |
| 67 | +BreakAfterJavaFieldAnnotations: false |
| 68 | +BreakStringLiterals: true |
| 69 | +ColumnLimit: 120 |
| 70 | +CommentPragmas: '^ IWYU pragma:' |
| 71 | +CompactNamespaces: false |
| 72 | +ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 73 | +ConstructorInitializerIndentWidth: 4 |
| 74 | +ContinuationIndentWidth: 4 |
| 75 | +Cpp11BracedListStyle: true |
| 76 | +DeriveLineEnding: true |
| 77 | +DerivePointerAlignment: false |
| 78 | +DisableFormat: false |
| 79 | +ExperimentalAutoDetectBinPacking: false |
| 80 | +FixNamespaceComments: true |
| 81 | +ForEachMacros: |
| 82 | + - foreach |
| 83 | + - Q_FOREACH |
| 84 | + - BOOST_FOREACH |
| 85 | +IncludeBlocks: Preserve |
| 86 | +IncludeCategories: |
| 87 | + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 88 | + Priority: 2 |
| 89 | + SortPriority: 0 |
| 90 | + - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
| 91 | + Priority: 3 |
| 92 | + SortPriority: 0 |
| 93 | + - Regex: '.*' |
| 94 | + Priority: 1 |
| 95 | + SortPriority: 0 |
| 96 | +IncludeIsMainRegex: '(Test)?$' |
| 97 | +IncludeIsMainSourceRegex: '' |
| 98 | +IndentCaseLabels: true |
| 99 | +IndentGotoLabels: true |
| 100 | +IndentPPDirectives: None |
| 101 | +IndentWidth: 4 |
| 102 | +IndentWrappedFunctionNames: false |
| 103 | +JavaScriptQuotes: Leave |
| 104 | +JavaScriptWrapImports: true |
| 105 | +KeepEmptyLinesAtTheStartOfBlocks: true |
| 106 | +MacroBlockBegin: '' |
| 107 | +MacroBlockEnd: '' |
| 108 | +MaxEmptyLinesToKeep: 1 |
| 109 | +NamespaceIndentation: All |
| 110 | +ObjCBinPackProtocolList: Auto |
| 111 | +ObjCBlockIndentWidth: 2 |
| 112 | +ObjCSpaceAfterProperty: false |
| 113 | +ObjCSpaceBeforeProtocolList: true |
| 114 | +PenaltyBreakAssignment: 2 |
| 115 | +PenaltyBreakBeforeFirstCallParameter: 1 |
| 116 | +PenaltyBreakComment: 90 |
| 117 | +PenaltyBreakFirstLessLess: 120 |
| 118 | +PenaltyBreakString: 1000 |
| 119 | +PenaltyBreakTemplateDeclaration: 10 |
| 120 | +PenaltyExcessCharacter: 1000000 |
| 121 | +PenaltyReturnTypeOnItsOwnLine: 12345 |
| 122 | +PointerAlignment: Left |
| 123 | +ReflowComments: true |
| 124 | +SortIncludes: true |
| 125 | +SortUsingDeclarations: true |
| 126 | +SpaceAfterCStyleCast: true |
| 127 | +SpaceAfterLogicalNot: false |
| 128 | +SpaceAfterTemplateKeyword: true |
| 129 | +SpaceBeforeAssignmentOperators: true |
| 130 | +SpaceBeforeCpp11BracedList: false |
| 131 | +SpaceBeforeCtorInitializerColon: true |
| 132 | +SpaceBeforeInheritanceColon: true |
| 133 | +SpaceBeforeParens: NonEmptyParentheses |
| 134 | +SpaceBeforeRangeBasedForLoopColon: true |
| 135 | +SpaceInEmptyBlock: false |
| 136 | +SpaceInEmptyParentheses: false |
| 137 | +SpacesBeforeTrailingComments: 4 |
| 138 | +SpacesInAngles: false |
| 139 | +SpacesInConditionalStatement: false |
| 140 | +SpacesInContainerLiterals: true |
| 141 | +SpacesInCStyleCastParentheses: false |
| 142 | +SpacesInParentheses: false |
| 143 | +SpacesInSquareBrackets: false |
| 144 | +SpaceBeforeSquareBrackets: false |
| 145 | +Standard: Latest |
| 146 | +StatementMacros: |
| 147 | + - Q_UNUSED |
| 148 | + - QT_REQUIRE_VERSION |
| 149 | +TabWidth: 4 |
| 150 | +UseCRLF: false |
| 151 | +UseTab: Never |
| 152 | +... |
0 commit comments