[llvm] [DiagnosticInfo] Output full file path instead of relative path (PR #68027)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 14:14:21 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()
----------------
aeubanks wrote:

can we just always use `getAbsolutePath()`? or else we'll get inconsistent behavior

https://github.com/llvm/llvm-project/pull/68027


More information about the llvm-commits mailing list