加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.clang-format 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
---
Language: Cpp
BasedOnStyle: LLVM
AlwaysBreakTemplateDeclarations: Yes # Changed from Multiline
BinPackArguments: false # Changed from true
BinPackParameters: false # Changed from true
BreakInheritanceList: AfterColon # Changed from BeforeColon
BreakConstructorInitializers: AfterColon # Changed from BeforeColon
ConstructorInitializerAllOnOneLineOrOnePerLine: true # Changed from false
SortIncludes: false # Changed from true - TRY to make it true, might not work
SortUsingDeclarations: false # Changed from true - TRY to make it true, might not work
PointerAlignment: Left # Changed from Right
BreakBeforeBraces: Mozilla # Changed to break after class/struct/function/..., but not after statement (if/while/for)
PenaltyReturnTypeOnItsOwnLine: 1000 # Changed from 60 to avoid break after return type
AllowAllArgumentsOnNextLine: false # Changed to avoid all call arguments on next line
AllowAllParametersOfDeclarationOnNextLine: false # Changed to avoid all function parameters on next line
#Standard: c++14 # This should validate the input to c++14 standard, but it is not supported in clang-9. For future use.
...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化