From 346e84d219448bb583dbc4ad71a2850db30e1cc8 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 5 Feb 2014 16:44:35 +0100 Subject: 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 --- src/plugins/cpptools/cppmodelmanagerinterface.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/cpptools/cppmodelmanagerinterface.h') 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 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 -- cgit v1.2.1