summaryrefslogtreecommitdiff
path: root/include/clang/Basic/DiagnosticSemaKinds.td
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-06-24 04:39:47 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-06-24 04:39:47 +0000
commitb5db1b77d8fa80c507665d4c5c3217b0e972d3ed (patch)
treee500ef9e4f132893325d8f81c0bb62fb7dc331f9 /include/clang/Basic/DiagnosticSemaKinds.td
parentee28b09421d031c938fe1526bcbbabdf0bf96c59 (diff)
downloadclang-b5db1b77d8fa80c507665d4c5c3217b0e972d3ed.tar.gz
clang-b5db1b77d8fa80c507665d4c5c3217b0e972d3ed.tar.bz2
clang-b5db1b77d8fa80c507665d4c5c3217b0e972d3ed.tar.xz
[OPENMP] Added initial checking of nesting of OpenMP regions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticSemaKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 035a7377e1..98745ca9b8 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -7096,6 +7096,11 @@ def err_omp_reduction_in_task : Error<
"reduction variables may not be accessed in an explicit task">;
def err_omp_reduction_id_not_compatible : Error<
"variable of type %0 is not valid for specified reduction operation">;
+def err_omp_prohibited_region : Error<
+ "region cannot be%select{| closely}0 nested inside '%1' region"
+ "%select{|; perhaps you forget to enclose 'omp %3' directive into a parallel region?}2">;
+def err_omp_prohibited_region_simd : Error<
+ "OpenMP constructs may not be nested inside a simd region">;
} // end of OpenMP category
let CategoryName = "Related Result Type Issue" in {