sled/.clang-format

77 lines
2.3 KiB
Plaintext
Raw Normal View History

2024-02-23 18:07:37 +08:00
# Generated from CLion C/C++ Code Style settings
BinPackParameters: false
2024-03-26 13:06:31 +08:00
BinPackArguments: false
2024-02-23 18:07:37 +08:00
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
2024-03-26 11:57:10 +08:00
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: Consecutive
2024-03-26 13:06:31 +08:00
AlignOperands: Align
2024-02-23 18:07:37 +08:00
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
2024-03-27 23:16:26 +08:00
AllowShortIfStatementsOnASingleLine: WithoutElse
2024-02-23 18:07:37 +08:00
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: Yes
# 函数和返回类型分两行,方便阅读
AlwaysBreakAfterReturnType: TopLevelDefinitions
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: true
2024-03-26 13:06:31 +08:00
AlwaysBreakBeforeMultilineStrings: true
2024-03-26 11:57:10 +08:00
BreakBeforeBinaryOperators: All
2024-02-23 18:07:37 +08:00
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
ConstructorInitializerAllOnOneLineOrOnePerLine: true
BreakInheritanceList: BeforeColon
2024-03-14 17:55:44 +08:00
ColumnLimit: 120
2024-02-23 18:07:37 +08:00
CompactNamespaces: false
ContinuationIndentWidth: 4
EmptyLineBeforeAccessModifier: LogicalBlock
SeparateDefinitionBlocks: Always
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
2024-03-27 23:16:26 +08:00
PenaltyIndentedWhitespace: 1
2024-02-23 18:07:37 +08:00
PointerAlignment: Right
ReflowComments: false
SortIncludes: CaseSensitive
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 0
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
TabWidth: 4
UseTab: Never