[flang-commits] [flang] [Flang][OpenMP] Add some semantic checks for Linear clause (PR #111354)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Mon Oct 7 09:35:24 PDT 2024
================
@@ -303,6 +303,30 @@ void OmpStructureChecker::CheckMultListItems() {
CheckMultipleOccurrence(
listVars, nontempNameList, itr->second->source, "NONTEMPORAL");
}
+
+ // Linear clause
+ auto linearClauses{FindClauses(llvm::omp::Clause::OMPC_linear)};
+ for (auto itr = linearClauses.first; itr != linearClauses.second; ++itr) {
----------------
kiranchandramohan wrote:
```suggestion
for (auto itr{linearClauses.first}; itr != linearClauses.second; ++itr) {
```
https://github.com/llvm/llvm-project/pull/111354
More information about the flang-commits
mailing list