Add .clang-format for Impala's C++ style

Change-Id: I274c5993c7be344fc4b7729d21a13da993f9f3aa
Reviewed-on: http://gerrit.cloudera.org:8080/3886
Reviewed-by: Jim Apple <jbapple@cloudera.com>
Tested-by: Internal Jenkins
This commit is contained in:
Jim Apple
2016-08-10 10:48:30 -07:00
committed by Internal Jenkins
parent f5541d6040
commit 19a2dcfbec

13
.clang-format Normal file
View File

@@ -0,0 +1,13 @@
BasedOnStyle: Google
AlignAfterOpenBracket: 'false'
AlignOperands: 'false'
AllowShortFunctionsOnASingleLine: 'Inline'
AllowShortIfStatementsOnASingleLine: 'true'
BreakBeforeBinaryOperators: 'NonAssignment'
BreakBeforeTernaryOperators: 'false'
ColumnLimit: '90'
ConstructorInitializerIndentWidth: '2'
ContinuationIndentWidth: '4'
PenaltyBreakBeforeFirstCallParameter: '99999999'
SpacesBeforeTrailingComments: '1'
Standard: 'Cpp11'