[clang] [clang] Factor out OpenACC part of `Sema` (PR #84184)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 04:52:17 PST 2024


================
@@ -63,17 +67,17 @@ void Sema::ActOnOpenACCConstruct(OpenACCDirectiveKind K,
     // here as these constructs do not take any arguments.
     break;
   default:
-    Diag(StartLoc, diag::warn_acc_construct_unimplemented) << K;
+    SemaRef.Diag(StartLoc, diag::warn_acc_construct_unimplemented) << K;
----------------
cor3ntin wrote:

I think Diag and getASTContext should be accessible directly.

https://github.com/llvm/llvm-project/pull/84184


More information about the cfe-commits mailing list