forked from qt-creator/qt-creator
Make the project managers tell the code model about include paths
... from the environment. Fixes: QTCREATORBUG-17985 Change-Id: I9b54e550121cfcc0684a6e173337d59d235c6107 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -275,9 +275,14 @@ FilePath Environment::searchInPath(const QString &executable,
|
||||
|
||||
FilePathList Environment::path() const
|
||||
{
|
||||
const QStringList pathComponents = value("PATH")
|
||||
return pathListValue("PATH");
|
||||
}
|
||||
|
||||
FilePathList Environment::pathListValue(const QString &varName) const
|
||||
{
|
||||
const QStringList pathComponents = value(varName)
|
||||
.split(OsSpecificAspects::pathListSeparator(m_osType), QString::SkipEmptyParts);
|
||||
return Utils::transform(pathComponents, &FilePath::fromUserInput);
|
||||
return transform(pathComponents, &FilePath::fromUserInput);
|
||||
}
|
||||
|
||||
void Environment::modifySystemEnvironment(const EnvironmentItems &list)
|
||||
|
||||
Reference in New Issue
Block a user