Fix C++ model crash when evaluating deep expressions

Task-number: QTCREATORBUG-3831
Done-with: Roberto Raggi
This commit is contained in:
Leandro Melo
2011-04-08 12:44:05 +02:00
parent 3875944c2a
commit cd995e0826
2 changed files with 23 additions and 1 deletions

View File

@@ -138,6 +138,9 @@ protected:
void lambdaDeclarator(LambdaDeclaratorAST *ast);
FullySpecifiedType trailingReturnType(TrailingReturnTypeAST *ast, const FullySpecifiedType &init);
virtual bool preVisit(AST *);
virtual void postVisit(AST *);
// AST
virtual bool visit(ObjCSelectorArgumentAST *ast);
virtual bool visit(AttributeAST *ast);
@@ -297,6 +300,8 @@ protected:
virtual bool visit(ArrayDeclaratorAST *ast);
private:
static const int kMaxDepth;
Scope *_scope;
ExpressionTy _expression;
const Name *_name;
@@ -306,6 +311,7 @@ private:
int _objcVisibility;
int _methodKey;
bool _skipFunctionBodies;
int _depth;
};
} // namespace CPlusPlus