From 6fe6f5cdb14422a7125c476a5e631385daf0a655 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Mon, 20 Feb 2012 12:39:08 +0100 Subject: C++: make highlighting/completion plugable. Change-Id: I990fdf5411153041c6b4c62f31b453342d59de53 Reviewed-by: Eike Ziller --- src/plugins/cpptools/cpphighlightingsupport.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/plugins/cpptools/cpphighlightingsupport.cpp') 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 - -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::highlightingFuture( - const Document::Ptr &doc, const Snapshot &snapshot) const +CppHighlightingSupportFactory::~CppHighlightingSupportFactory() { - LookupContext context(doc, snapshot); - return CheckSymbols::go(doc, context); } -- cgit v1.2.1