[PATCH] Warning on unevaluated expression contexts with side effects

Richard Trieu rtrieu at google.com
Thu Dec 18 17:30:08 PST 2014


Looks good to me.

On Thu, Dec 18, 2014 at 6:07 AM, Aaron Ballman <aaron at aaronballman.com>
wrote:

> On Wed, Dec 17, 2014 at 10:37 PM, Richard Trieu <rtrieu at google.com> wrote:
> > I am seeing a lot of new diagnostics from the evaluated in a typeid
> warning.
> > I think that it should be split off to its own sub-group.
>
> How about something like the attached patch? It goes a bit further and
> gives control over both potentially evaluated and unevaluated
> expression contexts, while keeping it part of -Wunused-value.
>
> ~Aaron
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141218/df345b3e/attachment.html>


More information about the cfe-commits mailing list