加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.clang-format 2.28 KB
一键复制 编辑 原始数据 按行查看 历史
#
Language: Cpp
#
SortIncludes: false
#
AccessModifierOffset: -4
#
DerivePointerAlignment: false
#
PointerAlignment: Right
#
ConstructorInitializerIndentWidth: 4
#
AlignEscapedNewlinesLeft: true
#
AlignTrailingComments: true
#
AllowShortBlocksOnASingleLine: false
#
AllowShortFunctionsOnASingleLine: false
#
AllowShortIfStatementsOnASingleLine: false
#
AllowShortCaseLabelsOnASingleLine: false
#
AllowShortLoopsOnASingleLine: false
#
AlwaysBreakTemplateDeclarations: true
#
BinPackArguments: true
#
AlwaysBreakBeforeMultilineStrings: false
#
BreakBeforeBinaryOperators: None
#
BreakBeforeTernaryOperators: false
#
BreakConstructorInitializersBeforeComma: false
#
BinPackParameters: true
#
ColumnLimit: 120
#
ConstructorInitializerAllOnOneLineOrOnePerLine: true
#
DerivePointerBinding: true
#
ExperimentalAutoDetectBinPacking: false
#
IndentCaseLabels: true
#
MaxEmptyLinesToKeep: 1
#
NamespaceIndentation: None
#
ObjCSpaceBeforeProtocolList: false
#
PenaltyBreakBeforeFirstCallParameter: 1
#
PenaltyBreakComment: 200
#
PenaltyBreakString: 1000
#
PenaltyBreakFirstLessLess: 120
#
PenaltyExcessCharacter: 1000000
#
AlwaysBreakAfterDefinitionReturnType: None
#
AlwaysBreakAfterReturnType: None
#
PointerBindsToType: true
#
Cpp11BracedListStyle: true
#
Standard: Auto
#
IndentWidth: 4
#
TabWidth: 4
#
UseTab: Never
#
BreakBeforeBraces: Custom
#
BraceWrapping:
#
AfterClass: false
#
AfterControlStatement: false
#
AfterEnum: false
#
AfterFunction: true
#
AfterNamespace: false
#
AfterObjCDeclaration: false
#
AfterStruct: false
#
AfterUnion: false
#
AfterExternBlock: false
#
BeforeCatch: false
#
BeforeElse: false
#
IndentBraces: false
#
SplitEmptyFunction: false
#
SplitEmptyRecord: false
#
SplitEmptyNamespace: false
#
IndentFunctionDeclarationAfterType: true
#
SpacesInParentheses: false
#
SpacesInAngles: false
#
SpaceInEmptyParentheses: false
#
SpacesInCStyleCastParentheses: false
#
SpaceAfterControlStatementKeyword: true
#
SpacesBeforeTrailingComments: 2
#
ContinuationIndentWidth: 4
#
CommentPragmas: '^lint'
#
MacroBlockBegin: "</Span>
^ *PROG *$| </span>
CATCH_ALL_ERROR.*$"
#
MacroBlockEnd: "</span>
^ *END_PROG *$|</span>
END_CATCH_ERROR$"
#
AlignAfterOpenBracket: DontAlign
#
AlignConsecutiveAssignments: false
#
AlignConsecutiveDeclarations: false
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化