forked from qt-creator/qt-creator
Search for possible references in template arguments.
This commit is contained in:
@@ -357,13 +357,17 @@ protected:
|
|||||||
|
|
||||||
virtual bool visit(TemplateIdAST *ast)
|
virtual bool visit(TemplateIdAST *ast)
|
||||||
{
|
{
|
||||||
Identifier *id = identifier(ast->identifier_token);
|
if (_id == identifier(ast->identifier_token)) {
|
||||||
if (id == _id) {
|
|
||||||
LookupContext context = currentContext(ast);
|
LookupContext context = currentContext(ast);
|
||||||
const QList<Symbol *> candidates = context.resolve(ast->name);
|
const QList<Symbol *> candidates = context.resolve(ast->name);
|
||||||
reportResult(ast->identifier_token, candidates);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user