From 4095b807938778b4a8f2f41785461fc6eff30111 Mon Sep 17 00:00:00 2001 From: Nicolas Arnaud-Cormos Date: Sun, 8 Jan 2012 16:00:32 +0100 Subject: 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 --- src/plugins/cpptools/cpptoolsplugin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/cpptools/cpptoolsplugin.h') 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 #include #include +#include QT_BEGIN_NAMESPACE class QFileInfo; @@ -97,6 +98,7 @@ private: CppModelManager *m_modelManager; QSharedPointer m_fileSettings; CppToolsSettings *m_settings; + mutable QHash m_headerSourceMapping; }; } // namespace Internal -- cgit v1.2.1