Commit 26b7b877 authored by Erik Verbruggen's avatar Erik Verbruggen

C++: fix highlighting again, this time for arguments.

Change-Id: I106102025e4d65aa9759ce7ebdf505ef3765bf32
Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
parent 66095e39
......@@ -112,7 +112,8 @@ protected:
const Identifier *id = identifier(simpleName->identifier_token);
for (int i = _scopeStack.size() - 1; i != -1; --i) {
if (Symbol *member = _scopeStack.at(i)->find(id)) {
if (member->isTypedef() || !member->isDeclaration())
if (member->isTypedef() ||
!(member->isDeclaration() || member->isArgument()))
continue;
else if (!member->isGenerated() && (member->sourceLocation() < firstToken || member->enclosingScope()->isFunction())) {
unsigned line, column;
......
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