[PATCH] D100727: [clang-format] Correctly apply AllowShortIfStatementsOnASingleLine: Always to else branch.
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 18 12:10:29 PDT 2021
HazardyKnusperkeks added a comment.
How is
if (a) return;
else
return;
formatted with the different options?
And from the documentation I think it was intended that only `if` is short, never the `else`. So I think it behaves correctly, nevertheless I think it should be possible, but I don't know wether with new enumerators or a new option.
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