forked from qt-creator/qt-creator
ClangTools: compare file names host os case sensitive
Change-Id: I31b889ca5e722bd565bde9b742e24da39151e8bc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -150,22 +150,17 @@ static FileInfo getFileInfo(const Utils::FilePath &file, ProjectExplorer::Projec
|
|||||||
QTC_ASSERT(projectFile.kind != CppTools::ProjectFile::Unsupported, continue);
|
QTC_ASSERT(projectFile.kind != CppTools::ProjectFile::Unsupported, continue);
|
||||||
if (projectFile.path == CppTools::CppModelManager::configurationFileName())
|
if (projectFile.path == CppTools::CppModelManager::configurationFileName())
|
||||||
continue;
|
continue;
|
||||||
if (file.toString() != projectFile.path)
|
const auto projectFilePath = Utils::FilePath::fromString(projectFile.path);
|
||||||
|
if (file != projectFilePath)
|
||||||
continue;
|
continue;
|
||||||
if (!projectFile.active)
|
if (!projectFile.active)
|
||||||
continue;
|
continue;
|
||||||
if (projectPart->buildTargetType != ProjectExplorer::BuildTargetType::Unknown) {
|
// found the best candidate, early return
|
||||||
// found the best candidate, early return
|
if (projectPart->buildTargetType != ProjectExplorer::BuildTargetType::Unknown)
|
||||||
return FileInfo(Utils::FilePath::fromString(projectFile.path),
|
return FileInfo(projectFilePath, projectFile.kind, projectPart);
|
||||||
projectFile.kind,
|
// found something but keep looking for better candidates
|
||||||
projectPart);
|
if (candidate.projectPart.isNull())
|
||||||
}
|
candidate = FileInfo(projectFilePath, projectFile.kind, projectPart);
|
||||||
if (candidate.projectPart.isNull()) {
|
|
||||||
// found at least something but keep looking for better candidates
|
|
||||||
candidate = FileInfo(Utils::FilePath::fromString(projectFile.path),
|
|
||||||
projectFile.kind,
|
|
||||||
projectPart);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user