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
Tobias Hunger
qt-creator
Commits
ffa66f4f
Commit
ffa66f4f
authored
Jun 02, 2010
by
Roberto Raggi
Browse files
Fixed the global completion to include the injected class name and user types.
parent
f579e266
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodecompletion.cpp
View file @
ffa66f4f
...
...
@@ -941,7 +941,7 @@ void CppCodeCompletion::globalCompletion(Scope *currentScope)
if
(
symbols
.
first
()
->
isNamespace
())
completeNamespace
(
currentBinding
);
else
completeClass
(
currentBinding
,
false
);
completeClass
(
currentBinding
);
}
}
...
...
@@ -1440,6 +1440,8 @@ void CppCodeCompletion::completeClass(ClassOrNamespace *b, bool staticLookup)
scopesVisited
.
insert
(
scope
);
addCompletionItem
(
scope
->
owner
());
// add a completion item for the injected class name.
for
(
Scope
::
iterator
it
=
scope
->
firstSymbol
();
it
!=
scope
->
lastSymbol
();
++
it
)
{
Symbol
*
member
=
*
it
;
if
(
member
->
isFriend
())
...
...
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