aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexBody.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-18 15:13:11 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-18 15:13:11 +0000
commit9fbbf14af5582db9f2add3f66bf3da05fe8994a6 (patch)
tree22bc9fdea0bdef9bd770088ab05f9cbaa9af2290 /tools/libclang/IndexBody.cpp
parent474202f657239f4169f8ff8db844e19558daa637 (diff)
[libclang] Index method references.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/IndexBody.cpp')
-rw-r--r--tools/libclang/IndexBody.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/libclang/IndexBody.cpp b/tools/libclang/IndexBody.cpp
index e02a4fa81a..b2ffb99267 100644
--- a/tools/libclang/IndexBody.cpp
+++ b/tools/libclang/IndexBody.cpp
@@ -63,6 +63,12 @@ public:
IndexCtx.handleReference(D, E->getLocation(), 0, ParentDC, E);
return true;
}
+
+ bool VisitObjCMessageExpr(ObjCMessageExpr *E) {
+ if (ObjCMethodDecl *MD = E->getMethodDecl())
+ IndexCtx.handleReference(MD, E->getSelectorStartLoc(), 0, ParentDC, E);
+ return true;
+ }
};
} // anonymous namespace