[llvm] [DiagnosticInfo] Output full file path instead of relative path (PR #68027)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 08:50:57 PDT 2023
================
@@ -159,7 +159,10 @@ std::string DiagnosticInfoWithLocationBase::getLocationStr() const {
unsigned Column = 0;
if (isLocationAvailable())
getLocation(Filename, Line, Column);
- return (Filename + ":" + Twine(Line) + ":" + Twine(Column)).str();
+ return (getAbsolutePath()
----------------
CongzheUalberta wrote:
Thanks for the comment, I've updated it accordingly which remove the std::string to bool conversion, and used getAbsolutePath() always when the file location can be found.
https://github.com/llvm/llvm-project/pull/68027
More information about the llvm-commits
mailing list