Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
aceeea96
Commit
aceeea96
authored
Oct 28, 2009
by
Roberto Raggi
Browse files
Mark the bindings when searching for class or namespaces.
parent
fc2175b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/CppBindings.cpp
View file @
aceeea96
...
...
@@ -404,6 +404,11 @@ Binding *ClassBinding::findClassOrNamespaceBinding(Identifier *id, QSet<Binding
if
(
id
->
isEqualTo
(
identifier
()))
return
this
;
if
(
processed
->
contains
(
this
))
return
0
;
processed
->
insert
(
this
);
foreach
(
ClassBinding
*
nestedClassBinding
,
children
)
{
if
(
id
->
isEqualTo
(
nestedClassBinding
->
identifier
()))
return
nestedClassBinding
;
...
...
@@ -412,6 +417,7 @@ Binding *ClassBinding::findClassOrNamespaceBinding(Identifier *id, QSet<Binding
foreach
(
ClassBinding
*
baseClassBinding
,
baseClassBindings
)
{
if
(
!
baseClassBinding
)
continue
;
else
if
(
Binding
*
b
=
baseClassBinding
->
findClassOrNamespaceBinding
(
id
,
processed
))
return
b
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment