Add a cache for the header/source mapping.

Now that we are iterating all the files in the project (instead of stopping at
the first success), we need a cache to make the switching fast enough on big
projects.

Change-Id: Ib7d63c93b3303c534ca53856d96333a822046ced
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
Nicolas Arnaud-Cormos
2012-01-08 16:00:32 +01:00
committed by Leandro Melo
parent ab8d39ace1
commit 4095b80793
2 changed files with 12 additions and 2 deletions

View File

@@ -44,6 +44,7 @@
#include <QtCore/QFutureInterface>
#include <QtCore/QPointer>
#include <QtCore/QFutureWatcher>
#include <QtCore/QHash>
QT_BEGIN_NAMESPACE
class QFileInfo;
@@ -97,6 +98,7 @@ private:
CppModelManager *m_modelManager;
QSharedPointer<CppFileSettings> m_fileSettings;
CppToolsSettings *m_settings;
mutable QHash<QString, QString> m_headerSourceMapping;
};
} // namespace Internal