Commit 1e7a0d3f authored by Francois Ferrand's avatar Francois Ferrand Committed by Erik Verbruggen

CppEditor: do not highlight generated local symbols.

Change-Id: I75a1ed30cbc4d329f65901b856bc19b95e711f3e
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@nokia.com>
parent adae9914
...@@ -109,6 +109,8 @@ protected: ...@@ -109,6 +109,8 @@ protected:
bool checkLocalUse(NameAST *nameAst, unsigned firstToken) bool checkLocalUse(NameAST *nameAst, unsigned firstToken)
{ {
if (SimpleNameAST *simpleName = nameAst->asSimpleName()) { if (SimpleNameAST *simpleName = nameAst->asSimpleName()) {
if (tokenAt(simpleName->identifier_token).generated())
return false;
const Identifier *id = identifier(simpleName->identifier_token); const Identifier *id = identifier(simpleName->identifier_token);
for (int i = _scopeStack.size() - 1; i != -1; --i) { for (int i = _scopeStack.size() - 1; i != -1; --i) {
if (Symbol *member = _scopeStack.at(i)->find(id)) { if (Symbol *member = _scopeStack.at(i)->find(id)) {
......
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