summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-20 22:03:39 +0000
committerAlp Toker <alp@nuanti.com>2014-05-20 22:03:39 +0000
commit214f0494a4f156374a313af72f52596b2b7ddd1e (patch)
treeebe0c62e59c7ef3ac164c3c5e5edfaebbd4e19d6 /tools
parente4b04d2677b9260a7e80d304b8a31e577894ae96 (diff)
downloadclang-214f0494a4f156374a313af72f52596b2b7ddd1e.tar.gz
clang-214f0494a4f156374a313af72f52596b2b7ddd1e.tar.bz2
clang-214f0494a4f156374a313af72f52596b2b7ddd1e.tar.xz
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
Diffstat (limited to 'tools')
-rw-r--r--tools/libclang/IndexBody.cpp10
1 files changed, 5 insertions, 5 deletions
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;