forked from qt-creator/qt-creator
QbsProjectManager: Consider cpp.distributionIncludePaths
... and pass them to the code model. Fixes: QTCREATORBUG-24162 Change-Id: I4f33bba659fca957c56f2fcb4b8adce28533074b Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
This commit is contained in:
@@ -902,7 +902,8 @@ static RawProjectParts generateProjectParts(
|
|||||||
list.removeDuplicates();
|
list.removeDuplicates();
|
||||||
for (const QString &p : qAsConst(list))
|
for (const QString &p : qAsConst(list))
|
||||||
grpHeaderPaths += {FilePath::fromUserInput(p).toString(), HeaderPathType::User};
|
grpHeaderPaths += {FilePath::fromUserInput(p).toString(), HeaderPathType::User};
|
||||||
list = arrayToStringList(props.value("cpp.systemIncludePaths"));
|
list = arrayToStringList(props.value("cpp.distributionIncludePaths"))
|
||||||
|
+ arrayToStringList(props.value("cpp.systemIncludePaths"));
|
||||||
list.removeDuplicates();
|
list.removeDuplicates();
|
||||||
for (const QString &p : qAsConst(list))
|
for (const QString &p : qAsConst(list))
|
||||||
grpHeaderPaths += {FilePath::fromUserInput(p).toString(), HeaderPathType::System};
|
grpHeaderPaths += {FilePath::fromUserInput(p).toString(), HeaderPathType::System};
|
||||||
|
@@ -381,6 +381,7 @@ void QbsSession::insertRequestedModuleProperties(QJsonObject &request)
|
|||||||
"cpp.cxxLanguageVersion",
|
"cpp.cxxLanguageVersion",
|
||||||
"cpp.cxxStandardLibrary",
|
"cpp.cxxStandardLibrary",
|
||||||
"cpp.defines",
|
"cpp.defines",
|
||||||
|
"cpp.distributionIncludePaths",
|
||||||
"cpp.driverFlags",
|
"cpp.driverFlags",
|
||||||
"cpp.enableExceptions",
|
"cpp.enableExceptions",
|
||||||
"cpp.enableRtti",
|
"cpp.enableRtti",
|
||||||
|
Reference in New Issue
Block a user