[PATCH] D95573: [ASTMatchers] Avoid pathological traversal over nested lambdas
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 28 04:09:02 PST 2021
alexfh added a comment.
Thanks for the prompt fix, btw!
================
Comment at: clang/include/clang/AST/RecursiveASTVisitor.h:2064
+ if (const auto *MD = dyn_cast<CXXMethodDecl>(D)) {
+ if (const auto *RD = MD->getParent()) {
+ if (RD->isLambda()) {
----------------
Please specify the type explicitly here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95573/new/
https://reviews.llvm.org/D95573
More information about the cfe-commits
mailing list