Skip to content

Commit 07455c1

Browse files
committed
[gp_stats_collector] Copy and apply clang-format from orca
1 parent 829ee53 commit 07455c1

23 files changed

Lines changed: 2583 additions & 1866 deletions
Lines changed: 187 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,187 @@
1-
BasedOnStyle: LLVM
2-
SortIncludes: false
1+
---
2+
Language: Cpp
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveMacros: false
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveBitFields: false
8+
AlignConsecutiveDeclarations: false
9+
AlignEscapedNewlines: Left
10+
AlignOperands: Align
11+
AlignTrailingComments: true
12+
AllowAllArgumentsOnNextLine: true
13+
AllowAllConstructorInitializersOnNextLine: true
14+
AllowAllParametersOfDeclarationOnNextLine: false
15+
AllowShortEnumsOnASingleLine: true
16+
AllowShortBlocksOnASingleLine: Never
17+
AllowShortCaseLabelsOnASingleLine: false
18+
AllowShortFunctionsOnASingleLine: None
19+
AllowShortLambdasOnASingleLine: All
20+
AllowShortIfStatementsOnASingleLine: Never
21+
AllowShortLoopsOnASingleLine: false
22+
AlwaysBreakAfterDefinitionReturnType: All
23+
AlwaysBreakAfterReturnType: AllDefinitions
24+
AlwaysBreakBeforeMultilineStrings: true
25+
AlwaysBreakTemplateDeclarations: Yes
26+
BinPackArguments: true
27+
BinPackParameters: true
28+
BraceWrapping:
29+
AfterCaseLabel: true
30+
AfterClass: true
31+
AfterControlStatement: Always
32+
AfterEnum: true
33+
AfterFunction: true
34+
AfterNamespace: true
35+
AfterObjCDeclaration: true
36+
AfterStruct: true
37+
AfterUnion: true
38+
AfterExternBlock: false
39+
BeforeCatch: true
40+
BeforeElse: true
41+
BeforeLambdaBody: false
42+
BeforeWhile: false
43+
IndentBraces: false
44+
SplitEmptyFunction: true
45+
SplitEmptyRecord: true
46+
SplitEmptyNamespace: true
47+
BreakBeforeBinaryOperators: None
48+
BreakBeforeBraces: Custom
49+
BreakBeforeInheritanceComma: false
50+
BreakInheritanceList: BeforeColon
51+
BreakBeforeTernaryOperators: true
52+
BreakConstructorInitializersBeforeComma: false
53+
BreakConstructorInitializers: BeforeColon
54+
BreakAfterJavaFieldAnnotations: false
55+
BreakStringLiterals: false
56+
ColumnLimit: 80
57+
CommentPragmas: '^ IWYU pragma:'
58+
CompactNamespaces: false
59+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
60+
ConstructorInitializerIndentWidth: 4
61+
ContinuationIndentWidth: 4
62+
Cpp11BracedListStyle: true
63+
DeriveLineEnding: true
64+
DerivePointerAlignment: false
65+
DisableFormat: false
66+
ExperimentalAutoDetectBinPacking: false
67+
FixNamespaceComments: true
68+
ForEachMacros:
69+
- foreach
70+
- Q_FOREACH
71+
- BOOST_FOREACH
72+
IncludeBlocks: Regroup
73+
IncludeCategories:
74+
- Regex: '^<ext/.*\.h>'
75+
Priority: 2
76+
SortPriority: 0
77+
- Regex: '^<.*\.h>'
78+
Priority: 1
79+
SortPriority: 0
80+
- Regex: '^<.*'
81+
Priority: 2
82+
SortPriority: 0
83+
- Regex: '"postgres\.h"'
84+
Priority: -1
85+
SortPriority: 0
86+
- Regex: '"gpos/.*'
87+
Priority: 3
88+
SortPriority: 0
89+
- Regex: '"(gpopt|naucrates|gpdbcost)/.*'
90+
Priority: 4
91+
SortPriority: 0
92+
IncludeIsMainRegex: '([-_](test|unittest))?$'
93+
IncludeIsMainSourceRegex: ''
94+
IndentCaseLabels: true
95+
IndentCaseBlocks: false
96+
IndentGotoLabels: true
97+
IndentPPDirectives: None
98+
IndentExternBlock: AfterExternBlock
99+
IndentWidth: 4
100+
IndentWrappedFunctionNames: false
101+
InsertTrailingCommas: None
102+
JavaScriptQuotes: Leave
103+
JavaScriptWrapImports: true
104+
KeepEmptyLinesAtTheStartOfBlocks: false
105+
MacroBlockBegin: ''
106+
MacroBlockEnd: ''
107+
MaxEmptyLinesToKeep: 3
108+
NamespaceIndentation: None
109+
ObjCBinPackProtocolList: Never
110+
ObjCBlockIndentWidth: 2
111+
ObjCBreakBeforeNestedBlockParam: true
112+
ObjCSpaceAfterProperty: false
113+
ObjCSpaceBeforeProtocolList: true
114+
PenaltyBreakAssignment: 2
115+
PenaltyBreakBeforeFirstCallParameter: 1
116+
PenaltyBreakComment: 300
117+
PenaltyBreakFirstLessLess: 120
118+
PenaltyBreakString: 1000
119+
PenaltyBreakTemplateDeclaration: 10
120+
PenaltyExcessCharacter: 1000000
121+
PenaltyReturnTypeOnItsOwnLine: 200
122+
PointerAlignment: Right
123+
RawStringFormats:
124+
- Language: Cpp
125+
Delimiters:
126+
- cc
127+
- CC
128+
- cpp
129+
- Cpp
130+
- CPP
131+
- 'c++'
132+
- 'C++'
133+
CanonicalDelimiter: ''
134+
BasedOnStyle: google
135+
- Language: TextProto
136+
Delimiters:
137+
- pb
138+
- PB
139+
- proto
140+
- PROTO
141+
EnclosingFunctions:
142+
- EqualsProto
143+
- EquivToProto
144+
- PARSE_PARTIAL_TEXT_PROTO
145+
- PARSE_TEST_PROTO
146+
- PARSE_TEXT_PROTO
147+
- ParseTextOrDie
148+
- ParseTextProtoOrDie
149+
- ParseTestProto
150+
- ParsePartialTestProto
151+
CanonicalDelimiter: ''
152+
BasedOnStyle: google
153+
ReflowComments: false
154+
SortIncludes: true
155+
SortUsingDeclarations: true
156+
SpaceAfterCStyleCast: true
157+
SpaceAfterLogicalNot: false
158+
SpaceAfterTemplateKeyword: true
159+
SpaceBeforeAssignmentOperators: true
160+
SpaceBeforeCpp11BracedList: false
161+
SpaceBeforeCtorInitializerColon: true
162+
SpaceBeforeInheritanceColon: true
163+
SpaceBeforeParens: ControlStatements
164+
SpaceBeforeRangeBasedForLoopColon: true
165+
SpaceInEmptyBlock: false
166+
SpaceInEmptyParentheses: false
167+
SpacesBeforeTrailingComments: 2
168+
SpacesInAngles: false
169+
SpacesInConditionalStatement: false
170+
SpacesInContainerLiterals: true
171+
SpacesInCStyleCastParentheses: false
172+
SpacesInParentheses: false
173+
SpacesInSquareBrackets: false
174+
SpaceBeforeSquareBrackets: false
175+
Standard: Auto
176+
StatementMacros:
177+
- Q_UNUSED
178+
- QT_REQUIRE_VERSION
179+
TabWidth: 4
180+
UseCRLF: false
181+
UseTab: Always
182+
WhitespaceSensitiveMacros:
183+
- STRINGIZE
184+
- PP_STRINGIZE
185+
- BOOST_PP_STRINGIZE
186+
...
187+

0 commit comments

Comments
 (0)