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

Change-Id: I274c5993c7be344fc4b7729d21a13da993f9f3aa
Reviewed-on: http://gerrit.cloudera.org:8080/3886
Reviewed-by: Jim Apple <[email protected]>
Tested-by: Internal Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/19a2dcfb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/19a2dcfb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/19a2dcfb

Branch: refs/heads/master
Commit: 19a2dcfbec14f3d1ada8aec833462b8a48915df1
Parents: f5541d6
Author: Jim Apple <[email protected]>
Authored: Wed Aug 10 10:48:30 2016 -0700
Committer: Internal Jenkins <[email protected]>
Committed: Thu Aug 25 21:17:08 2016 +0000

----------------------------------------------------------------------
 .clang-format | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/19a2dcfb/.clang-format
----------------------------------------------------------------------
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..6d31ebc
--- /dev/null
+++ b/.clang-format
@@ -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'
\ No newline at end of file

Reply via email to