Thanks for noticing. Reverted for now in r337278. The wording is still bad,
but talking about ODR uses in there feels worse.
On Tue, Jul 17, 2018 at 1:02 PM Malcolm Parsons
wrote:
> On Mon, 16 Jul 2018 at 10:57, Benjamin Kramer via cfe-commits
> wrote:
> > - auto explicit_by_value_unused_sizeo
On Mon, 16 Jul 2018 at 10:57, Benjamin Kramer via cfe-commits
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)
Author: d0k
Date: Mon Jul 16 02:52:02 2018
New Revision: 337152
URL: http://llvm.org/viewvc/llvm-project?rev=337152&view=rev
Log:
[Sema] Reword warning for constant captures that are not required
This is one of the darker corners of C++, make it clear that this is
about constants and rephrase it