C++: split lines only once in find usages.

Change-Id: I16f91e81402ecff0039acf1dfc68d9ce7f6d1c81
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
Erik Verbruggen
2013-02-26 14:09:44 +01:00
committed by David Schulz
parent 444c5ae11c
commit 5f68b5b02f
2 changed files with 38 additions and 37 deletions

View File

@@ -283,6 +283,10 @@ protected:
virtual bool visit(FunctionDeclaratorAST *ast);
virtual bool visit(ArrayDeclaratorAST *ast);
private:
void prepareLines(const QByteArray &bytes);
QString fetchLine(unsigned lineNr) const;
private:
const Identifier *_id;
Symbol *_declSymbol;
@@ -290,7 +294,8 @@ private:
Document::Ptr _doc;
Snapshot _snapshot;
LookupContext _context;
QByteArray _originalSource;
const QByteArray _originalSource;
std::vector<const char *> _sourceLineEnds;
QByteArray _source;
QList<int> _references;
QList<Usage> _usages;