forked from qt-creator/qt-creator
ProjectExplorer: Rename IncludePathType to HeaderPathType
It is the type used by the HeaderPath class, so reflect that in the name. I also considered to rename HeaderPath to IncludePath, but that name is reflected in a lot of users, which would also need to be adjusted for consistency. That would blow up the patch size for little value IMHO. Change-Id: I51421dbd3ab8b2874dc32fc82dc394c9b93ce5e9 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -96,7 +96,7 @@ void RawProjectPart::setIncludePaths(const QStringList &includePaths)
|
||||
headerPaths.clear();
|
||||
|
||||
foreach (const QString &includeFile, includePaths) {
|
||||
ProjectExplorer::HeaderPath hp(includeFile, ProjectExplorer::IncludePathType::User);
|
||||
ProjectExplorer::HeaderPath hp(includeFile, ProjectExplorer::HeaderPathType::User);
|
||||
|
||||
// The simple project managers are utterly ignorant of frameworks on macOS, and won't report
|
||||
// framework paths. The work-around is to check if the include path ends in ".framework",
|
||||
@@ -104,7 +104,7 @@ void RawProjectPart::setIncludePaths(const QStringList &includePaths)
|
||||
if (includeFile.endsWith(QLatin1String(".framework"))) {
|
||||
const int slashIdx = includeFile.lastIndexOf(QLatin1Char('/'));
|
||||
if (slashIdx != -1) {
|
||||
hp = {includeFile.left(slashIdx), ProjectExplorer::IncludePathType::Framework};
|
||||
hp = {includeFile.left(slashIdx), ProjectExplorer::HeaderPathType::Framework};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user