[cfe-dev] Clang SourceLocation full file path

Himanshu via cfe-dev cfe-dev at lists.llvm.org
Sat Oct 8 06:35:14 PDT 2016


Hi All,

I have been using SourceLocation::printToString(SourceManager) to get the
string containing the full-path of a source location in Clang.

However, the API is suddenly behaving inconsistently: when ran with some
files it prints their absolute path:line:col, for others it only prints the
filename (basename):line:col.

Could someone please let me know how to make sure that I always get the
absolute path?

Thanks,
--
Himanshu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161008/c612d6ed/attachment.html>


More information about the cfe-dev mailing list