Commit f446363d authored by Roberto Raggi's avatar Roberto Raggi

Mark the templates.

parent 8a32c41f
...@@ -229,6 +229,11 @@ protected: ...@@ -229,6 +229,11 @@ protected:
return true; return true;
} }
virtual bool visit(Template *)
{
return true;
}
virtual bool visit(Class *symbol) virtual bool visit(Class *symbol)
{ {
addType(symbol->name()); addType(symbol->name());
...@@ -857,7 +862,7 @@ void CheckSymbols::addTypeOrStatic(const QList<LookupItem> &candidates, NameAST ...@@ -857,7 +862,7 @@ void CheckSymbols::addTypeOrStatic(const QList<LookupItem> &candidates, NameAST
else if (c->isUsingNamespaceDirective()) // ... and using namespace directives. else if (c->isUsingNamespaceDirective()) // ... and using namespace directives.
continue; continue;
else if (c->isTypedef() || c->isNamespace() || else if (c->isTypedef() || c->isNamespace() ||
c->isClass() || c->isEnum() || c->isClass() || c->isEnum() || c->isTemplate() ||
c->isForwardClassDeclaration() || c->isTypenameArgument() || c->enclosingEnum() != 0) { c->isForwardClassDeclaration() || c->isTypenameArgument() || c->enclosingEnum() != 0) {
unsigned line, column; unsigned line, column;
......
...@@ -348,7 +348,7 @@ bool Symbol::isNamespace() const ...@@ -348,7 +348,7 @@ bool Symbol::isNamespace() const
{ return asNamespace() != 0; } { return asNamespace() != 0; }
bool Symbol::isTemplate() const bool Symbol::isTemplate() const
{ return asNamespace() != 0; } { return asTemplate() != 0; }
bool Symbol::isClass() const bool Symbol::isClass() const
{ return asClass() != 0; } { 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