<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 19, 2014 at 8:53 AM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class=""><br><div><div>On Jun 19, 2014, at 4:41 , Richard Smith <<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 18, 2014 at 9:19 AM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br><div><div>On Jun 16, 2014, at 8:51 , Richard Smith <<a href="mailto:richard-llvm@metafoo.co.uk" target="_blank">richard-llvm@metafoo.co.uk</a>> wrote:</div>

<br><blockquote type="cite"><span style="font-family:Monaco;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">+def CXXPre1zCompat : DiagGroup<"c++98-c++11-c++14-compat">;</span><br style="font-family:Monaco;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

<span style="font-family:Monaco;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">+def CXXPre1zCompatPedantic : DiagGroup<"c++98-c++11-c++14-compat-pedantic",</span><br style="font-family:Monaco;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

<span style="font-family:Monaco;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">+                                       [CXXPre1zCompat]>;</span><br style="font-family:Monaco;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">

</blockquote></div><br></div><div>I'm not happy with this warning name. Can we say the *compat options are just the newest version? c++14-compat?</div></div></blockquote><div><br></div><div>That doesn't work: we want -Wc++11-compat to list all incompatibilities with C++11, including this one.</div>

<div><br></div><div>My preference is to make this group unnamed, but I don't know if we support that, nor what we'd list in the [-W...] in the diagnostic if we did.</div></div></div></div></blockquote><br></div></div>
<div>Then how about</div><div><br></div><div>-Wpre-c++1z-compat, which is included by -Wc++98-compat, -Wc++11-compat, and -Wc++14-compat.</div><div>-Wpost-c++11-compat, which is included by  -Wc++11-compat, -Wc++14-compat, and -Wc++1z-compat.</div>
<div><br></div><div>?</div><div><br></div><div>It's not perfect because "post-" doesn't usually include the reference point, but it does provide a very consistent taxonomy.</div></div></blockquote><div><br>
</div><div>I would expect the latter warning to be called -Wpost-c++98-compat (that is, warn for things that aren't compatible with C++ after C++98). Other than that, I think the scheme you suggest is an improvement.</div>
</div></div></div>