Skip to content

Commit

Permalink
Bump clang-format version to 11
Browse files Browse the repository at this point in the history
There were no code changes associated with this version bump.

Also, fix path intent file in fmt script.
  • Loading branch information
chrishajas committed May 7, 2021
1 parent 8a4d6e8 commit 1b33be6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
18 changes: 16 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
Expand All @@ -26,7 +28,7 @@ BinPackParameters: true
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
Expand All @@ -36,6 +38,8 @@ BraceWrapping:
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
Expand Down Expand Up @@ -88,10 +92,13 @@ IncludeCategories:
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainSourceRegex: ''
IndentCaseLabels: true
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
Expand All @@ -101,6 +108,7 @@ MaxEmptyLinesToKeep: 3
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
Expand Down Expand Up @@ -138,6 +146,8 @@ RawStringFormats:
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
- ParseTestProto
- ParsePartialTestProto
CanonicalDelimiter: ''
BasedOnStyle: google
ReflowComments: false
Expand Down Expand Up @@ -169,5 +179,9 @@ StatementMacros:
TabWidth: 4
UseCRLF: false
UseTab: Always
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
...

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project(gpopt LANGUAGES CXX C)
set(CMAKE_CXX_STANDARD 98)
set(GPORCA_VERSION_MAJOR 3)
set(GPORCA_VERSION_MINOR 116)
set(GPORCA_VERSION_PATCH 1)
set(GPORCA_VERSION_PATCH 2)
set(GPORCA_VERSION_STRING "${GPORCA_VERSION_MAJOR}.${GPORCA_VERSION_MINOR}.${GPORCA_VERSION_PATCH}")

# Whenever an ABI-breaking change is made to GPORCA, this should be incremented.
Expand Down
4 changes: 2 additions & 2 deletions concourse/check_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ image_resource:
type: registry-image
source:
repository: gcr.io/data-orca/clang-toolchain
tag: 0.1
tag: 0.2

inputs:
- name: orca_src
Expand All @@ -12,4 +12,4 @@ run:
path: scripts/fmt
args: [ chk ]
params:
CLANG_FORMAT: clang-format-10
CLANG_FORMAT: clang-format-11
2 changes: 1 addition & 1 deletion scripts/fmt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set -e -u -o pipefail
# against it.
if ((BASH_VERSINFO[0] < 4)); then false; fi

readonly INTENT=src/backend/gporca/clang-format.intent.yaml
readonly INTENT=clang-format.intent.yaml
: "${CLANG_FORMAT:=clang-format}"

gen() {
Expand Down

0 comments on commit 1b33be6

Please sign in to comment.