forked from qt-creator/qt-creator
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:
committed by
Erik Verbruggen
parent
afe1d5ee65
commit
94dd4e740a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user