forked from qt-creator/qt-creator
CppTools: Highlight type for templated using
Task-number: QTCREATORBUG-9944 Change-Id: I614571e05039f24b7d56abdddc15f912581f68f1 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
d004b1b616
commit
588b333669
@@ -1183,8 +1183,9 @@ bool CheckSymbols::isTemplateClass(Symbol *symbol) const
|
||||
if (symbol) {
|
||||
if (Template *templ = symbol->asTemplate()) {
|
||||
if (Symbol *declaration = templ->declaration()) {
|
||||
if (declaration->isClass() || declaration->isForwardClassDeclaration())
|
||||
return true;
|
||||
return declaration->isClass()
|
||||
|| declaration->isForwardClassDeclaration()
|
||||
|| declaration->isTypedef();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user