<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 21, 2014 at 1:04 AM, Michel Morin <span dir="ltr"><<a href="mailto:mimomorin@gmail.com" target="_blank">mimomorin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The support for C++14 digit separators was already added in Clang 3.4.<br>
But there is no querying macro for the feature.<br>
<br>
I've attached a patch for adding the macro.</blockquote><div><br></div><div>The patch looks good to me, but I have a more general question before we go ahead with this: should we continue to add Clang-specific __has_feature tests for features that are covered by C++'s SD-6 feature test recommendations? Per the latest working draft of SD-6, the portable, cross-compiler way to check for digit separators is</div><div><br></div><div>  #if __cpp_digit_separators >= 201309L</div><div><br></div><div>... and there seems to be no reason for portable code to use __has_feature for this check.</div><div><br></div><div>(That said, I *can* see an argument for supporting __has_extension for such features in general... though perhaps not for this one, since it would not be a conforming extension in C++11.)</div></div></div></div>