From 642116e4d2e91596f7d82227a510475a0b09b106 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Mon, 10 May 2010 10:41:20 +0200 Subject: [PATCH] Oops! removed debug statements. --- src/libs/cplusplus/ResolveExpression.cpp | 29 +----------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/libs/cplusplus/ResolveExpression.cpp b/src/libs/cplusplus/ResolveExpression.cpp index 74fd1fcdec5..c32afc937bf 100644 --- a/src/libs/cplusplus/ResolveExpression.cpp +++ b/src/libs/cplusplus/ResolveExpression.cpp @@ -588,44 +588,17 @@ ResolveExpression::resolveBaseExpression(const QList &baseResults, i if (accessOp == T_ARROW) { if (NamedType *namedTy = ty->asNamedType()) { - - Overview oo; - qDebug() << "got here:" << oo(namedTy->name()); - const Name *arrowAccessOp = control()->operatorNameId(OperatorNameId::ArrowOp); -#if 0 - qDebug() << "last visible symbol is:" << result.lastVisibleSymbol()->fileName() - << result.lastVisibleSymbol()->line() - << result.lastVisibleSymbol()->column(); -#endif - -#if 0 - if (const QualifiedNameId *q = namedTy->name()->asQualifiedNameId()) { - QList names; - for (unsigned i = 0; i < q->nameCount() - 1; ++i) - names.append(q->nameAt(i)); - if (ClassOrNamespace *b = _context.globalNamespace()->findClassOrNamespace(names)) { - qDebug() << "yuppi du" << b << oo(b->_templateId); - foreach (Symbol *s, b->lookup(q->unqualifiedNameId())) { - qDebug() << "r:" << oo(s->type(), s->name()); - } - } - } -#endif - foreach (Symbol *s, _context.lookup(namedTy->name(), result.lastVisibleSymbol())) { - qDebug() << "r:" << oo(s->type(), s->name()); - if (PointerType *ptrTy = s->type()->asPointerType()) { FullySpecifiedType elementTy = ptrTy->elementType().simplified(); if (elementTy->isNamedType() || elementTy->isClassType()) results.append(LookupItem(elementTy, lastVisibleSymbol)); + } else if (const NamedType *nt = s->type()->asNamedType()) { - qDebug() << "f***"; Symbol *l = _context.lookup(nt->name(), result.lastVisibleSymbol()).first(); - qDebug() << "l" << oo(l->type(), l->name()); if (PointerType *ptrTy = l->type()->asPointerType()) { FullySpecifiedType elementTy = ptrTy->elementType().simplified();