108 lines
2.9 KiB
YAML
108 lines
2.9 KiB
YAML
---
|
|
Language: Cpp
|
|
|
|
DisableFormat: false
|
|
Standard: Latest
|
|
BasedOnStyle: WebKit
|
|
TabWidth: 4
|
|
IndentWidth: 4
|
|
ContinuationIndentWidth: 4
|
|
ConstructorInitializerIndentWidth: 1
|
|
UseTab: Never
|
|
ColumnLimit: 120
|
|
|
|
AccessModifierOffset: -4
|
|
AlignAfterOpenBracket: AlwaysBreak
|
|
AlignConsecutiveAssignments: false
|
|
AlignConsecutiveDeclarations: false
|
|
AlignConsecutiveMacros: false
|
|
AlignEscapedNewlines: DontAlign
|
|
AlignOperands: false
|
|
AlignTrailingComments: false
|
|
AllowAllArgumentsOnNextLine: false
|
|
AllowAllConstructorInitializersOnNextLine: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortBlocksOnASingleLine: Never
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortLambdasOnASingleLine: Inline
|
|
AllowShortLoopsOnASingleLine: false
|
|
AlwaysBreakAfterReturnType: None
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
AlwaysBreakTemplateDeclarations: No
|
|
BinPackArguments: false
|
|
BinPackParameters: false
|
|
|
|
# Configure each individual brace in BraceWrapping
|
|
BreakBeforeBraces: Custom
|
|
# Control of individual brace wrapping cases
|
|
BraceWrapping:
|
|
AfterCaseLabel: true
|
|
AfterClass: false
|
|
AfterControlStatement: Always
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterNamespace: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
AfterExternBlock: true
|
|
BeforeCatch: true
|
|
BeforeElse: true
|
|
BeforeLambdaBody: true
|
|
IndentBraces: false
|
|
SplitEmptyFunction: false
|
|
SplitEmptyRecord: false
|
|
SplitEmptyNamespace: true
|
|
|
|
BreakAfterJavaFieldAnnotations: true
|
|
BreakBeforeTernaryOperators: false
|
|
BreakConstructorInitializers: BeforeColon
|
|
BreakInheritanceList: BeforeColon
|
|
BreakStringLiterals: false
|
|
CommentPragmas: "^ IWYU pragma:"
|
|
CompactNamespaces: false
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
Cpp11BracedListStyle: true
|
|
FixNamespaceComments: false
|
|
IndentCaseLabels: true
|
|
IndentPPDirectives: BeforeHash
|
|
IndentWrappedFunctionNames: false
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
MacroBlockBegin: ""
|
|
MacroBlockEnd: ""
|
|
MaxEmptyLinesToKeep: 1
|
|
NamespaceIndentation: All
|
|
PenaltyBreakBeforeFirstCallParameter: 19
|
|
PenaltyBreakComment: 300
|
|
PenaltyBreakFirstLessLess: 120
|
|
PenaltyBreakString: 1000
|
|
|
|
PenaltyExcessCharacter: 1000000
|
|
PenaltyReturnTypeOnItsOwnLine: 60
|
|
PointerAlignment: Middle
|
|
# QualifierAlignment: Right # Only supported in clang-format 14+
|
|
# ReferenceAlignmentStyle: Middle # Only supported in clang-format 14+
|
|
SortIncludes: true
|
|
SortUsingDeclarations: true
|
|
SpaceAfterCStyleCast: false
|
|
SpaceAfterLogicalNot: false
|
|
SpaceAfterTemplateKeyword: false
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeCpp11BracedList: true
|
|
SpaceBeforeCtorInitializerColon: true
|
|
SpaceBeforeInheritanceColon: true
|
|
SpaceBeforeParens: Never
|
|
SpaceBeforeRangeBasedForLoopColon: false
|
|
SpaceInEmptyParentheses: false
|
|
SpacesBeforeTrailingComments: 1
|
|
SpacesInAngles: false
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInContainerLiterals: false
|
|
SpacesInParentheses: false
|
|
SpacesInSquareBrackets: false
|
|
|
|
# Comments are for developers, they should arrange them
|
|
ReflowComments: false
|
|
|
|
IncludeBlocks: Preserve
|
|
---
|