forked from qt-creator/qt-creator
Clang: Refactor TokenInfos
Remove code duplication. Change-Id: Ib1859f2c3a04f66d0f0b669b4e93a7fc06ab8e61 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include "clangfixitoperation.h"
|
||||
#include "clangfixitoperationsextractor.h"
|
||||
#include "clangmodelmanagersupport.h"
|
||||
#include "clangtokeninfosreporter.h"
|
||||
#include "clanghighlightingresultreporter.h"
|
||||
#include "clangprojectsettings.h"
|
||||
#include "clangutils.h"
|
||||
|
||||
@@ -253,7 +253,7 @@ void ClangEditorDocumentProcessor::updateHighlighting(
|
||||
m_tokenInfos = tokenInfos;
|
||||
m_semanticHighlighter.setHighlightingRunner(
|
||||
[tokenInfos]() {
|
||||
auto *reporter = new TokenInfosReporter(tokenInfos);
|
||||
auto *reporter = new HighlightingResultReporter(tokenInfos);
|
||||
return reporter->start();
|
||||
});
|
||||
m_semanticHighlighter.run();
|
||||
|
||||
Reference in New Issue
Block a user