<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sat, Oct 8, 2016 at 3:35 PM Himanshu via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi All, <div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I have been using SourceLocation::printToString(SourceManager) to get the string containing the full-path of a source location in Clang. </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">However, the API is suddenly</div></div></blockquote><div><br></div><div>What do you mean by suddenly? Did you see a change in behavior recently?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"> behaving inconsistently: when ran with some files it prints their absolute path:line:col, for others it only prints the filename (basename):line:col. </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Could someone please let me know how to make sure that I always get the absolute path? </div></div></blockquote><div><br></div><div>Are those paths valid relative paths at your current working directory?</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thanks,  <br class="gmail_msg"><div class="gmail_msg"><div class="m_5466065474608748791gmail_signature gmail_msg">--<div class="gmail_msg">Himanshu</div></div></div><br></div></div><br>_______________________________________________<br class="gmail_msg"><br>cfe-dev mailing list<br class="gmail_msg"><br><a href="mailto:cfe-dev@lists.llvm.org" class="gmail_msg" target="_blank">cfe-dev@lists.llvm.org</a><br class="gmail_msg"><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="gmail_msg"><br></blockquote></div></div>