From 8bd31e69a441bb7178134de57bc60c22be8e0f3c Mon Sep 17 00:00:00 2001 From: Alexander Musman Date: Tue, 27 May 2014 15:12:19 +0000 Subject: Parsing/Sema for OMPCollapseClause. Actual usage in Sema for collapsing loops will in some future patch. llvm-svn: 209660 --- clang/tools/libclang/CIndex.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/tools/libclang/CIndex.cpp') diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 5710d66890d..bc1174ae3c3 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -1935,6 +1935,10 @@ void OMPClauseEnqueue::VisitOMPSafelenClause(const OMPSafelenClause *C) { Visitor->AddStmt(C->getSafelen()); } +void OMPClauseEnqueue::VisitOMPCollapseClause(const OMPCollapseClause *C) { + Visitor->AddStmt(C->getNumForLoops()); +} + void OMPClauseEnqueue::VisitOMPDefaultClause(const OMPDefaultClause *C) { } void OMPClauseEnqueue::VisitOMPProcBindClause(const OMPProcBindClause *C) { } -- cgit v1.2.3