加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.clang-format 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
asherikov 提交于 2020-12-13 20:03 . clang-format
{
"BasedOnStyle": "Google",
"AccessModifierOffset": -4,
"ConstructorInitializerIndentWidth": 2,
"AlignAfterOpenBracket": "AlwaysBreak",
"AlignEscapedNewlinesLeft": false,
"AlignTrailingComments": true,
"AllowAllParametersOfDeclarationOnNextLine": false,
"AllowShortIfStatementsOnASingleLine": false,
"AllowShortLoopsOnASingleLine": false,
"AllowShortFunctionsOnASingleLine": "None",
"AllowShortLoopsOnASingleLine": false,
"AlwaysBreakTemplateDeclarations": true,
"AlwaysBreakBeforeMultilineStrings": false,
"BreakBeforeBinaryOperators": "NonAssignment",
"BreakBeforeTernaryOperators": false,
"BreakConstructorInitializersBeforeComma": true,
"BreakStringLiterals": false,
"BinPackParameters": false,
"BinPackArguments": false,
"ColumnLimit": 120,
"ConstructorInitializerAllOnOneLineOrOnePerLine": true,
"DerivePointerBinding": true,
"ExperimentalAutoDetectBinPacking": false,
"IndentCaseLabels": true,
"MaxEmptyLinesToKeep": 3,
"NamespaceIndentation": "All",
"ObjCSpaceBeforeProtocolList": true,
"PenaltyBreakBeforeFirstCallParameter": 19,
"PenaltyBreakComment": 60,
"PenaltyBreakString": 1,
"PenaltyBreakFirstLessLess": 1000,
"PenaltyExcessCharacter": 500,
"PenaltyReturnTypeOnItsOwnLine": 1000,
"PointerBindsToType": false,
"SpacesBeforeTrailingComments": 2,
"Cpp11BracedListStyle": false,
"Standard": "Auto",
"IndentWidth": 4,
"TabWidth": 4,
"UseTab": "Never",
"BreakBeforeBraces": "Allman",
"IndentFunctionDeclarationAfterType": false,
"SpacesInParentheses": false,
"SpacesInAngles": false,
"SpaceInEmptyParentheses": false,
"SpacesInCStyleCastParentheses": false,
"SpaceAfterControlStatementKeyword": true,
"SpaceBeforeAssignmentOperators": true,
"ContinuationIndentWidth": 8,
"SortIncludes": false,
"IndentPPDirectives": "AfterHash",
"DerivePointerAlignment": false,
"PointerAlignment": "Right",
"FixNamespaceComments": true,
"IndentWrappedFunctionNames": true,
"Standard": "Cpp03",
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化