[cfe-dev] Retrieving SourceLocation's in LibTool

Andrew Gozillon via cfe-dev cfe-dev at lists.llvm.org
Tue Jan 9 10:49:35 PST 2018


Hi,


I was wondering if there was an easy way to retrieve the source information for Type's and Decl's from inside a Clang LibTool? I'm aware that some Type's and Decl's contain the relevant source information, although that doesn't appear to be the case for everything. I am also aware that you can use VisitTypeLoc to parse specific type locations.


However, I was wondering if there is an easier way to do this. For example passing a Type or Decl to a function (when visiting its node) to retrieve the relevant source location attached to it?


Thank you for your time.


Best Regards,

Andrew Gozillon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180109/c178a356/attachment.html>


More information about the cfe-dev mailing list