r337152 - [Sema] Reword warning for constant captures that are not required
Malcolm Parsons via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 17 04:02:30 PDT 2018
On Mon, 16 Jul 2018 at 10:57, Benjamin Kramer via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> - auto explicit_by_value_unused_sizeof = [i] { return sizeof(i); }; // expected-warning{{lambda capture 'i' is not required to be captured for this use}}
> + auto explicit_by_value_unused_sizeof = [i] { return sizeof(i); }; // expected-warning{{lambda capture of constant 'i' is not required for this use}}
i is not a constant:
int i = 0;
--
Malcolm Parsons
More information about the cfe-commits
mailing list