[flang-commits] [flang] [llvm] [Flang][OpenMP][Sema] Adding parsing and semantic support for scan directive. (PR #102792)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Sun Oct 27 15:44:01 PDT 2024
================
@@ -1383,19 +1431,32 @@ void OmpStructureChecker::Leave(const parser::OpenMPAllocatorsConstruct &x) {
dirContext_.pop_back();
}
+void OmpStructureChecker::CheckScan(
+ const parser::OpenMPSimpleStandaloneConstruct &x) {
+ if (std::get<parser::OmpClauseList>(x.t).v.size() != 1) {
+ context_.Say(x.source,
+ "Exactly one of `exclusive` or `inclusive` clause is expected"_err_en_US);
----------------
kiranchandramohan wrote:
```suggestion
"Exactly one of EXCLUSIVE or INCLUSIVE clause is expected"_err_en_US);
```
https://github.com/llvm/llvm-project/pull/102792
More information about the flang-commits
mailing list