[PATCH] D48845: [Sema] Add fixit for unused lambda captures
Malcolm Parsons via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 17 04:10:31 PDT 2018
malcolm.parsons added a comment.
In https://reviews.llvm.org/D48845#1158103, @alexshap wrote:
> 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.
The warning is already conservative.
Repository:
rC Clang
https://reviews.llvm.org/D48845
More information about the cfe-commits
mailing list