forked from qt-creator/qt-creator
C++: fix used template function parameters
It was missing colorizing and follow symbol template function parameters in case of: * returning value * use it as qualified name Task-number: QTCREATORBUG-6861 Change-Id: I4226199e1f296cfe5a373783ebbc633e32fc9bcd Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
feff33827c
commit
f93758b8e1
@@ -175,6 +175,14 @@ protected:
|
||||
virtual bool visit(Block *symbol)
|
||||
{ return process(symbol); }
|
||||
|
||||
virtual bool visit(Template *symbol)
|
||||
{
|
||||
if (symbol->declaration() && symbol->declaration()->isFunction())
|
||||
return process(symbol);
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
// Objective-C
|
||||
virtual bool visit(ObjCBaseClass *) { return false; }
|
||||
virtual bool visit(ObjCBaseProtocol *) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user