Commit f446363d authored by Roberto Raggi's avatar Roberto Raggi

Mark the templates.

parent 8a32c41f
......@@ -229,6 +229,11 @@ protected:
return true;
}
virtual bool visit(Template *)
{
return true;
}
virtual bool visit(Class *symbol)
{
addType(symbol->name());
......@@ -857,7 +862,7 @@ void CheckSymbols::addTypeOrStatic(const QList<LookupItem> &candidates, NameAST
else if (c->isUsingNamespaceDirective()) // ... and using namespace directives.
continue;
else if (c->isTypedef() || c->isNamespace() ||
c->isClass() || c->isEnum() ||
c->isClass() || c->isEnum() || c->isTemplate() ||
c->isForwardClassDeclaration() || c->isTypenameArgument() || c->enclosingEnum() != 0) {
unsigned line, column;
......
......@@ -348,7 +348,7 @@ bool Symbol::isNamespace() const
{ return asNamespace() != 0; }
bool Symbol::isTemplate() const
{ return asNamespace() != 0; }
{ return asTemplate() != 0; }
bool Symbol::isClass() const
{ return asClass() != 0; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment