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
ec84f729
Commit
ec84f729
authored
Oct 05, 2009
by
Roberto Raggi
Browse files
Search for possible references in template arguments.
parent
b5d6bf73
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppfindreferences.cpp
View file @
ec84f729
...
...
@@ -357,13 +357,17 @@ protected:
virtual
bool
visit
(
TemplateIdAST
*
ast
)
{
Identifier
*
id
=
identifier
(
ast
->
identifier_token
);
if
(
id
==
_id
)
{
if
(
_id
==
identifier
(
ast
->
identifier_token
))
{
LookupContext
context
=
currentContext
(
ast
);
const
QList
<
Symbol
*>
candidates
=
context
.
resolve
(
ast
->
name
);
reportResult
(
ast
->
identifier_token
,
candidates
);
}
for
(
TemplateArgumentListAST
*
template_arguments
=
ast
->
template_arguments
;
template_arguments
;
template_arguments
=
template_arguments
->
next
)
{
accept
(
template_arguments
->
template_argument
);
}
return
false
;
}
...
...
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