summaryrefslogtreecommitdiff
path: root/tests/tools
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2012-10-25 16:22:42 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2012-11-07 13:36:20 +0100
commit9f38f7bfbc19a0a94c69f95bd8ad5ac2a8471df9 (patch)
treeea560a16954cfa6355f79b0d480b0a58eca9ef89 /tests/tools
parentbe516c7c6ef73df947b4392bb0efe5a532f00f5c (diff)
downloadqt-creator-9f38f7bfbc19a0a94c69f95bd8ad5ac2a8471df9.tar.gz
C++: Store lambda captures in the code model.
Done-with: Erik Verbruggen Task-number: QTCREATORBUG-7968 Task-number: QTCREATORBUG-7949 Change-Id: I0cf727052d0a3536ed96ee894b18768c9538c213 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'tests/tools')
-rw-r--r--tests/tools/cplusplus-dump/dumpers.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tools/cplusplus-dump/dumpers.inc b/tests/tools/cplusplus-dump/dumpers.inc
index 4ce49361e6..a08981a8f7 100644
--- a/tests/tools/cplusplus-dump/dumpers.inc
+++ b/tests/tools/cplusplus-dump/dumpers.inc
@@ -1645,6 +1645,9 @@ virtual bool visit(LambdaCaptureAST *ast)
virtual bool visit(CaptureAST *ast)
{
+ if (ast->amper_token)
+ terminal(ast->amper_token, ast);
+ nonterminal(ast->identifier);
return false;
}