diff options
Diffstat (limited to 'src/plugins/cpptools/cpphighlightingsupport.cpp')
-rw-r--r-- | src/plugins/cpptools/cpphighlightingsupport.cpp | 19 |
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); } |