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:
Leandro Melo
2011-02-04 16:26:10 +01:00
parent 3c8ff2bee4
commit cb9cc8dca6
5 changed files with 34 additions and 1 deletions

View File

@@ -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