Commit 7028b951 authored by Roberto Raggi's avatar Roberto Raggi

Ignore shadowed symbols.

parent eb44801b
......@@ -789,13 +789,11 @@ void CheckSymbols::addMemberUsage(const QList<LookupItem> &candidates, NameAST *
if (! c)
continue;
else if (! c->isDeclaration())
continue;
else if (c->isTypedef())
continue;
else if (c->type()->isFunctionType())
continue;
else if (! c->enclosingSymbol()->isClass())
continue;
return;
else if (! (c->enclosingSymbol() && c->enclosingSymbol()->isClass()))
return; // shadowed
else if (c->isTypedef() || c->type()->isFunctionType())
return; // shadowed
const Use use(line, column, length, Use::Field);
addUsage(use);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment