diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-23 11:47:39 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-26 14:07:35 +0100 |
commit | 271fb797cb77a39d59dc6930bd4dafea98a325bb (patch) | |
tree | a9a91ad373a7c130f3d0d132d1186ebe6173b05e /src/plugins/cpptools/builtinindexingsupport.h | |
parent | 65942d2d8d7bb5597c749c8653055cef96c54a7e (diff) |
Made symbol searching plug-able through indexing support.
The indexing support for the built-in code model is moved to its own
file. Symbol searching will now call for a searcher through that support
interface, which will create a fully configured and ready-to-go searcher
that can be started in the/a future.
Change-Id: Idc3ee1c7c789a69fa05ee1d42415313dcea94cf8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/builtinindexingsupport.h')
-rw-r--r-- | src/plugins/cpptools/builtinindexingsupport.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/plugins/cpptools/builtinindexingsupport.h b/src/plugins/cpptools/builtinindexingsupport.h new file mode 100644 index 0000000000..cb3f9d5022 --- /dev/null +++ b/src/plugins/cpptools/builtinindexingsupport.h @@ -0,0 +1,33 @@ +#ifndef BUILTININDEXINGSUPPORT_H +#define BUILTININDEXINGSUPPORT_H + +#include "cppindexingsupport.h" +#include "ModelManagerInterface.h" + +#include <QFutureSynchronizer> + +namespace CppTools { +namespace Internal { + +class BuiltinIndexingSupport: public CppIndexingSupport { +public: + typedef CPlusPlus::CppModelManagerInterface::WorkingCopy WorkingCopy; + +public: + BuiltinIndexingSupport(const char *m_pp_configuration_file); + ~BuiltinIndexingSupport(); + + virtual QFuture<void> refreshSourceFiles(const QStringList &sourceFiles); + virtual SymbolSearcher *createSymbolSearcher(SymbolSearcher::Parameters parameters, QSet<QString> fileNames); + +private: + const char *m_pp_configuration_file; + QFutureSynchronizer<void> m_synchronizer; + unsigned m_revision; + bool m_dumpFileNameWhileParsing; +}; + +} // namespace Internal +} // namespace CppTools + +#endif // BUILTININDEXINGSUPPORT_H |