================ @@ -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() && + InnerMatcher.matches(*Node.getCommonExpr(), Finder, Builder); +} + +auto typeWithNameIn(const std::vector<StringRef> &Names) { + return hasType( + hasCanonicalType(hasDeclaration(namedDecl(hasAnyName(Names))))); ---------------- PiotrZSL wrote:
But thats also fine. https://github.com/llvm/llvm-project/pull/72954 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits