diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-22 06:45:04 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-22 06:45:04 +0000 |
| commit | 9fb6e647e71678341e7a344051df439a1020aaf4 (patch) | |
| tree | 917e4011ebedc52ff63737e7ee4f6e779e7861f6 /clang/tools/libclang/CIndex.cpp | |
| parent | 8b5126027406918e5b1f6ff4be2e98d231bb7704 (diff) | |
| download | bcm5719-llvm-9fb6e647e71678341e7a344051df439a1020aaf4.tar.gz bcm5719-llvm-9fb6e647e71678341e7a344051df439a1020aaf4.zip | |
[OPENMP] Initial parsing and sema analysis for 'ordered' directive.
llvm-svn: 213616
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index fc8703aface..8e9a7bd9330 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -1871,6 +1871,7 @@ public: void VisitOMPBarrierDirective(const OMPBarrierDirective *D); void VisitOMPTaskwaitDirective(const OMPTaskwaitDirective *D); void VisitOMPFlushDirective(const OMPFlushDirective *D); + void VisitOMPOrderedDirective(const OMPOrderedDirective *D); private: void AddDeclarationNameInfo(const Stmt *S); @@ -2373,6 +2374,10 @@ void EnqueueVisitor::VisitOMPFlushDirective(const OMPFlushDirective *D) { VisitOMPExecutableDirective(D); } +void EnqueueVisitor::VisitOMPOrderedDirective(const OMPOrderedDirective *D) { + VisitOMPExecutableDirective(D); +} + void CursorVisitor::EnqueueWorkList(VisitorWorkList &WL, const Stmt *S) { EnqueueVisitor(WL, MakeCXCursor(S, StmtParent, TU,RegionOfInterest)).Visit(S); } @@ -4075,6 +4080,8 @@ CXString clang_getCursorKindSpelling(enum CXCursorKind Kind) { return cxstring::createRef("OMPTaskwaitDirective"); case CXCursor_OMPFlushDirective: return cxstring::createRef("OMPFlushDirective"); + case CXCursor_OMPOrderedDirective: + return cxstring::createRef("OMPOrderedDirective"); } llvm_unreachable("Unhandled CXCursorKind"); |

