mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-12469: Allow short if statements on a single line in clang-format
This change allows short if statements and blocks to be put on a single line, clang-format will keep these constructions as-is. Change-Id: I65d04f00187648fafab89c82cb01ffd9ea17c4bb Reviewed-on: http://gerrit.cloudera.org:8080/20513 Reviewed-by: Daniel Becker <daniel.becker@cloudera.com> Reviewed-by: Tamas Mate <tmater@apache.org> Tested-by: Tamas Mate <tmater@apache.org>
This commit is contained in:
@@ -27,6 +27,8 @@ Language: Java
|
||||
BasedOnStyle: Chromium
|
||||
AllowShortCaseLabelsOnASingleLine: true
|
||||
AllowShortFunctionsOnASingleLine: All
|
||||
AllowShortIfStatementsOnASingleLine: true
|
||||
AllowShortBlocksOnASingleLine: true
|
||||
AlwaysBreakBeforeMultilineStrings: true
|
||||
BreakBeforeTernaryOperators: false
|
||||
ColumnLimit: 90
|
||||
|
||||
Reference in New Issue
Block a user