forked from qt-creator/qt-creator
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:
@@ -189,7 +189,7 @@ ClangDiagnostic convertDiagnostic(const ClangdDiagnostic &src,
|
|||||||
line = match.captured(6).toInt(&ok);
|
line = match.captured(6).toInt(&ok);
|
||||||
column = 0;
|
column = 0;
|
||||||
}
|
}
|
||||||
FilePath auxFilePath = FilePath::fromUserInput(match.captured(1));
|
FilePath auxFilePath = mapper(FilePath::fromUserInput(match.captured(1)));
|
||||||
if (auxFilePath.isRelativePath() && auxFilePath.fileName() == filePath.fileName())
|
if (auxFilePath.isRelativePath() && auxFilePath.fileName() == filePath.fileName())
|
||||||
auxFilePath = filePath;
|
auxFilePath = filePath;
|
||||||
aux.location = {auxFilePath, line, column - 1};
|
aux.location = {auxFilePath, line, column - 1};
|
||||||
|
|||||||
Reference in New Issue
Block a user