C++: Rename semanticRehighlight to recalculateSemanticInfoDetached

semanticRehighlight() does a bit more than only rehighlighting and we
want to trigger (only) rehighlighting in a follow-up change.

Change-Id: Ic8da9ec8643f0f82f7c99ef9a8180b2868194254
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Nikolai Kosjar
2015-06-19 14:37:26 +02:00
parent 7e08cca311
commit 5e035bd740
8 changed files with 10 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ public:
// Function interface to implement
virtual void run() = 0;
virtual void semanticRehighlight(bool force) = 0;
virtual void recalculateSemanticInfoDetached(bool force) = 0;
virtual CppTools::SemanticInfo recalculateSemanticInfo() = 0;
virtual CPlusPlus::Snapshot snapshot() = 0;
virtual BaseEditorDocumentParser *parser() = 0;

View File

@@ -176,7 +176,7 @@ CPlusPlus::Snapshot BuiltinEditorDocumentProcessor::snapshot()
return m_parser.snapshot();
}
void BuiltinEditorDocumentProcessor::semanticRehighlight(bool force)
void BuiltinEditorDocumentProcessor::recalculateSemanticInfoDetached(bool force)
{
const auto source = createSemanticInfoSource(force);
m_semanticInfoUpdater.updateDetached(source);

View File

@@ -51,7 +51,7 @@ public:
// BaseEditorDocumentProcessor interface
void run() override;
void semanticRehighlight(bool force) override;
void recalculateSemanticInfoDetached(bool force) override;
CppTools::SemanticInfo recalculateSemanticInfo() override;
BaseEditorDocumentParser *parser() override;
CPlusPlus::Snapshot snapshot() override;