diff options
| author | Roberto Raggi <[email protected]> | 2010-08-26 16:16:22 +0200 |
|---|---|---|
| committer | Roberto Raggi <[email protected]> | 2010-08-26 16:16:22 +0200 |
| commit | 05f2fd666902e7246b7110187d4964644291e26f (patch) | |
| tree | 26184894891d998e8e88e8826e3c3425ec7a9244 /src/libs/cplusplus/ResolveExpression.cpp | |
| parent | 688d382ad947df8f4406d10846da0751839d61d1 (diff) | |
Renamed Symbol::scope() to Symbol::enclosingScope().
Diffstat (limited to 'src/libs/cplusplus/ResolveExpression.cpp')
| -rw-r--r-- | src/libs/cplusplus/ResolveExpression.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/cplusplus/ResolveExpression.cpp b/src/libs/cplusplus/ResolveExpression.cpp index c2525e6f3ff..3533b1f2397 100644 --- a/src/libs/cplusplus/ResolveExpression.cpp +++ b/src/libs/cplusplus/ResolveExpression.cpp @@ -115,7 +115,7 @@ void ResolveExpression::addResults(const QList<Symbol *> &symbols) foreach (Symbol *symbol, symbols) { LookupItem item; item.setType(symbol->type()); - item.setScope(symbol->scope()); + item.setScope(symbol->enclosingScope()); item.setDeclaration(symbol); _results.append(item); } @@ -313,18 +313,18 @@ bool ResolveExpression::visit(ThisExpressionAST *) void ResolveExpression::thisObject() { Scope *scope = _scope; - for (; scope; scope = scope->scope()) { + for (; scope; scope = scope->enclosingScope()) { if (Function *fun = scope->asFunction()) { if (Class *klass = scope->enclosingClass()) { FullySpecifiedType classTy(control()->namedType(klass->name())); FullySpecifiedType ptrTy(control()->pointerType(classTy)); - addResult(ptrTy, fun->scope()); + addResult(ptrTy, fun->enclosingScope()); break; } else if (const QualifiedNameId *q = fun->name()->asQualifiedNameId()) { if (q->base()) { FullySpecifiedType classTy(control()->namedType(q->base())); FullySpecifiedType ptrTy(control()->pointerType(classTy)); - addResult(ptrTy, fun->scope()); + addResult(ptrTy, fun->enclosingScope()); } break; } @@ -666,10 +666,10 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas FullySpecifiedType retTy = instantiatedFunction->returnType().simplified(); if (PointerType *ptrTy = retTy->asPointerType()) { - if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), overload->scope())) + if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), overload->enclosingScope())) return retBinding; - else if (scope != overload->scope()) { + else if (scope != overload->enclosingScope()) { if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), scope)) return retBinding; } |
