3 Star 0 Fork 1

mirrors_blacksphere/blackmagic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.clang-format 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
---
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignOperands: DontAlign
AllowAllArgumentsOnNextLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
# This is currently broken:
# https://github.com/llvm/llvm-project/issues/53442
#AlignArrayOfStructures: Left
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBraces: Linux
BreakBeforeTernaryOperators: false
BasedOnStyle: LLVM
BinPackArguments: true
BinPackParameters: true
ColumnLimit: 120
Cpp11BracedListStyle: true
IndentCaseLabels: false
IndentWidth: 4
ContinuationIndentWidth: 4
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: false
FixNamespaceComments: true
IfMacros: ['TRY', 'CATCH']
ForEachMacros: ['TRY_CATCH']
#QualifierAlignment: Custom
#QualifierOrder: ['inline', 'static', 'const', 'volatile', 'type']
SpaceAroundPointerQualifiers: After
SeparateDefinitionBlocks: Always
# Taken from git's rules
#PenaltyBreakAssignment: 10 # Unknown to clang-format-4.0
PenaltyBreakBeforeFirstCallParameter: 50
PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 10
PenaltyExcessCharacter: 100
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: false
SpacesBeforeTrailingComments: 1
SortIncludes: false
TabWidth: 4
UseTab: AlignWithSpaces
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_blacksphere/blackmagic.git
git@gitee.com:mirrors_blacksphere/blackmagic.git
mirrors_blacksphere
blackmagic
blackmagic
main

搜索帮助