[flang] [llvm] [Flang][OpenMP][Sema] Adding parsing and semantic support for scan directive. (PR #102792)

Sergio Afonso via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 03:38:43 PDT 2024


================
@@ -1591,6 +1593,19 @@ bool OmpAttributeVisitor::Pre(
   default:
     break;
   }
+  if (standaloneDir.v == llvm::omp::Directive::OMPD_scan) {
+    if ((std::get<parser::OmpClauseList>(x.t).v.size() != 1)) {
----------------
skatrak wrote:

```suggestion
    if (std::get<parser::OmpClauseList>(x.t).v.size() != 1) {
```

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


More information about the llvm-commits mailing list