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

Alexander Shaposhnikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 10 16:47:39 PDT 2018

alexshap added a comment.

I'm kind of interested in this fixit, but one thought which i have - probably it should be more conservative (i.e. fix captures by reference, integral types, etc) (since the code might rely on side-effects of copy-ctors/move-ctors or extend the lifetime of an object), but fixing only simple cases still seems to be useful imo. CC: @aaron.ballman , @arphaman, @ahatanak

  rC Clang


More information about the cfe-commits mailing list