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/10/02 08:25:00 UTC
[jira] [Closed] (IMPALA-12469) Allow short if statements on a single line in clang-format
[ https://issues.apache.org/jira/browse/IMPALA-12469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Rozsa closed IMPALA-12469.
--------------------------------
Resolution: Fixed
> Allow short if 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
> Priority: Trivial
> 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)