preprocessing and then deducing source location

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