<div dir="ltr">Hi Manuel, <div><br></div><div>Yes I noticed the change recently. I can't pinpoint a date, but I believe it was after the llvm update as I was using 3.8 release prior to that and it returned the absolute paths. </div><div><br></div><div>Yes the returned paths are valid paths, but they seem to be relative to the TU file under analysis.   </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<div>Himanshu</div></div></div>
<br><div class="gmail_quote">On Tue, Oct 11, 2016 at 4:43 AM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span class=""><div dir="ltr">On Sat, Oct 8, 2016 at 3:35 PM Himanshu via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">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">Hi All, <div><br></div><div>I have been using SourceLocation::printToString(<wbr>SourceManager) to get the string containing the full-path of a source location in Clang. </div><div><br></div><div>However, the API is suddenly</div></div></blockquote><div><br></div></span><div>What do you mean by suddenly? Did you see a change in behavior recently?</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> 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><br></div><div>Could someone please let me know how to make sure that I always get the absolute path? </div></div></blockquote><div><br></div></span><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"><div><br></div><div>Thanks,  <span class="HOEnZb"><font color="#888888"><br><div><div>--<div>Himanshu</div></div></div><br></font></span></div></div><span class="HOEnZb"><font color="#888888"><br>______________________________<wbr>_________________<br><br>cfe-dev mailing list<br><br><a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br><br></font></span></blockquote></div></div>
</blockquote></div><br></div>