加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.clang-format 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
Alexander Gallego 提交于 2020-06-15 23:34 . tree-wide: clang-format-10
BasedOnStyle: Mozilla
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Attach
ColumnLimit: 80
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
# Seastar files (with angles)
- Regex: '^<seastar/'
Priority: 2
# Other libraries
- Regex: '^<.+/'
Priority: 4
# Std header files (with angles)
- Regex: '^<'
Priority: 5
# Internal headers (with quotes)
- Regex: '.h'
Priority: 1
IndentCaseLabels: false
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
PenaltyBreakAssignment: 80
PenaltyBreakBeforeFirstCallParameter: 10
PenaltyReturnTypeOnItsOwnLine: 60
---
Language: JavaScript
# Use 100 columns for JS.
ColumnLimit: 80
---
Language: Java
ColumnLimit: 80
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Attach
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化