[PATCH] D116806: [clang-format] Ensure we can correctly parse lambda in the template argument list

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 7 07:12:50 PST 2022


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

LGTM.



================
Comment at: clang/unittests/Format/FormatTest.cpp:23171
+  verifyFormat("struct Z : X<decltype([] { return 0; }){}> {};", Style);
+  verifyFormat("template <auto> struct X {};", Style);
+}
----------------
Is this line necessary? It doesn't seem to test anything new, no?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116806



More information about the cfe-commits mailing list