summaryrefslogtreecommitdiff
path: root/lib/Basic/OpenMPKinds.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-06-27 10:37:06 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-06-27 10:37:06 +0000
commit3b54d86f4f0bedfffb6305b6f12283f9c62682db (patch)
tree04730260ddc52d65d4452d6e651786058fd92015 /lib/Basic/OpenMPKinds.cpp
parent11a33cee19725d88b474912665c72835db03a87f (diff)
downloadclang-3b54d86f4f0bedfffb6305b6f12283f9c62682db.tar.gz
clang-3b54d86f4f0bedfffb6305b6f12283f9c62682db.tar.bz2
clang-3b54d86f4f0bedfffb6305b6f12283f9c62682db.tar.xz
[OPENMP] Parsing and sema analysis for 'copyprivate' clause.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/OpenMPKinds.cpp')
-rw-r--r--lib/Basic/OpenMPKinds.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Basic/OpenMPKinds.cpp b/lib/Basic/OpenMPKinds.cpp
index 623af2df60..07121215e7 100644
--- a/lib/Basic/OpenMPKinds.cpp
+++ b/lib/Basic/OpenMPKinds.cpp
@@ -95,6 +95,7 @@ unsigned clang::getOpenMPSimpleClauseType(OpenMPClauseKind Kind,
case OMPC_linear:
case OMPC_aligned:
case OMPC_copyin:
+ case OMPC_copyprivate:
case OMPC_ordered:
case OMPC_nowait:
break;
@@ -149,6 +150,7 @@ const char *clang::getOpenMPSimpleClauseTypeName(OpenMPClauseKind Kind,
case OMPC_linear:
case OMPC_aligned:
case OMPC_copyin:
+ case OMPC_copyprivate:
case OMPC_ordered:
case OMPC_nowait:
break;
@@ -193,7 +195,7 @@ bool clang::isAllowedClauseForDirective(OpenMPDirectiveKind DKind,
break;
case OMPD_sections:
switch (CKind) {
-#define OPENMP_SECTIONS_CLAUSE(Name) \
+#define OPENMP_SECTIONS_CLAUSE(Name) \
case OMPC_##Name: \
return true;
#include "clang/Basic/OpenMPKinds.def"
@@ -203,7 +205,7 @@ bool clang::isAllowedClauseForDirective(OpenMPDirectiveKind DKind,
break;
case OMPD_single:
switch (CKind) {
-#define OPENMP_SINGLE_CLAUSE(Name) \
+#define OPENMP_SINGLE_CLAUSE(Name) \
case OMPC_##Name: \
return true;
#include "clang/Basic/OpenMPKinds.def"