[PATCH] D141757: [clangd] allow extracting to variable for complete lambda expressions
Julian Schmidt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 23 05:25:05 PST 2023
5chmidti updated this revision to Diff 491319.
5chmidti added a comment.
Herald added a subscriber: ChuanqiXu.
1. addressed comments
2 bugfix (sorry, should've said something)
Local variables inside the lambda were previously added to the ReferencedDecls vector and would block the action inside of exprIsValidOutside (declarations are inside of the lambda).
Now only consider DeclRefExprs in the lambda captures.
3. I don't have commit access, someone else would need to commit this.
I don't know if you want to delay this patch due to the bugfix or not, either way is fine with me.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141757/new/
https://reviews.llvm.org/D141757
Files:
clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp
clang-tools-extra/clangd/unittests/tweaks/ExtractVariableTests.cpp
clang-tools-extra/docs/ReleaseNotes.rst
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141757.491319.patch
Type: text/x-patch
Size: 6542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230123/db638163/attachment-0001.bin>
More information about the cfe-commits
mailing list