================
@@ -52,27 +52,41 @@ AST_MATCHER_P(Stmt, forEachPrevStmt,
ast_matchers::internal::Matcher<Stmt>,
}
return IsHostile;
}
+
+// Matches the expression awaited by the `co_await`.
+AST_MATCHER_P(CoawaitExpr, awaiatable, ast_matchers::internal::Matcher<Expr>,
+ InnerMatcher) {
+ return Node.getCommonExpr() &&
----------------
PiotrZSL wrote:
avoid calling getCommonExpr twice, just put it in if or something
https://github.com/llvm/llvm-project/pull/72954
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits