diff options
author | Nicolas Arnaud-Cormos <nicolas@kdab.com> | 2012-01-08 16:00:32 +0100 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2012-01-11 11:47:54 +0100 |
commit | 4095b807938778b4a8f2f41785461fc6eff30111 (patch) | |
tree | 629bf6a451ae90b9106d021701ae1c964302da36 /src/plugins/cpptools/cpptoolsplugin.h | |
parent | ab8d39ace139881b1b6cd02c3d7b8e318ebc5e2c (diff) | |
download | qt-creator-4095b807938778b4a8f2f41785461fc6eff30111.tar.gz |
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>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.h')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h index cd0ef75b59..28088e6df5 100644 --- a/src/plugins/cpptools/cpptoolsplugin.h +++ b/src/plugins/cpptools/cpptoolsplugin.h @@ -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 |