forked from qt-creator/qt-creator
Check the scope of class and fwd-class declarations
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user