[flang-commits] [clang] [llvm] [clang-tools-extra] [flang] [lld] [mlir] [clangtidy] Allow safe suspensions in coroutine-hostile-raii check (PR #72954)
Piotr Zegar via flang-commits
flang-commits at lists.llvm.org
Tue Nov 21 05:56:45 PST 2023
================
@@ -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
More information about the flang-commits
mailing list