[PATCH] D100727: [clang-format] Correctly apply AllowShortIfStatementsOnASingleLine: Always to else branch.

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


curdeius updated this revision to Diff 342170.
curdeius added a comment.
This revision is now accepted and ready to land.

- [clang-format] Apply AllowShortIfStatementsOnASingleLine: AllIfsAndElse to "else if" and "else". Keep backward-compatibility.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100727/new/

https://reviews.llvm.org/D100727

Files:
  clang/include/clang/Format/Format.h
  clang/lib/Format/Format.cpp
  clang/lib/Format/UnwrappedLineFormatter.cpp
  clang/unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100727.342170.patch
Type: text/x-patch
Size: 18278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210501/593dcb5b/attachment.bin>


More information about the cfe-commits mailing list