diff options
Diffstat (limited to 'clang/tools/libclang')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 3 | ||||
| -rw-r--r-- | clang/tools/libclang/RecursiveASTVisitor.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 765c9000121..cb85123ed74 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -1936,6 +1936,9 @@ void OMPClauseEnqueue::VisitOMPDefaultClause(const OMPDefaultClause *C) { } void OMPClauseEnqueue::VisitOMPPrivateClause(const OMPPrivateClause *C) { PROCESS_OMP_CLAUSE_LIST(OMPPrivateClause, C) } +void OMPClauseEnqueue::VisitOMPSharedClause(const OMPSharedClause *C) { + PROCESS_OMP_CLAUSE_LIST(OMPSharedClause, C) +} #undef PROCESS_OMP_CLAUSE_LIST } void EnqueueVisitor::EnqueueChildren(const OMPClause *S) { diff --git a/clang/tools/libclang/RecursiveASTVisitor.h b/clang/tools/libclang/RecursiveASTVisitor.h index 701de899913..4d2b3a98409 100644 --- a/clang/tools/libclang/RecursiveASTVisitor.h +++ b/clang/tools/libclang/RecursiveASTVisitor.h @@ -2337,6 +2337,12 @@ bool RecursiveASTVisitor<Derived>::VisitOMPPrivateClause(OMPPrivateClause *C) { return true; } +template<typename Derived> +bool RecursiveASTVisitor<Derived>::VisitOMPSharedClause(OMPSharedClause *C) { + PROCESS_OMP_CLAUSE_LIST(OMPSharedClause, C) + return true; +} + #undef PROCESS_OMP_CLAUSE_LIST // FIXME: look at the following tricky-seeming exprs to see if we |

