代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。