C++: fix 'find usages' for templates

Fix find usages for template class(class name and template parameters)
or template function(template parameters).

Fixed:
* marking
* find usages
* follow symbol

Change-Id: I22fdbc11260cbd8ee9aafdd76aaeee0f4f49f9fd
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Przemyslaw Gorszkowski
2013-06-07 08:15:19 +02:00
committed by Erik Verbruggen
parent afe1d5ee65
commit 94dd4e740a
3 changed files with 146 additions and 7 deletions

View File

@@ -177,10 +177,11 @@ protected:
virtual bool visit(Template *symbol)
{
if (symbol->declaration() && symbol->declaration()->isFunction())
return process(symbol);
else
return true;
if (Symbol *decl = symbol->declaration()) {
if (decl->isFunction() || decl->isClass())
return process(symbol);
}
return true;
}
// Objective-C