[cfe-dev] preprocessing and then deducing source location

harsh gupta harshgupta1992 at hotmail.com
Fri Jul 1 06:54:57 PDT 2011

I am trying to infer some information about the location of a declaration in the source file. If i dont provide paths to the system headers, the source locations provided via the SourceLocation class are correct.

However if i provide the paths to the system headers, then the line numbers that are provided seem to be of the preprocessed file. Is it possible to get the SourceLocation of declarations in the original file even after providing the system include paths ? If so how?

Harsh Gupta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110701/78f67041/attachment.html>

More information about the cfe-dev mailing list