C++ semantic highlighting: Report uses sorted by line.

This moves sorting from the gui thread to the future and
allows the incremental application of the extra formats
to assume chunks are sorted.

Change-Id: I38e179e573c43cc955cce820f17ac87e3300a839
Reviewed-on: http://codereview.qt.nokia.com/3869
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Christian Kamm
2011-08-30 10:52:41 +02:00
parent 3bf56256d3
commit 2c7a1104fa
3 changed files with 43 additions and 28 deletions

View File

@@ -168,6 +168,7 @@ private:
QSet<QByteArray> _potentialStatics;
QList<AST *> _astStack;
QVector<Use> _usages;
unsigned _lineOfLastUsage;
bool _flushRequested;
unsigned _flushLine;
};