Highlight user defined types.

This commit is contained in:
Roberto Raggi
2010-05-25 14:53:21 +02:00
parent 2a0f901e16
commit b68a16f1b5
9 changed files with 406 additions and 29 deletions

View File

@@ -128,12 +128,14 @@ void FindUsages::reportResult(unsigned tokenIndex, const QList<Symbol *> &candid
void FindUsages::reportResult(unsigned tokenIndex)
{
if (_processed.contains(tokenIndex))
const Token &tk = tokenAt(tokenIndex);
if (tk.generated())
return;
else if (_processed.contains(tokenIndex))
return;
_processed.insert(tokenIndex);
const Token &tk = tokenAt(tokenIndex);
const QString lineText = matchingLine(tk);
unsigned line, col;