summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpphighlightingsupport.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2012-02-20 12:39:08 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2012-02-20 14:21:22 +0100
commit6fe6f5cdb14422a7125c476a5e631385daf0a655 (patch)
tree5d56148965097f8a874a69ea9974e70b3c3a804a /src/plugins/cpptools/cpphighlightingsupport.cpp
parentd66acb51d0c8b511df9f679806cbd3d84cce41ef (diff)
downloadqt-creator-6fe6f5cdb14422a7125c476a5e631385daf0a655.tar.gz
C++: make highlighting/completion plugable.
Change-Id: I990fdf5411153041c6b4c62f31b453342d59de53 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/cpptools/cpphighlightingsupport.cpp')
-rw-r--r--src/plugins/cpptools/cpphighlightingsupport.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/plugins/cpptools/cpphighlightingsupport.cpp b/src/plugins/cpptools/cpphighlightingsupport.cpp
index 6326b62304..2ae4311613 100644
--- a/src/plugins/cpptools/cpphighlightingsupport.cpp
+++ b/src/plugins/cpptools/cpphighlightingsupport.cpp
@@ -30,23 +30,20 @@
**
**************************************************************************/
-#include "cppchecksymbols.h"
#include "cpphighlightingsupport.h"
-#include "cpptoolseditorsupport.h"
-#include <cplusplus/LookupContext.h>
-
-using namespace CPlusPlus;
using namespace CppTools;
-using namespace CppTools::Internal;
-CppHighlightingSupport::CppHighlightingSupport()
+CppHighlightingSupport::CppHighlightingSupport(TextEditor::ITextEditor *editor)
+ : m_editor(editor)
+{
+ Q_ASSERT(editor);
+}
+
+CppHighlightingSupport::~CppHighlightingSupport()
{
}
-QFuture<CppHighlightingSupport::Use> CppHighlightingSupport::highlightingFuture(
- const Document::Ptr &doc, const Snapshot &snapshot) const
+CppHighlightingSupportFactory::~CppHighlightingSupportFactory()
{
- LookupContext context(doc, snapshot);
- return CheckSymbols::go(doc, context);
}