forked from qt-creator/qt-creator
Use Prototype instead of Function.
This commit is contained in:
committed by
Oswald Buddenhagen
parent
9aa991d636
commit
4ff3ee2ff0
@@ -120,7 +120,7 @@ QDebug operator<<(QDebug d, const Scope &scope)
|
||||
str << " enum";
|
||||
if (scope.isBlockScope())
|
||||
str << " block";
|
||||
if (scope.isFunctionScope())
|
||||
if (scope.isPrototypeScope())
|
||||
str << " function";
|
||||
if (scope.isPrototypeScope())
|
||||
str << " prototype";
|
||||
@@ -374,7 +374,7 @@ int getUninitializedVariablesI(const CPlusPlus::Snapshot &snapshot,
|
||||
if (CPlusPlus::Block *block = function->memberAt(0)->asBlock())
|
||||
innerMostScope = block->members();
|
||||
} else {
|
||||
if (const CPlusPlus::Scope *functionScope = symbolAtLine->enclosingFunctionScope()) {
|
||||
if (const CPlusPlus::Scope *functionScope = symbolAtLine->enclosingPrototypeScope()) {
|
||||
function = functionScope->owner()->asFunction();
|
||||
innerMostScope = symbolAtLine->isBlock() ?
|
||||
symbolAtLine->asBlock()->members() :
|
||||
|
||||
Reference in New Issue
Block a user