From 214f0494a4f156374a313af72f52596b2b7ddd1e Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Tue, 20 May 2014 22:03:39 +0000 Subject: RAV reunification: merge Lambda body visitation to DRAV git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209246 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/libclang/IndexBody.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/libclang') diff --git a/tools/libclang/IndexBody.cpp b/tools/libclang/IndexBody.cpp index 1cb9e078f5..fbec3d7c01 100644 --- a/tools/libclang/IndexBody.cpp +++ b/tools/libclang/IndexBody.cpp @@ -149,13 +149,13 @@ public: return true; } - bool TraverseLambdaCapture(LambdaCapture C) { - if (C.capturesThis()) + bool TraverseLambdaCapture(LambdaExpr *LE, const LambdaCapture *C) { + if (C->capturesThis()) return true; - if (C.capturesVariable() && IndexCtx.shouldIndexFunctionLocalSymbols()) - IndexCtx.handleReference(C.getCapturedVar(), C.getLocation(), - Parent, ParentDC); + if (C->capturesVariable() && IndexCtx.shouldIndexFunctionLocalSymbols()) + IndexCtx.handleReference(C->getCapturedVar(), C->getLocation(), Parent, + ParentDC); // FIXME: Lambda init-captures. return true; -- cgit v1.2.3