Peter Rozsa created IMPALA-12469:
------------------------------------

             Summary: Allow short statements on a single line in clang-format
                 Key: IMPALA-12469
                 URL: https://issues.apache.org/jira/browse/IMPALA-12469
             Project: IMPALA
          Issue Type: Improvement
          Components: Infrastructure
    Affects Versions: Impala 4.2.0
            Reporter: Peter Rozsa
            Assignee: Peter Rozsa
             Fix For: Impala 4.3.0


Impala's Java codebase uses a lot of oneliner if statements like:
{code:java}
if (ifExists_) { sb.append("IF EXISTS "); } {code}
The .clang-format file does not reflect this, the following rules are missing:
{code:java}
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to