Check the scope of class and fwd-class declarations

This commit is contained in:
Roberto Raggi
2009-10-13 12:20:21 +02:00
parent b07c1be547
commit 5bee5dea13
3 changed files with 32 additions and 2 deletions

View File

@@ -314,6 +314,14 @@ void Symbol::setScope(Scope *scope)
_scope = scope;
}
Symbol *Symbol::enclosingSymbol() const
{
if (! _scope)
return 0;
return _scope->owner();
}
Scope *Symbol::enclosingNamespaceScope() const
{
if (! _scope)