OSDN Git Service
(root)
/
qt-creator-jp
/
qt-creator-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c17c75
)
Improved lookup of class bindings.
author
Roberto Raggi
<roberto.raggi@nokia.com>
Thu, 15 Oct 2009 09:39:22 +0000
(11:39 +0200)
committer
Roberto Raggi
<roberto.raggi@nokia.com>
Thu, 15 Oct 2009 09:39:22 +0000
(11:39 +0200)
Unmark the visited nodes when searching bindings in class or namespace scopes.
src/libs/cplusplus/CppBindings.cpp
patch
|
blob
|
history
diff --git
a/src/libs/cplusplus/CppBindings.cpp
b/src/libs/cplusplus/CppBindings.cpp
index
e011c86
..
1eb11b3
100644
(file)
--- 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);