forked from qt-creator/qt-creator
		
	Improved lookup of class bindings.
Unmark the visited nodes when searching bindings in class or namespace scopes.
This commit is contained in:
		| @@ -676,6 +676,8 @@ ClassBinding *Binder::findClassBinding(Name *name) | ||||
|     if (classBinding) { | ||||
|         if (ClassBinding *k = classBinding->findClassBinding(name, &processed)) | ||||
|             return k; | ||||
|  | ||||
|         processed.clear(); | ||||
|     } | ||||
|  | ||||
|     if (namespaceBinding) | ||||
| @@ -718,8 +720,6 @@ bool Binder::visit(UsingNamespaceDirective *u) | ||||
|  | ||||
| bool Binder::visit(Class *classSymbol) | ||||
| { | ||||
|     Overview oo; | ||||
|  | ||||
|     ClassBinding *binding = findOrCreateClassBinding(classSymbol); | ||||
|     ClassBinding *previousClassBinding = switchClassBinding(binding); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user