forked from qt-creator/qt-creator
Alternative implementation of the indexer. It is a little bit slower, but I'm going to make it faster.
Unfortunately the refactoring of the indexer is kind of necessary. I need to merge the new binding pass.
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
#include "CPlusPlusForwardDeclarations.h"
|
||||
|
||||
#include <QVector>
|
||||
#include <QList>
|
||||
#include <QByteArray>
|
||||
|
||||
namespace CPlusPlus {
|
||||
@@ -89,6 +90,9 @@ public:
|
||||
Macro **lastMacro()
|
||||
{ return _macros + _macro_count + 1; }
|
||||
|
||||
void reset();
|
||||
void addMacros(const QList<Macro> ¯os);
|
||||
|
||||
private:
|
||||
static unsigned hashCode(const QByteArray &s);
|
||||
void rehash();
|
||||
|
||||
Reference in New Issue
Block a user