|
| 1 | +--- |
| 2 | +# SFT codestyle |
| 3 | +# Tab indent + space alignment |
| 4 | +# see documentation in doc/code_style/ for details and explainations. |
| 5 | +Language: Cpp |
| 6 | +AccessModifierOffset: -4 |
| 7 | +AlignAfterOpenBracket: Align |
| 8 | +AlignArrayOfStructures: None |
| 9 | +AlignConsecutiveAssignments: false |
| 10 | +AlignConsecutiveBitFields: false |
| 11 | +AlignConsecutiveDeclarations: false |
| 12 | +AlignConsecutiveMacros: false |
| 13 | +AlignEscapedNewlines: DontAlign |
| 14 | +AlignOperands: Align |
| 15 | +AlignTrailingComments: false |
| 16 | +AllowAllArgumentsOnNextLine: true |
| 17 | +AllowAllParametersOfDeclarationOnNextLine: true |
| 18 | +AllowShortBlocksOnASingleLine: Never |
| 19 | +AllowShortCaseLabelsOnASingleLine: false |
| 20 | +AllowShortEnumsOnASingleLine: false |
| 21 | +AllowShortFunctionsOnASingleLine: Empty |
| 22 | +AllowShortIfStatementsOnASingleLine: Never |
| 23 | +AllowShortLambdasOnASingleLine: All |
| 24 | +AllowShortLoopsOnASingleLine: false |
| 25 | +AlwaysBreakAfterDefinitionReturnType: None |
| 26 | +AlwaysBreakAfterReturnType: None |
| 27 | +AlwaysBreakBeforeMultilineStrings: false |
| 28 | +AlwaysBreakTemplateDeclarations: Yes |
| 29 | +BinPackArguments: false |
| 30 | +BinPackParameters: false |
| 31 | +BraceWrapping: |
| 32 | + AfterCaseLabel: false |
| 33 | + AfterClass: false |
| 34 | + AfterControlStatement: Never |
| 35 | + AfterEnum: false |
| 36 | + AfterExternBlock: false |
| 37 | + AfterFunction: false |
| 38 | + AfterNamespace: false |
| 39 | + AfterObjCDeclaration: false |
| 40 | + AfterStruct: false |
| 41 | + AfterUnion: false |
| 42 | + BeforeCatch: true |
| 43 | + BeforeElse: true |
| 44 | + BeforeLambdaBody: false |
| 45 | + BeforeWhile: true |
| 46 | + IndentBraces: false |
| 47 | + SplitEmptyFunction: false |
| 48 | + SplitEmptyNamespace: false |
| 49 | + SplitEmptyRecord: false |
| 50 | +BreakAfterJavaFieldAnnotations: true |
| 51 | +BreakBeforeBinaryOperators: NonAssignment |
| 52 | +BreakBeforeBraces: Custom |
| 53 | +BreakBeforeInheritanceComma: false |
| 54 | +BreakBeforeTernaryOperators: false |
| 55 | +BreakConstructorInitializers: AfterColon |
| 56 | +BreakInheritanceList: BeforeComma |
| 57 | +BreakStringLiterals: false |
| 58 | +ColumnLimit: 0 |
| 59 | +CompactNamespaces: false |
| 60 | +ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 61 | +ConstructorInitializerIndentWidth: 4 |
| 62 | +ContinuationIndentWidth: 4 |
| 63 | +Cpp11BracedListStyle: true |
| 64 | +DeriveLineEnding: true |
| 65 | +DerivePointerAlignment: false |
| 66 | +DisableFormat: false |
| 67 | +ExperimentalAutoDetectBinPacking: false |
| 68 | +FixNamespaceComments: true |
| 69 | +ForEachMacros: |
| 70 | + - foreach |
| 71 | + - Q_FOREACH |
| 72 | + - BOOST_FOREACH |
| 73 | +IncludeBlocks: Preserve |
| 74 | +IncludeCategories: |
| 75 | + - Regex: '.*' |
| 76 | + Priority: 3 |
| 77 | + SortPriority: 0 |
| 78 | +IncludeIsMainRegex: '' |
| 79 | +IncludeIsMainSourceRegex: '' |
| 80 | +IndentCaseBlocks: false |
| 81 | +IndentCaseLabels: false |
| 82 | +IndentExternBlock: NoIndent |
| 83 | +IndentGotoLabels: false |
| 84 | +IndentPPDirectives: None |
| 85 | +IndentWidth: 4 |
| 86 | +IndentWrappedFunctionNames: false |
| 87 | +# clang-format-16 InsertNewlineAtEOF: true |
| 88 | +InsertTrailingCommas: Wrapped |
| 89 | +KeepEmptyLinesAtTheStartOfBlocks: false |
| 90 | +MacroBlockBegin: '' |
| 91 | +MacroBlockEnd: '' |
| 92 | +MaxEmptyLinesToKeep: 2 |
| 93 | +NamespaceIndentation: None |
| 94 | +PenaltyBreakAssignment: 2 |
| 95 | +PenaltyBreakBeforeFirstCallParameter: 1 |
| 96 | +PenaltyBreakComment: 300 |
| 97 | +PenaltyBreakFirstLessLess: 120 |
| 98 | +PenaltyBreakString: 1000 |
| 99 | +PenaltyBreakTemplateDeclaration: 10 |
| 100 | +PenaltyExcessCharacter: 1000000 |
| 101 | +PenaltyReturnTypeOnItsOwnLine: 200 |
| 102 | +PointerAlignment: Right |
| 103 | +ReflowComments: false |
| 104 | +SortIncludes: CaseInsensitive |
| 105 | +SortUsingDeclarations: true |
| 106 | +SpaceAfterCStyleCast: false |
| 107 | +SpaceAfterLogicalNot: false |
| 108 | +SpaceAfterTemplateKeyword: true |
| 109 | +SpaceBeforeAssignmentOperators: true |
| 110 | +SpaceBeforeCaseColon: false |
| 111 | +SpaceBeforeCpp11BracedList: false |
| 112 | +SpaceBeforeCtorInitializerColon: true |
| 113 | +SpaceBeforeInheritanceColon: true |
| 114 | +SpaceBeforeParens: ControlStatements |
| 115 | +SpaceBeforeRangeBasedForLoopColon: true |
| 116 | +SpaceBeforeSquareBrackets: false |
| 117 | +SpaceInEmptyBlock: false |
| 118 | +SpaceInEmptyParentheses: false |
| 119 | +SpacesBeforeTrailingComments: 1 |
| 120 | +SpacesInAngles: Never |
| 121 | +SpacesInCStyleCastParentheses: false |
| 122 | +SpacesInConditionalStatement: false |
| 123 | +SpacesInContainerLiterals: false |
| 124 | +SpacesInParentheses: false |
| 125 | +SpacesInSquareBrackets: false |
| 126 | +Standard: Latest |
| 127 | +TabWidth: 4 |
| 128 | +UseCRLF: false |
| 129 | +UseTab: AlignWithSpaces |
| 130 | +... |
0 commit comments