forked from qt-creator/qt-creator
C++ editor: Better control to stop the semantic highlighter
Done-by: Roberto Raggi Reviewed-by: Leandro Melo Reviewed-by: mae
This commit is contained in:
@@ -2182,6 +2182,7 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
|
||||
const QByteArray preprocessedCode = snapshot.preprocessedCode(source.code, source.fileName);
|
||||
|
||||
doc = snapshot.documentFromSource(preprocessedCode, source.fileName);
|
||||
doc->control()->setTopLevelDeclarationProcessor(this);
|
||||
doc->check();
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user