1 Star 0 Fork 4.1K

Yifan Chen/mindquantum

forked from MindSpore/mindquantum 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.clang-format 2.46 KB
一键复制 编辑 原始数据 按行查看 历史
donghufeng 提交于 2021-10-20 11:08 . HiQ 5.0
BasedOnStyle: Google
AccessModifierOffset: -3
AlignConsecutiveMacros: true
AlignEscapedNewlines: Right
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterExternBlock: false
AfterFunction: false
AfterNamespace: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Custom
BreakBeforeConceptDeclarations: true
BreakBeforeInheritanceComma: true
BreakConstructorInitializers: BeforeComma
ColumnLimit: 120
CompactNamespaces: false
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '<(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tdmath|threads|time|uchar|wchar|wctype)\.h>'
Priority: 1
- Regex: '<[[:alnum:]_\.]+.h>'
Priority: 2
- Regex: '<[[:alnum:]_\.]+>'
Priority: 3
- Regex: '<[[:alnum:]_\.]+'
Priority: 4
- Regex: '[<"]tweedledum/([A-Za-z0-9.\/\-_])+[>"]'
Priority: 5
- Regex: '<(catch2|boost|eigen)\/'
Priority: 6
- Regex: '<symengine\/'
Priority: 7
- Regex: '[<"]cuda[A-Za-z0-9.\/\-_]+[>"]'
Priority: 8
- Regex: '[<"](driver_types.h)[>"]'
Priority: 8
- Regex: '"[[:alpha:]\/]*config\.hpp"'
Priority: 10
- Regex: '"([A-Za-z0-9.\/\-_])+"'
Priority: 20
IndentPPDirectives: AfterHash
IndentRequires: true
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: None
PenaltyBreakAssignment: 40
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
Standard: c++17
TabWidth: 4
UseTab: Never
WhitespaceSensitiveMacros: ['CLANG_DIAG_ON', 'CLANG_DIAG_OFF', 'GCC_DIAG_ON', 'GCC_DIAG_OFF', 'MSVC_DIAG_ON', 'MSVC_DIAG_OFF']
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Constwelve/mindquantum.git
git@gitee.com:Constwelve/mindquantum.git
Constwelve
mindquantum
mindquantum
master

搜索帮助