forked from qt-creator/qt-creator
CppTools: Fix highlighting and follow for template using argument
Use-case: template<class T> using Foo = Bar<T>; // T not highlighted Task-number: QTCREATORBUG-9944 Change-Id: I04cb62ea6a21f158f7fb4fb7ac79ccd6eb1bbfbb Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
7389f46959
commit
3fe1b92566
@@ -177,7 +177,7 @@ protected:
|
||||
virtual bool visit(Template *symbol)
|
||||
{
|
||||
if (Symbol *decl = symbol->declaration()) {
|
||||
if (decl->isFunction() || decl->isClass())
|
||||
if (decl->isFunction() || decl->isClass() || decl->isDeclaration())
|
||||
return process(symbol);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user