[PATCH] D125137: [clang-format] Don't remove braces if a 1-statement body would wrap

Jeroen Van Antwerpen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 6 22:22:49 PDT 2022


Jeroen added a comment.

Will it also add braces if they where not there yet?



================
Comment at: clang/unittests/Format/FormatTest.cpp:25374
   verifyFormat("if (a) {\n"
                "  b = c >= 0 ? d\n"
                "             : e;\n"
----------------
Will it also add braces if they where not there yet?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125137



More information about the cfe-commits mailing list