================
@@ -107,19 +107,21 @@ void MissingStdForwardCheck::registerMatchers(MatchFinder
*Finder) {
auto CapturedInLambda = hasDeclContext(cxxRecordDecl(
isLambda(),
- hasParent(lambdaExpr(forCallable(equalsBoundNode("func")),
- anyOf(CapturedInCaptureList, CapturedInBody)))));
+ hasAncestor(lambdaExpr(forCallable(equalsBoundNode("func")),
+ anyOf(CapturedInCaptureList, CapturedInBody)))));
----------------
HerrCai0907 wrote:
In my option, we should track lambda level by level instead of directly finding
the most outside lambda expr.
https://github.com/llvm/llvm-project/pull/178651
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits