[PATCH] D100727: [clang-format] Add options to AllowShortIfStatementsOnASingleLine to apply to "else if" and "else".

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat May 1 13:17:43 PDT 2021


curdeius added a comment.

I went a different way in order to keep backward compatibility.
I renamed Alwayss to OnlyFirstIf  and added AllIfsAndElse that behaves as Always in my initial patch.
@MyDeveloperDay, please have another look.

Names of the options can certainly be improved, but I'm currently short on ideas. Any help is welcome.


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