diff options
| author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-05 13:46:40 +0200 |
|---|---|---|
| committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-05 13:46:40 +0200 |
| commit | ec84f72968d1f635e9da312cba2db655057abb63 (patch) | |
| tree | 46a5649481d546056625ee8635d3bfdb19ebcd72 /src/plugins/cpptools/cppfindreferences.cpp | |
| parent | b5d6bf73d6d4bfc132a33dd00766e426d42ec6dd (diff) | |
| download | qt-creator-ec84f72968d1f635e9da312cba2db655057abb63.tar.gz | |
Search for possible references in template arguments.
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
| -rw-r--r-- | src/plugins/cpptools/cppfindreferences.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp index a55a9e95eb..78eaea92d6 100644 --- a/src/plugins/cpptools/cppfindreferences.cpp +++ b/src/plugins/cpptools/cppfindreferences.cpp @@ -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; } |
