summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanagerinterface.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-02-05 16:44:35 +0100
committerErik Verbruggen <erik.verbruggen@digia.com>2014-02-27 15:58:17 +0100
commit346e84d219448bb583dbc4ad71a2850db30e1cc8 (patch)
treed0090198a6aa61c33e6c05226916658a04cfc2bc /src/plugins/cpptools/cppmodelmanagerinterface.h
parent36dccb42faf256756d94b4ad797bfb40bb449f07 (diff)
downloadqt-creator-346e84d219448bb583dbc4ad71a2850db30e1cc8.tar.gz
C++: introduce a project config file field in the projectPart.
This field is used by the generic project manager which passes the ".config" file in it. The advantage is that both the SnapshotUpdater and the clang code model do not need to do anything smart, but can pass it directly to the preprocessor. Task-number: QTCREATORBUG-11390 Change-Id: I44fc7b20afd28fb59608412f2cce86af6f7e7d6b Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanagerinterface.h')
-rw-r--r--src/plugins/cpptools/cppmodelmanagerinterface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppmodelmanagerinterface.h b/src/plugins/cpptools/cppmodelmanagerinterface.h
index 188367c68a..5bd7be3cc2 100644
--- a/src/plugins/cpptools/cppmodelmanagerinterface.h
+++ b/src/plugins/cpptools/cppmodelmanagerinterface.h
@@ -106,6 +106,7 @@ public:
QString projectFile;
ProjectExplorer::Project *project;
QList<ProjectFile> files;
+ QString projectConfigFile; // currently only used by the Generic Project Manager
QByteArray projectDefines;
QByteArray toolchainDefines;
QStringList includePaths;
@@ -290,6 +291,9 @@ public slots:
virtual void updateModifiedSourceFiles() = 0;
virtual void GC() = 0;
+
+protected:
+ static QByteArray readProjectConfigFile(const ProjectPart::Ptr &part);
};
} // namespace CppTools