================
@@ -81,8 +81,30 @@ class UseAfterMoveFinder {
llvm::SmallPtrSet<const CFGBlock *, 8> Visited;
};
+// Matches the expression awaited by the `co_await`.
+// TODO: Merge with the `awaitable` matcher in CoroutineHostileRAIICheck.
+AST_MATCHER_P(CoroutineSuspendExpr, suspendExpr,
+ ast_matchers::internal::Matcher<Expr>, InnerMatcher) {
+ if (const Expr *E = Node.getOperand())
+ return InnerMatcher.matches(*E, Finder, Builder);
+ return false;
+}
+
} // namespace
+// TODO: Merge with the corresponding function in CoroutineHostileRAIICheck.
+static auto typeWithNameIn(const std::vector<StringRef> &Names) {
----------------
higher-performance wrote:
Done.
https://github.com/llvm/llvm-project/pull/172566
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits