[PATCH] D127260: [clang-format] Remove braces of else blocks that embody an if block

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 7 23:17:22 PDT 2022


curdeius added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:25570-25575
+               "  else {\n"
+               "    if (d) {\n"
+               "      e;\n"
+               "      f;\n"
+               "    }\n"
+               "  }\n"
----------------
Why isn't this block changed like this?
I might be missing something...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127260



More information about the cfe-commits mailing list