[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:20 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:
don't use implicit `std::string` to bool conversion
https://github.com/llvm/llvm-project/pull/68027
More information about the llvm-commits
mailing list