109 строки
3.2 KiB
YAML
109 строки
3.2 KiB
YAML
Language: Cpp
|
|
Standard: Latest
|
|
AccessModifierOffset: -4
|
|
AlignAfterOpenBracket: AlwaysBreak
|
|
AlignConsecutiveAssignments: false
|
|
# AlignConsecutiveBitFields: false
|
|
AlignConsecutiveDeclarations: false
|
|
AlignConsecutiveMacros: true
|
|
AlignEscapedNewlines: Left
|
|
AlignOperands: true # clang 12: Align or AlignAfterOperator
|
|
AlignTrailingComments: true
|
|
AllowAllArgumentsOnNextLine: true
|
|
AllowAllConstructorInitializersOnNextLine: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortBlocksOnASingleLine: false
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
# AllowShortEnumsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
AllowShortLambdasOnASingleLine: All
|
|
AllowShortLoopsOnASingleLine: true
|
|
AlwaysBreakAfterReturnType: None
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
BinPackArguments: true
|
|
BinPackParameters: true
|
|
# BitFieldColonSpacing: Both
|
|
BreakBeforeBinaryOperators: None
|
|
BreakBeforeBraces: Allman
|
|
BreakBeforeTernaryOperators: true
|
|
BreakConstructorInitializers: BeforeComma
|
|
BreakInheritanceList: BeforeComma
|
|
BreakStringLiterals: true
|
|
ColumnLimit: 140
|
|
CompactNamespaces: false
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
ConstructorInitializerIndentWidth: 4
|
|
ContinuationIndentWidth: 4
|
|
Cpp11BracedListStyle: true
|
|
DeriveLineEnding: true
|
|
DerivePointerAlignment: false
|
|
DisableFormat: false
|
|
FixNamespaceComments: true
|
|
ForEachMacros: []
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: '.*\.generated\.h'
|
|
Priority: 100
|
|
- Regex: '"[^/]*"'
|
|
Priority: 1
|
|
- Regex: '^<[^/]*>'
|
|
Priority: 3
|
|
- Regex: '^<.*>'
|
|
Priority: 4
|
|
- Regex: '".*"'
|
|
Priority: 2
|
|
IncludeIsMainRegex: "$"
|
|
IndentCaseLabels: false
|
|
# IndentExternBlock: AfterExternBlock
|
|
IndentGotoLabels: false
|
|
IndentPPDirectives: None
|
|
IndentWidth: 4
|
|
IndentWrappedFunctionNames: false
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
MaxEmptyLinesToKeep: 1
|
|
NamespaceIndentation: All
|
|
ObjCBinPackProtocolList: Never
|
|
ObjCBlockIndentWidth: 4
|
|
ObjCSpaceAfterProperty: false
|
|
ObjCSpaceBeforeProtocolList: true
|
|
PenaltyBreakAssignment: 2
|
|
PenaltyBreakBeforeFirstCallParameter: 1
|
|
PenaltyBreakComment: 300
|
|
PenaltyBreakFirstLessLess: 120
|
|
PenaltyBreakString: 1000
|
|
PenaltyBreakTemplateDeclaration: 10
|
|
PenaltyExcessCharacter: 100
|
|
PenaltyReturnTypeOnItsOwnLine: 2000
|
|
PointerAlignment: Left
|
|
ReflowComments: true
|
|
SortIncludes: true
|
|
SortUsingDeclarations: true
|
|
SpaceAfterCStyleCast: false
|
|
SpaceAfterLogicalNot: false
|
|
SpaceAfterTemplateKeyword: true
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeCpp11BracedList: false
|
|
SpaceBeforeCtorInitializerColon: true
|
|
SpaceBeforeInheritanceColon: true
|
|
SpaceBeforeParens: ControlStatements # clang 12: ControlStatementsExceptForEachMacros
|
|
SpaceBeforeRangeBasedForLoopColon: true
|
|
SpaceBeforeSquareBrackets: false
|
|
SpaceInEmptyBlock: false
|
|
SpaceInEmptyParentheses: false
|
|
SpacesBeforeTrailingComments: 1
|
|
SpacesInAngles: false
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInConditionalStatement: false
|
|
SpacesInContainerLiterals: false
|
|
SpacesInParentheses: false
|
|
SpacesInSquareBrackets: false
|
|
TabWidth: 4
|
|
UseCRLF: true # fallback for DeriveLineEnding
|
|
UseTab: ForContinuationAndIndentation
|
|
|
|
|
|
|
|
|