forked from qt-creator/qt-creator
Use Prototype instead of Function.
This commit is contained in:
committed by
Oswald Buddenhagen
parent
9aa991d636
commit
4ff3ee2ff0
@@ -118,7 +118,7 @@ Scope *Scope::enclosingEnumScope() const
|
||||
return scope;
|
||||
}
|
||||
|
||||
Scope *Scope::enclosingFunctionScope() const
|
||||
Scope *Scope::enclosingPrototypeScope() const
|
||||
{
|
||||
Scope *scope = enclosingScope();
|
||||
for (; scope; scope = scope->enclosingScope()) {
|
||||
@@ -166,11 +166,6 @@ bool Scope::isBlockScope() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Scope::isPrototypeScope() const
|
||||
{
|
||||
return isFunctionScope();
|
||||
}
|
||||
|
||||
bool Scope::isObjCClassScope() const
|
||||
{
|
||||
if (_owner)
|
||||
@@ -185,7 +180,7 @@ bool Scope::isObjCProtocolScope() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Scope::isFunctionScope() const
|
||||
bool Scope::isPrototypeScope() const
|
||||
{
|
||||
if (_owner)
|
||||
return _owner->isFunction();
|
||||
|
||||
Reference in New Issue
Block a user