Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
5b7a1942
Commit
5b7a1942
authored
Oct 21, 2009
by
Roberto Raggi
Browse files
Use bit vectors to store the preprocessor's state.
parent
5e00b769
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/pp-engine.cpp
View file @
5b7a1942
...
...
@@ -545,6 +545,8 @@ Preprocessor::Preprocessor(Client *client, Environment *env)
:
client
(
client
),
env
(
env
),
_expand
(
env
),
_skipping
(
MAX_LEVEL
),
_true_test
(
MAX_LEVEL
),
_result
(
0
),
_markGeneratedTokens
(
false
),
_expandMacros
(
true
)
...
...
src/libs/cplusplus/pp-engine.h
View file @
5b7a1942
...
...
@@ -54,6 +54,7 @@
#include <Token.h>
#include <QVector>
#include <QBitArray>
namespace
CPlusPlus
{
...
...
@@ -177,8 +178,8 @@ private:
Environment
*
env
;
MacroExpander
_expand
;
bool
_skipping
[
MAX_LEVEL
]
;
// ### move in state
bool
_true_test
[
MAX_LEVEL
]
;
// ### move in state
QBitArray
_skipping
;
// ### move in state
QBitArray
_true_test
;
// ### move in state
int
iflevel
;
// ### move in state
QList
<
State
>
_savedStates
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment