Prevent preleminary flushes to prevent order mess-ups.

The semantic highlighter relies on the highlight ranges to be subsequent
and non-overlapping. A method body in a class nested in a method can
result in flushes before the semantic info for the enclosing method is
calculated, resulting in overlapping ranges.

Task-number: QTCREATORBUG-3364
Reviewed-by: Roberto Raggi
This commit is contained in:
Erik Verbruggen
2011-01-19 14:14:19 +01:00
parent 79529551b2
commit f8db0ae7ce
2 changed files with 9 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ protected:
bool isTemplateClass(Symbol *s) const;
Scope *enclosingScope() const;
FunctionDefinitionAST *enclosingFunctionDefinition() const;
FunctionDefinitionAST *enclosingFunctionDefinition(bool skipTopOfStack = false) const;
TemplateDeclarationAST *enclosingTemplateDeclaration() const;
virtual bool preVisit(AST *);