<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 1 mai 2011 à 20:44, Chris Lattner a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On Apr 30, 2011, at 2:08 PM, Peter Collingbourne wrote:<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">__has_extension should be a superset of __has_feature, so it should<br></blockquote><blockquote type="cite">also include the C++ and C++0x features, as well as the Clang specific<br></blockquote><blockquote type="cite">extensions.  This can be done trivially by calling HasFeature from<br></blockquote><blockquote type="cite">HasExtension.<br></blockquote><br>I agree.  We should also have a __has_feature(has_extension) of course, and the new goodness should be documented in the language extensions guide.<br><br></div></blockquote><div><br></div><div>Is this really needed ? We can already test for has_extension availability using ifdef.</div><div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: 'Lucida Grande', 'Lucida Sans Unicode', Arial, Verdana, Helvetica, sans-serif; line-height: 19px; font-size: small; "><pre>#ifndef __has_extension         // Optional of course.
  #define __has_extension(x) 0  // Compatibility with non-clang compilers.
#endif</pre></span></div></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>-- Jean-Daniel</div><div><br></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>