2 Star 1 Fork 1

mirrors_greenplum-db/gporca

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
clang-format.intent.yaml 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
Jesse Zhang 提交于 2021-01-26 16:13 . [Orca] sort includes
Language: Cpp
BasedOnStyle: Chromium
# Indentation
# There might be other settings we'd like to specify here, we'll see
TabWidth: 4
UseTab: Always
AccessModifierOffset: -4
IndentCaseLabels: true
IndentWidth: 4
# Interesting options we should keep an eye out in the next release:
# this is currently overridden by BS_Allman in version 11, but hope they'll
# change it
# IndentExternBlock: NoIndent
# We really want BS_Allman, but we want to unindent extern "C"
# Once LLVM 11 is released, see if IndentExternBlock: NoIndent works
# BreakBeforeBraces: Allman
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: true
BinPackParameters: true
BreakBeforeBinaryOperators: None
ConstructorInitializerAllOnOneLineOrOnePerLine: true
DerivePointerAlignment: false
MaxEmptyLinesToKeep: 3
PointerAlignment: Right
SpaceAfterCStyleCast: true
SpacesBeforeTrailingComments: 2
SortIncludes: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '"postgres\.h"'
Priority: -1
- Regex: '"gpos/.*'
Priority: 3
- Regex: '"(gpopt|naucrates|gpdbcost)/.*'
Priority: 4
# TODO: reflow comments
# when we get to it, should probably bite the bullet and add a bunch of no-lint
# comment around problematic areas
ReflowComments: false
# TODO: break literal strings, once we resolve Wstring-concatenation
BreakStringLiterals: false
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_greenplum-db/gporca.git
git@gitee.com:mirrors_greenplum-db/gporca.git
mirrors_greenplum-db
gporca
gporca
main

搜索帮助