[PATCH] Warning on unevaluated expression contexts with side effects

Aaron Ballman aaron at aaronballman.com
Thu Dec 18 06:07:06 PST 2014


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 --------------
A non-text attachment was scrubbed...
Name: DiagGroup.patch
Type: application/octet-stream
Size: 1920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141218/d15b75ae/attachment.obj>


More information about the cfe-commits mailing list