diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2012-10-25 16:22:42 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2012-11-07 13:36:20 +0100 |
commit | 9f38f7bfbc19a0a94c69f95bd8ad5ac2a8471df9 (patch) | |
tree | ea560a16954cfa6355f79b0d480b0a58eca9ef89 /src/plugins | |
parent | be516c7c6ef73df947b4392bb0efe5a532f00f5c (diff) | |
download | qt-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.cpp | 5 |
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()); |