Skip to content
GitLab
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
3d2e4543
Commit
3d2e4543
authored
Dec 08, 2009
by
Roberto Raggi
Browse files
Add only symbols declared in class scopes when performing class-completion.
parent
02c73367
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodecompletion.cpp
View file @
3d2e4543
...
...
@@ -1276,6 +1276,9 @@ void CppCodeCompletion::completeNamespace(const QList<Symbol *> &candidates,
}
foreach
(
Scope
*
scope
,
todo
)
{
if
(
!
scope
->
isNamespaceScope
())
continue
;
addCompletionItem
(
scope
->
owner
());
for
(
unsigned
i
=
0
;
i
<
scope
->
symbolCount
();
++
i
)
{
...
...
@@ -1297,6 +1300,9 @@ void CppCodeCompletion::completeClass(const QList<Symbol *> &candidates,
context
.
expand
(
klass
->
members
(),
context
.
visibleScopes
(),
&
todo
);
foreach
(
Scope
*
scope
,
todo
)
{
if
(
!
scope
->
isClassScope
())
continue
;
addCompletionItem
(
scope
->
owner
());
for
(
unsigned
i
=
0
;
i
<
scope
->
symbolCount
();
++
i
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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