diff --git a/src/plugins/clangcodemodel/clangtextmark.cpp b/src/plugins/clangcodemodel/clangtextmark.cpp index 6b2ba2940aa..a38aeb62873 100644 --- a/src/plugins/clangcodemodel/clangtextmark.cpp +++ b/src/plugins/clangcodemodel/clangtextmark.cpp @@ -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};