C++: name of function of class problem

It fixes:
* highlighing
* find usage
* follow symbol

when function of class has the same name as:
* local variable
* template parameter
* other struct/union/class/enum
* function argument

in function scope.

Task-number: QTCREATORBUG-8902
Change-Id: Iddc0f764af689babb40d39460d174bac7b919b31
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Sergey Shambir <sergey.shambir.auto@gmail.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Przemyslaw Gorszkowski
2013-04-07 09:05:22 +02:00
committed by Erik Verbruggen
parent 9c2a352027
commit bde6667240
4 changed files with 150 additions and 6 deletions

View File

@@ -165,6 +165,8 @@ protected:
void flush();
private:
bool isConstructorDeclaration(Symbol *declaration);
Document::Ptr _doc;
LookupContext _context;
TypeOfExpression typeOfExpression;