summaryrefslogtreecommitdiff
path: root/src/plugins
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 /src/plugins
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 'src/plugins')
-rw-r--r--src/plugins/cpptools/cpplocalsymbols.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpplocalsymbols.cpp b/src/plugins/cpptools/cpplocalsymbols.cpp
index 026c0274cb..8522196957 100644
--- a/src/plugins/cpptools/cpplocalsymbols.cpp
+++ b/src/plugins/cpptools/cpplocalsymbols.cpp
@@ -127,6 +127,11 @@ protected:
return true;
}
+ virtual bool visit(CaptureAST *ast)
+ {
+ return checkLocalUse(ast->identifier, ast->firstToken());
+ }
+
virtual bool visit(IdExpressionAST *ast)
{
return checkLocalUse(ast->name, ast->firstToken());