This is an automated email from the ASF dual-hosted git repository. michaelsmith pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/impala.git
commit 80af98645baf095765c87cd2287cf49fec86fa4a Author: Peter Rozsa <[email protected]> AuthorDate: Wed Sep 27 08:51:29 2023 +0200 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 <[email protected]> Reviewed-by: Tamas Mate <[email protected]> Tested-by: Tamas Mate <[email protected]> --- .clang-format | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.clang-format b/.clang-format index 054cb3056..aad646bda 100644 --- a/.clang-format +++ b/.clang-format @@ -27,6 +27,8 @@ Language: Java BasedOnStyle: Chromium AllowShortCaseLabelsOnASingleLine: true AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: true +AllowShortBlocksOnASingleLine: true AlwaysBreakBeforeMultilineStrings: true BreakBeforeTernaryOperators: false ColumnLimit: 90
