forked from qt-creator/qt-creator
CppEditor: Consider -include flags from the project again
The fallback for build systems without a dedicated property for this got
lost somehow in 9c3420120e
.
Fixes: QTCREATORBUG-27450
Change-Id: I70768220523693b9423a8256cef3d79f4d9dfd58
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -129,6 +129,11 @@ static ToolChain::MacroInspectionReport getToolchainMacros(
|
||||
return report;
|
||||
}
|
||||
|
||||
static QStringList getIncludedFiles(const RawProjectPart &rpp, const RawProjectPartFlags &flags)
|
||||
{
|
||||
return !rpp.includedFiles.isEmpty() ? rpp.includedFiles : flags.includedFiles;
|
||||
}
|
||||
|
||||
ProjectPart::ProjectPart(const Utils::FilePath &topLevelProject,
|
||||
const RawProjectPart &rpp,
|
||||
const QString &displayName,
|
||||
@@ -148,7 +153,7 @@ ProjectPart::ProjectPart(const Utils::FilePath &topLevelProject,
|
||||
languageExtensions(languageExtensions | flags.languageExtensions),
|
||||
qtVersion(rpp.qtVersion),
|
||||
files(files),
|
||||
includedFiles(rpp.includedFiles),
|
||||
includedFiles(getIncludedFiles(rpp, flags)),
|
||||
precompiledHeaders(rpp.precompiledHeaders),
|
||||
headerPaths(getHeaderPaths(rpp, flags, tcInfo)),
|
||||
projectMacros(getProjectMacros(rpp)),
|
||||
|
Reference in New Issue
Block a user