[cfe-commits] r142353 - /cfe/trunk/tools/libclang/IndexBody.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Tue Oct 18 08:13:12 PDT 2011
Author: akirtzidis
Date: Tue Oct 18 10:13:11 2011
New Revision: 142353
URL: http://llvm.org/viewvc/llvm-project?rev=142353&view=rev
Log:
[libclang] Index method references.
Modified:
cfe/trunk/tools/libclang/IndexBody.cpp
Modified: cfe/trunk/tools/libclang/IndexBody.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/IndexBody.cpp?rev=142353&r1=142352&r2=142353&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/IndexBody.cpp (original)
+++ cfe/trunk/tools/libclang/IndexBody.cpp Tue Oct 18 10:13:11 2011
@@ -63,6 +63,12 @@
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
More information about the cfe-commits
mailing list