1 Star 0 Fork 1.4K

xwh/communication_dsoftbus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.clang-format 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
waibozie 提交于 2022-12-05 21:52 . tools: clang-format rule update
# Run command below to format a file
# clang-format -i --style=file <file>
# complete clang-format rule, reference:
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# WebKit format rule details, reference:
# https://webkit.org/code-style-guidelines/
# https://gitee.com/mirrors/WebKit/blob/main/.clang-format
BasedOnStyle: Webkit
# works on C and C++ files
Language: Cpp
PointerAlignment: Right
AlignTrailingComments: true
AlignConsecutiveMacros: Consecutive
# case statements indent one layer
IndentCaseLabels: true
BreakBeforeBinaryOperators: None
SpaceBeforeParens: ControlStatementsExceptControlMacros
SpacesInCStyleCastParentheses: false
AlignEscapedNewlines: Left
NamespaceIndentation: None
FixNamespaceComments: true
BreakConstructorInitializers: AfterColon
AlignArrayOfStructures: Left
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
AlwaysBreakTemplateDeclarations: true
BreakBeforeTernaryOperators: false
SpaceAroundPointerQualifiers: Both
# iterator macros declaretion,avoid being treated as function call
ForEachMacros:
- 'LIST_FOR_EACH_ENTRY'
- 'LIST_FOR_EACH_ENTRY_SAFE'
- 'LIST_FOR_EACH'
- 'LIST_FOR_EACH_SAFE'
SortIncludes: CaseInsensitive
AllowShortEnumsOnASingleLine: false
ColumnLimit: 120
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xie_wenhao/communication_dsoftbus.git
git@gitee.com:xie_wenhao/communication_dsoftbus.git
xie_wenhao
communication_dsoftbus
communication_dsoftbus
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385