Commit e510c80c authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Provide whether a sub project is selected for building

Analyzers can use this to rule out irrelevant (sub) projects.

Change-Id: I5a9eb66f06156f0619dc639f6f4080a8fc761ee6
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent 3438cd32
......@@ -49,6 +49,7 @@ ProjectPart::ProjectPart()
, languageExtensions(NoExtensions)
, qtVersion(UnknownQt)
, warningFlags(ProjectExplorer::ToolChain::WarningsDefault)
, selectedForBuilding(true)
{
}
......
......@@ -129,6 +129,7 @@ public: // fields
LanguageExtensions languageExtensions;
QtVersion qtVersion;
ProjectExplorer::ToolChain::WarningFlags warningFlags;
bool selectedForBuilding;
};
inline uint qHash(const ProjectPart::HeaderPath &key, uint seed = 0)
......
......@@ -510,6 +510,7 @@ void QmakeProject::updateCppCodeModel()
templatePart->project = this;
templatePart->displayName = pro->displayName();
templatePart->projectFile = pro->path();
templatePart->selectedForBuilding = pro->includedInExactParse();
if (pro->variableValue(ConfigVar).contains(QLatin1String("qt")))
templatePart->qtVersion = qtVersionForPart;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment