[PATCH] D141811: [clang-format] Allow trailing return types in macros

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 19 03:09:06 PDT 2023


owenpan accepted this revision.
owenpan added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:7989-7990
 
+  verifyFormat("#define MAKE_DEF(NAME)                                         "
+               "                \\\n"
+               "  auto NAME() -> int { return 42; }");
----------------
I'd reduce `ColumnLimit` to 60 for example to get rid of the string concatenation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141811



More information about the cfe-commits mailing list