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
3ae43daa
Commit
3ae43daa
authored
Jun 10, 2009
by
Roberto Raggi
Browse files
Expand the anonymous namespace and not the enclosing namespace.
parent
c25644a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/LookupContext.cpp
View file @
3ae43daa
...
...
@@ -367,7 +367,7 @@ void LookupContext::expandNamespace(Namespace *ns,
Symbol
*
symbol
=
ns
->
memberAt
(
i
);
if
(
Namespace
*
otherNs
=
symbol
->
asNamespace
())
{
if
(
!
otherNs
->
name
())
{
expand
(
n
s
->
members
(),
visibleScopes
,
expandedScopes
);
expand
(
otherN
s
->
members
(),
visibleScopes
,
expandedScopes
);
}
}
else
if
(
UsingNamespaceDirective
*
u
=
symbol
->
asUsingNamespaceDirective
())
{
const
QList
<
Symbol
*>
candidates
=
resolveNamespace
(
u
->
name
(),
visibleScopes
);
...
...
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