[cfe-dev] CXCursor API questions
Nikita Zhuk
nikita at zhuk.fi
Sun Jan 9 22:01:50 PST 2011
Hi Stefan,
On 10.1.2011, at 5.36, Stefan Seefeld wrote:
> How can I translate a cursor into a file location ? I see how to
> generate a CXSourceLocation, but that is an opaque type. What function
> should I use to query the (filename, linenum, column) triplet ?
I've been using clang_getInstantiationLocation, as documented here: http://clang.llvm.org/doxygen/group__CINDEX__LOCATIONS.html#ga112e657eb04c281ca12c6975d489b633
- Nikita
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110110/ac70eb7a/attachment.html>
More information about the cfe-dev
mailing list