<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Stefan,<div><br><div><div>On 10.1.2011, at 5.36, Stefan Seefeld wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>How can I translate a cursor into a file location ? I see how to <br>generate a CXSourceLocation, but that is an opaque type. What function <br>should I use to query the (filename, linenum, column) triplet ?</div></blockquote><br></div><div>I've been using clang_getInstantiationLocation, as documented here: <a href="http://clang.llvm.org/doxygen/group__CINDEX__LOCATIONS.html#ga112e657eb04c281ca12c6975d489b633">http://clang.llvm.org/doxygen/group__CINDEX__LOCATIONS.html#ga112e657eb04c281ca12c6975d489b633</a></div></div><div><br></div><div>- Nikita</div><div><br></div></body></html>