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:
Peter Rozsa
2023-09-27 08:51:29 +02:00
committed by Tamas Mate
parent 782cda4499
commit 80af98645b

View File

@@ -27,6 +27,8 @@ Language: Java
BasedOnStyle: Chromium
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AlwaysBreakBeforeMultilineStrings: true
BreakBeforeTernaryOperators: false
ColumnLimit: 90