[flang-commits] [flang] Adding warning for Master as it is deprecated in 5.2 (PR #98955)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue Jul 16 07:25:31 PDT 2024


================
@@ -2758,4 +2758,12 @@ void OmpAttributeVisitor::AddOmpRequiresToScope(Scope &scope,
   } while (!scopeIter->IsGlobal());
 }
 
+void OmpAttributeVisitor::IssueNonConformanceWarning(
+    llvm::omp::Directive D, parser::CharBlock source) {
+  if (context_.ShouldWarn(common::UsageWarning::OpenMPUsage)) {
+    context_.Say(source,
+        "Usage of directive %s is non-confirming to OpenMP standard"_warn_en_US,
----------------
skatrak wrote:

```suggestion
        "Usage of directive '%s' is non-conforming to OpenMP standard"_warn_en_US,
```

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


More information about the flang-commits mailing list