C++: code completion for lambda calls

support for lambdas, e.g.:
struct S { int bar; };
[]() { return new S; } ()->bar;
[] { return new S; } ()->bar;
[]() ->S* { return new S(); } ()->bar;
[]() throw() { return new S(); } ()->bar;
[]() throw()->S* { return new S(); } ()->bar;

Task-number: QTCREATORBUG-9523
Change-Id: I43fbf6f0ee0bb11411c53c984df75ef33a276466
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Przemyslaw Gorszkowski
2013-06-25 15:41:17 +02:00
committed by Erik Verbruggen
parent ab15d38726
commit 46461fc183
5 changed files with 185 additions and 0 deletions

View File

@@ -104,6 +104,8 @@ protected:
virtual bool visit(UnaryExpressionAST *ast);
virtual bool visit(CompoundLiteralAST *ast);
virtual bool visit(CompoundExpressionAST *ast);
virtual bool visit(LambdaExpressionAST *ast);
virtual bool visit(ReturnStatementAST *ast);
//names
virtual bool visit(QualifiedNameAST *ast);