[PATCH] D93688: [ASTMatchers] Ensure that we can match inside lambdas
Stephen Kelly via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 4 13:32:23 PST 2021
steveire marked an inline comment as done.
steveire added inline comments.
================
Comment at: clang/lib/ASTMatchers/ASTMatchFinder.cpp:526
+ TraverseStmt(LE->getTrailingRequiresClause());
+
+ TraverseStmt(LE->getBody());
----------------
aaron.ballman wrote:
> Do we also need to traverse attributes of the lambda?
At least RAV doesn't do so. It would be a new feature which is orthogonal to this MR/patch.
================
Comment at: clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp:3069
+
+ Code = R"cpp(
+void foo() {
----------------
aaron.ballman wrote:
> Do we have other test coverage for the rest of lambda matching, or should you add coverage for things like parameters, trailing requires clauses, etc?
Yep, there's other lambda-related tests higher up in this test function.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93688/new/
https://reviews.llvm.org/D93688
More information about the cfe-commits
mailing list