[PATCH] D150614: [clang-format] Ignore first token when finding MustBreak

Emilia Kond via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 16 12:56:40 PDT 2023


rymiel added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:20136
                "#ifdef _DEBUG\n"
-               "void bar()\n"
-               "  {\n"
-               "  }\n"
+               "void bar() {}\n"
                "#else\n"
----------------
HazardyKnusperkeks wrote:
> This doesn't seem right.
WhitesmithsBraceStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty; is set above


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150614



More information about the cfe-commits mailing list