7 Star 16 Fork 4

simdsoft/yasio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.clang-format 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
halx99 提交于 2022-12-15 10:19 . Rolling back code format
---
BasedOnStyle: LLVM
# Allow double brackets such as std::vector<std::vector<int>>.
Standard: Cpp11
SortIncludes: false
# Keep lines under 160 columns long.
ColumnLimit: 160
# Always break before braces
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
# Keeps extern "C" blocks unindented.
AfterExternBlock: false
# Indent case labels.
IndentCaseLabels: true
# Right-align pointers and references
PointerAlignment: Left
# ANGLE likes to align things as much as possible.
AlignOperands: true
AlignConsecutiveAssignments: true
# Use 2 space negative offset for access modifiers
AccessModifierOffset: -2
# TODO(jmadill): Decide if we want this on. Doesn't have an "all or none" mode.
AllowShortCaseLabelsOnASingleLine: false
# Useful for spacing out functions in classes
KeepEmptyLinesAtTheStartOfBlocks: true
# Indent nested PP directives.
IndentPPDirectives: AfterHash
AlwaysBreakTemplateDeclarations: Yes
AlignEscapedNewlines: Left
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/simdsoft/yasio.git
git@gitee.com:simdsoft/yasio.git
simdsoft
yasio
yasio
dev

搜索帮助