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:
@@ -198,7 +198,7 @@ void CompilerOptionsBuilder::enableExceptions()
|
||||
|
||||
void CompilerOptionsBuilder::addHeaderPathOptions()
|
||||
{
|
||||
using ProjectExplorer::IncludePathType;
|
||||
using ProjectExplorer::HeaderPathType;
|
||||
|
||||
QStringList result;
|
||||
|
||||
@@ -212,15 +212,15 @@ void CompilerOptionsBuilder::addHeaderPathOptions()
|
||||
QString prefix;
|
||||
Utils::FileName path;
|
||||
switch (headerPath.type) {
|
||||
case IncludePathType::Framework:
|
||||
case HeaderPathType::Framework:
|
||||
prefix = QLatin1String("-F");
|
||||
break;
|
||||
case IncludePathType::System:
|
||||
case HeaderPathType::System:
|
||||
prefix = "-isystem";
|
||||
break;
|
||||
default: // This shouldn't happen, but let's be nice..:
|
||||
// intentional fall-through:
|
||||
case IncludePathType::User:
|
||||
case HeaderPathType::User:
|
||||
prefix = includeDirOptionForPath(headerPath.path);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user