summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Parser.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-01-28 15:21:57 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-01-28 15:22:50 +0100
commit3dd011fcb6d6beaab0a9ed715ecb014d86c7c9ce (patch)
tree7f637c47b99d659efe8ca15103c71a84529a5983 /src/shared/cplusplus/Parser.h
parenta72230feee03f9dde6ff3dfd7c042160611ec257 (diff)
downloadqt-creator-3dd011fcb6d6beaab0a9ed715ecb014d86c7c9ce.tar.gz
Changed binary expression parsing to use precedence parsing.
Diffstat (limited to 'src/shared/cplusplus/Parser.h')
-rw-r--r--src/shared/cplusplus/Parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/cplusplus/Parser.h b/src/shared/cplusplus/Parser.h
index 7d72c7ef39..0c48ab9c54 100644
--- a/src/shared/cplusplus/Parser.h
+++ b/src/shared/cplusplus/Parser.h
@@ -214,6 +214,8 @@ public:
bool parseUsingDirective(DeclarationAST *&node);
bool parseWhileStatement(StatementAST *&node);
+ void parseExpressionWithOperatorPrecedence(ExpressionAST *&lhs, int minPrecedence);
+
// Qt MOC run
bool parseQtMethod(ExpressionAST *&node);
@@ -313,8 +315,7 @@ private:
bool _objCEnabled: 1;
bool _inFunctionBody: 1;
bool _inObjCImplementationContext: 1;
-
- int depth;
+ int _expressionDepth;
std::map<unsigned, TemplateArgumentListEntry> _templateArgumentList;