ABataev added inline comments.

================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:6167-6183
+      if (isOpenMPWorksharingDirective(ParentDirective) ||
+          ParentDirective == OMPD_loop) {
+        Diag(StartLoc, diag::err_omp_prohibited_region)
+            << true << getOpenMPDirectiveName(ParentDirective) << 1
+            << getOpenMPDirectiveName(Kind);
+      }
       Kind = OMPD_for;
----------------
Can you move these checks to checkNestingOfRegions() function?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158266/new/

https://reviews.llvm.org/D158266

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to