You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Peter Rozsa (Jira)" <ji...@apache.org> on 2023/09/27 06:48:00 UTC

[jira] [Created] (IMPALA-12469) Allow short statements on a single line in clang-format

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)