[cfe-commits] r137796 - in /cfe/trunk: test/Index/get-cursor-macro-args.h test/Index/get-cursor-macro-args.m tools/libclang/CIndex.cpp

Chandler Carruth chandlerc at google.com
Tue Aug 16 17:53:23 PDT 2011


On Tue, Aug 16, 2011 at 5:31 PM, Argyrios Kyrtzidis <akyrtzi at gmail.com>wrote:

> [libclang] Make clang_getCursor able to handle locations that point inside
> macro arguments.
>
> e.g. for:
>
> \define INVOKE(METHOD, CLASS) [CLASS METHOD]
>
> void test2() {
>  INVOKE(meth, MyClass);
> }
>
> Pointing at 'meth' will give a CXCursor_ObjCMessageExpr and pointing at
> 'MyClass'
> will give a CXCursor_ObjCClassRef.
>

This is awesome. =D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110816/95ff79a4/attachment.html>


More information about the cfe-commits mailing list