From 03fe61e31d77a9a9a26eeb5ff1281c780f4da307 Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Thu, 15 Oct 2009 11:39:22 +0200 Subject: [PATCH] Improved lookup of class bindings. Unmark the visited nodes when searching bindings in class or namespace scopes. --- src/libs/cplusplus/CppBindings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/cplusplus/CppBindings.cpp b/src/libs/cplusplus/CppBindings.cpp index e011c862359..1eb11b31273 100644 --- a/src/libs/cplusplus/CppBindings.cpp +++ b/src/libs/cplusplus/CppBindings.cpp @@ -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); -- GitLab