forked from qt-creator/qt-creator
CppTools: Take "-include" files into account
Fixes: QTCREATORBUG-20602 Change-Id: Ibfc518fc64ed75f93265db800558ec1d2e424bb4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Christian Kandeler
parent
c05ad9a951
commit
888ea6bbbb
@@ -36,7 +36,8 @@
|
||||
namespace ProjectExplorer {
|
||||
|
||||
RawProjectPartFlags::RawProjectPartFlags(const ToolChain *toolChain,
|
||||
const QStringList &commandLineFlags)
|
||||
const QStringList &commandLineFlags,
|
||||
const QString &includeFileBaseDir)
|
||||
{
|
||||
// Keep the following cheap/non-blocking for the ui thread. Expensive
|
||||
// operations are encapsulated in ToolChainInfo as "runners".
|
||||
@@ -44,6 +45,7 @@ RawProjectPartFlags::RawProjectPartFlags(const ToolChain *toolChain,
|
||||
if (toolChain) {
|
||||
warningFlags = toolChain->warningFlags(commandLineFlags);
|
||||
languageExtensions = toolChain->languageExtensions(commandLineFlags);
|
||||
includedFiles = toolChain->includedFiles(commandLineFlags, includeFileBaseDir);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,6 +132,11 @@ void RawProjectPart::setPreCompiledHeaders(const QStringList &preCompiledHeaders
|
||||
this->precompiledHeaders = preCompiledHeaders;
|
||||
}
|
||||
|
||||
void RawProjectPart::setIncludedFiles(const QStringList &files)
|
||||
{
|
||||
includedFiles = files;
|
||||
}
|
||||
|
||||
void RawProjectPart::setSelectedForBuilding(bool yesno)
|
||||
{
|
||||
this->selectedForBuilding = yesno;
|
||||
|
||||
Reference in New Issue
Block a user