diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-08 08:12:03 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-08 08:12:03 +0000 |
| commit | 84d0b3efee509e4c820096772981adeb6568978f (patch) | |
| tree | 7f24a3a2722c4f05eef7c831cca58f09281d18cc /clang/tools/libclang/CIndex.cpp | |
| parent | efbce587759f70ad651c98b93e9590751b0e3ce9 (diff) | |
| download | bcm5719-llvm-84d0b3efee509e4c820096772981adeb6568978f.tar.gz bcm5719-llvm-84d0b3efee509e4c820096772981adeb6568978f.zip | |
[OPENMP] Parsing and sema analysis for 'omp parallel sections' directive.
llvm-svn: 212516
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 93c36577bdf..5bfac518024 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -1861,6 +1861,7 @@ public: void VisitOMPSectionDirective(const OMPSectionDirective *D); void VisitOMPSingleDirective(const OMPSingleDirective *D); void VisitOMPParallelForDirective(const OMPParallelForDirective *D); + void VisitOMPParallelSectionsDirective(const OMPParallelSectionsDirective *D); private: void AddDeclarationNameInfo(const Stmt *S); @@ -2317,6 +2318,11 @@ EnqueueVisitor::VisitOMPParallelForDirective(const OMPParallelForDirective *D) { VisitOMPExecutableDirective(D); } +void EnqueueVisitor::VisitOMPParallelSectionsDirective( + const OMPParallelSectionsDirective *D) { + VisitOMPExecutableDirective(D); +} + void CursorVisitor::EnqueueWorkList(VisitorWorkList &WL, const Stmt *S) { EnqueueVisitor(WL, MakeCXCursor(S, StmtParent, TU,RegionOfInterest)).Visit(S); } @@ -4003,6 +4009,8 @@ CXString clang_getCursorKindSpelling(enum CXCursorKind Kind) { return cxstring::createRef("OMPSingleDirective"); case CXCursor_OMPParallelForDirective: return cxstring::createRef("OMPParallelForDirective"); + case CXCursor_OMPParallelSectionsDirective: + return cxstring::createRef("OMPParallelSectionsDirective"); } llvm_unreachable("Unhandled CXCursorKind"); |

