]> granicus.if.org Git - clang/commitdiff
[libclang] Index method references.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 18 Oct 2011 15:13:11 +0000 (15:13 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 18 Oct 2011 15:13:11 +0000 (15:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142353 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/IndexBody.cpp

index e02a4fa81a77f170bd48502311250925898c2a9d..b2ffb99267ef6054b1fbbbc9935d13a3929eae3a 100644 (file)
@@ -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