Commit 29b304e7 authored by Roberto Raggi's avatar Roberto Raggi

Skip uninteresting symbols.

parent 897f8dbb
......@@ -169,6 +169,91 @@ bool SearchSymbols::visit(Class *symbol)
return false;
}
bool SearchSymbols::visit(CPlusPlus::UsingNamespaceDirective *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::UsingDeclaration *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::NamespaceAlias *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::Argument *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::TypenameArgument *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::BaseClass *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::Template *)
{
return true;
}
bool SearchSymbols::visit(CPlusPlus::Block *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ForwardClassDeclaration *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ObjCBaseClass *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ObjCBaseProtocol *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ObjCClass *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ObjCForwardClassDeclaration *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ObjCProtocol *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ObjCForwardProtocolDeclaration *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ObjCMethod *)
{
return false;
}
bool SearchSymbols::visit(CPlusPlus::ObjCPropertyDeclaration *)
{
return false;
}
QString SearchSymbols::scopedSymbolName(const QString &symbolName) const
{
QString name = _scope;
......
......@@ -128,11 +128,31 @@ protected:
{ CPlusPlus::Symbol::visitSymbol(symbol, this); }
QString switchScope(const QString &scope);
virtual bool visit(CPlusPlus::Enum *symbol);
virtual bool visit(CPlusPlus::Function *symbol);
virtual bool visit(CPlusPlus::Namespace *symbol);
virtual bool visit(CPlusPlus::Declaration *symbol);
virtual bool visit(CPlusPlus::Class *symbol);
virtual bool visit(CPlusPlus::UsingNamespaceDirective *);
virtual bool visit(CPlusPlus::UsingDeclaration *);
virtual bool visit(CPlusPlus::NamespaceAlias *);
virtual bool visit(CPlusPlus::Declaration *);
virtual bool visit(CPlusPlus::Argument *);
virtual bool visit(CPlusPlus::TypenameArgument *);
virtual bool visit(CPlusPlus::BaseClass *);
virtual bool visit(CPlusPlus::Enum *);
virtual bool visit(CPlusPlus::Function *);
virtual bool visit(CPlusPlus::Namespace *);
virtual bool visit(CPlusPlus::Template *);
virtual bool visit(CPlusPlus::Class *);
virtual bool visit(CPlusPlus::Block *);
virtual bool visit(CPlusPlus::ForwardClassDeclaration *);
// Objective-C
virtual bool visit(CPlusPlus::ObjCBaseClass *);
virtual bool visit(CPlusPlus::ObjCBaseProtocol *);
virtual bool visit(CPlusPlus::ObjCClass *);
virtual bool visit(CPlusPlus::ObjCForwardClassDeclaration *);
virtual bool visit(CPlusPlus::ObjCProtocol *);
virtual bool visit(CPlusPlus::ObjCForwardProtocolDeclaration *);
virtual bool visit(CPlusPlus::ObjCMethod *);
virtual bool visit(CPlusPlus::ObjCPropertyDeclaration *);
QString scopedSymbolName(const QString &symbolName) const;
QString scopedSymbolName(const CPlusPlus::Symbol *symbol) const;
......
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