summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CIndex.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-07-11 11:25:16 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-07-11 11:25:16 +0000
commit9c2e8ee72fe8c99a016a204a2f2b167cd17e188a (patch)
tree813773957814bc63d730a1a0476cb5fa60cf8d2f /clang/tools/libclang/CIndex.cpp
parent83442bb8b2e5284276d3eb5a97457401ed61d3f7 (diff)
downloadbcm5719-llvm-9c2e8ee72fe8c99a016a204a2f2b167cd17e188a.tar.gz
bcm5719-llvm-9c2e8ee72fe8c99a016a204a2f2b167cd17e188a.zip
[OPENMP] Parsing and sema analysis for 'omp task' directive.
llvm-svn: 212804
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
-rw-r--r--clang/tools/libclang/CIndex.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 5bfac518024..56d761f3a0f 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -1862,6 +1862,7 @@ public:
void VisitOMPSingleDirective(const OMPSingleDirective *D);
void VisitOMPParallelForDirective(const OMPParallelForDirective *D);
void VisitOMPParallelSectionsDirective(const OMPParallelSectionsDirective *D);
+ void VisitOMPTaskDirective(const OMPTaskDirective *D);
private:
void AddDeclarationNameInfo(const Stmt *S);
@@ -2323,6 +2324,10 @@ void EnqueueVisitor::VisitOMPParallelSectionsDirective(
VisitOMPExecutableDirective(D);
}
+void EnqueueVisitor::VisitOMPTaskDirective(const OMPTaskDirective *D) {
+ VisitOMPExecutableDirective(D);
+}
+
void CursorVisitor::EnqueueWorkList(VisitorWorkList &WL, const Stmt *S) {
EnqueueVisitor(WL, MakeCXCursor(S, StmtParent, TU,RegionOfInterest)).Visit(S);
}
@@ -4011,6 +4016,8 @@ CXString clang_getCursorKindSpelling(enum CXCursorKind Kind) {
return cxstring::createRef("OMPParallelForDirective");
case CXCursor_OMPParallelSectionsDirective:
return cxstring::createRef("OMPParallelSectionsDirective");
+ case CXCursor_OMPTaskDirective:
+ return cxstring::createRef("OMPTaskDirective");
}
llvm_unreachable("Unhandled CXCursorKind");
OpenPOWER on IntegriCloud