Clangd: Convert paths in diagnostic messages

Change-Id: I28844c803b9d71be3a7bb760ef89542265fb352b
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marcus Tillmanns
2023-02-09 08:21:09 +01:00
parent 1523f49e5c
commit 4e34f1781e

View File

@@ -189,7 +189,7 @@ ClangDiagnostic convertDiagnostic(const ClangdDiagnostic &src,
line = match.captured(6).toInt(&ok);
column = 0;
}
FilePath auxFilePath = FilePath::fromUserInput(match.captured(1));
FilePath auxFilePath = mapper(FilePath::fromUserInput(match.captured(1)));
if (auxFilePath.isRelativePath() && auxFilePath.fileName() == filePath.fileName())
auxFilePath = filePath;
aux.location = {auxFilePath, line, column - 1};