This revision was automatically updated to reflect the committed changes.
Closed by commit rG5c2e7c9ca043: [clang-format] Ensure we can correctly parse
lambda in the template argument… (authored by MyDeveloperDay).
Changed prior to commit:
https://reviews.llvm.org/D116806?vs=398124=398521#toc
HazardyKnusperkeks added inline comments.
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2872-2874
+ if (FormatTok->is(tok::l_square))
+if (!tryToParseLambda())
+ break;
Fewer ifs and lines.
Repository:
rG LLVM Github Monorepo
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 {};", Style);
+ verifyFormat("template struct X {};", Style);
+}
MyDeveloperDay created this revision.
MyDeveloperDay added reviewers: HazardyKnusperkeks, curdeius, JohelEGP.
MyDeveloperDay added projects: clang, clang-format.
MyDeveloperDay requested review of this revision.
https://github.com/llvm/llvm-project/issues/46505
The presence of a lambda in an