mirror of
https://github.com/tezc/sc.git
synced 2025-01-14 06:43:04 +08:00
121 lines
3.2 KiB
YAML
121 lines
3.2 KiB
YAML
---
|
|
Language: Cpp
|
|
AccessModifierOffset: -4
|
|
AlignAfterOpenBracket: Align
|
|
AlignConsecutiveAssignments: None
|
|
AlignConsecutiveDeclarations: None
|
|
AlignConsecutiveMacros: None
|
|
AlignEscapedNewlines: Right
|
|
AlignOperands: Align
|
|
AlignTrailingComments: true
|
|
AllowAllArgumentsOnNextLine: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortBlocksOnASingleLine: Never
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: None
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
AllowShortLoopsOnASingleLine: false
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
AlwaysBreakAfterReturnType: None
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
AlwaysBreakTemplateDeclarations: No
|
|
BinPackArguments: true
|
|
BinPackParameters: true
|
|
|
|
BraceWrapping:
|
|
AfterCaseLabel: false
|
|
AfterClass: false
|
|
AfterControlStatement: Never
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterNamespace: false
|
|
AfterObjCDeclaration: false
|
|
AfterStruct: false
|
|
AfterUnion: false
|
|
AfterExternBlock: false
|
|
BeforeCatch: false
|
|
BeforeElse: false
|
|
IndentBraces: false
|
|
SplitEmptyFunction: true
|
|
SplitEmptyRecord: true
|
|
SplitEmptyNamespace: true
|
|
BreakBeforeBinaryOperators: None
|
|
BreakBeforeBraces: Custom
|
|
BreakBeforeInheritanceComma: false
|
|
BreakBeforeTernaryOperators: false
|
|
BreakConstructorInitializersBeforeComma: false
|
|
BreakConstructorInitializers: BeforeColon
|
|
BreakStringLiterals: true
|
|
ColumnLimit: 80
|
|
CommentPragmas: '^ IWYU pragma:'
|
|
CompactNamespaces: false
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
ConstructorInitializerIndentWidth: 8
|
|
ContinuationIndentWidth: 8
|
|
DerivePointerAlignment: false
|
|
DisableFormat: false
|
|
ExperimentalAutoDetectBinPacking: false
|
|
FixNamespaceComments: false
|
|
ForEachMacros:
|
|
- sc_array_foreach
|
|
- sc_list_foreach
|
|
- sc_list_foreach_safe
|
|
- sc_map_foreach
|
|
- sc_map_foreach_key
|
|
- sc_map_foreach_value
|
|
- sc_queue_foreach
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: '^("[.a-zA-Z0-9_-]+\.h")'
|
|
Priority: 1
|
|
|
|
# Local headers: "foo/bar.h"
|
|
- Regex: '^("[.a-zA-Z0-9_/-]+\.h")'
|
|
Priority: 2
|
|
|
|
# C Header: <foo.h>, <net/foo.h>, etc
|
|
- Regex: '^(<[.a-zA-Z0-9_/-]+\.h>)'
|
|
Priority: 3
|
|
|
|
IncludeIsMainRegex: '(Test)?$'
|
|
IndentPPDirectives: None
|
|
IndentGotoLabels: false
|
|
IndentCaseBlocks: false
|
|
IndentCaseLabels: false
|
|
IndentWidth: 8
|
|
IndentWrappedFunctionNames: false
|
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
|
MacroBlockBegin: ''
|
|
MacroBlockEnd: ''
|
|
MaxEmptyLinesToKeep: 1
|
|
NamespaceIndentation: None
|
|
|
|
PenaltyBreakAssignment: 10
|
|
PenaltyBreakBeforeFirstCallParameter: 30
|
|
PenaltyBreakComment: 10
|
|
PenaltyBreakFirstLessLess: 0
|
|
PenaltyBreakString: 10
|
|
PenaltyExcessCharacter: 100
|
|
PenaltyReturnTypeOnItsOwnLine: 60
|
|
|
|
PointerAlignment: Right
|
|
ReflowComments: true
|
|
SortIncludes: CaseSensitive
|
|
SortUsingDeclarations: true
|
|
SpaceAfterCStyleCast: true
|
|
SpaceAfterTemplateKeyword: true
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeParens: ControlStatements
|
|
SpaceInEmptyParentheses: false
|
|
SpacesBeforeTrailingComments: 1
|
|
SpacesInAngles: false
|
|
SpacesInContainerLiterals: false
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInParentheses: false
|
|
SpacesInSquareBrackets: false
|
|
Standard: Latest
|
|
TabWidth: 8
|
|
UseTab: Always
|
|
...
|
|
|