forked from qt-creator/qt-creator
Qt4Project: cpp code model add <configuration> and headers
This makes the data which we pass on to the codemodel similar again to
before 3aab8beaf4
Task-number: QTCREATORBUG-7198
Change-Id: I40a4812b27b69efd788abc85532efbdda1bef7d6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -1856,6 +1856,10 @@ void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
|
||||
newVarValues[DefinesVar] = m_readerExact->values(QLatin1String("DEFINES"));
|
||||
newVarValues[IncludePathVar] = includePaths(m_readerExact);
|
||||
newVarValues[CppFlagsVar] = m_readerExact->values("QMAKE_CXXFLAGS");
|
||||
newVarValues[CppHeaderVar] = m_readerExact->absoluteFileValues(QLatin1String("HEADERS"),
|
||||
m_projectDir,
|
||||
QStringList() << m_projectDir,
|
||||
0);
|
||||
newVarValues[CppSourceVar] = m_readerExact->absoluteFileValues(QLatin1String("SOURCES"),
|
||||
m_projectDir,
|
||||
QStringList() << m_projectDir,
|
||||
|
@@ -83,6 +83,7 @@ enum Qt4Variable {
|
||||
DefinesVar = 1,
|
||||
IncludePathVar,
|
||||
CppFlagsVar,
|
||||
CppHeaderVar,
|
||||
CppSourceVar,
|
||||
ObjCSourceVar,
|
||||
UiDirVar,
|
||||
|
@@ -543,6 +543,8 @@ void Qt4Project::updateCppCodeModel()
|
||||
part->flags = tc->compilerFlags(pro->variableValue(CppFlagsVar));
|
||||
|
||||
part->sourceFiles = pro->variableValue(CppSourceVar);
|
||||
part->sourceFiles += pro->variableValue(CppHeaderVar);
|
||||
part->sourceFiles.prepend(QLatin1String("<configuration>"));
|
||||
pinfo.appendProjectPart(part);
|
||||
|
||||
allFiles += part->sourceFiles;
|
||||
|
Reference in New Issue
Block a user