[PATCH] D48845: [Sema] Add fixit for unused lambda captures

Andrew Comminos via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 5 13:48:04 PDT 2018


acomminos updated this revision to Diff 154307.
acomminos added a comment.

Handle initialization expressions and dereferenced `this` in lambda captures.

An alternative to handling various kinds of explicit captures would be propagating the source range for each lambda capture from the parser to each sema::Capture. This would only be applicable to explicit captures; is this preferable?


Repository:
  rC Clang

https://reviews.llvm.org/D48845

Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaLambda.cpp
  test/FixIt/fixit-unused-lambda-capture.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48845.154307.patch
Type: text/x-patch
Size: 5311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180705/78c76636/attachment.bin>


More information about the cfe-commits mailing list