summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/PreprocessorEnvironment.h
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-02-23 12:49:56 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-02-23 12:49:56 +0100
commit1c063f6953fe61c078e665a4774ef04623cee95d (patch)
treefc710c40c6310dc6f07aa8bbb8262b44b8780c85 /src/libs/cplusplus/PreprocessorEnvironment.h
parentc8bdd0bee4325ff50216fc39da2c9dfa8219cb56 (diff)
downloadqt-creator-1c063f6953fe61c078e665a4774ef04623cee95d.tar.gz
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.
Diffstat (limited to 'src/libs/cplusplus/PreprocessorEnvironment.h')
-rw-r--r--src/libs/cplusplus/PreprocessorEnvironment.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/cplusplus/PreprocessorEnvironment.h b/src/libs/cplusplus/PreprocessorEnvironment.h
index 7f712cd49c..9e0163cfb6 100644
--- a/src/libs/cplusplus/PreprocessorEnvironment.h
+++ b/src/libs/cplusplus/PreprocessorEnvironment.h
@@ -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> &macros);
+
private:
static unsigned hashCode(const QByteArray &s);
void rehash();