[PATCH] D100727: [clang-format] Correctly apply AllowShortIfStatementsOnASingleLine: Always to else branch.
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 18 14:18:01 PDT 2021
curdeius added a comment.
In D100727#2697419 <https://reviews.llvm.org/D100727#2697419>, @HazardyKnusperkeks wrote:
> How is
>
> if (a) return;
> else
> return;
>
> formatted with the different options?
Do you have something specific in mind?
> And from the documentation I think it was intended that only `if` is short, never the `else`.
There's already an option WithoutElse that should do exactly this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100727/new/
https://reviews.llvm.org/D100727
More information about the cfe-commits
mailing list