Thanks for the prod. I've started some Clang 3.1 release notes in r150640.<br><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 3:11 AM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@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 bgcolor="#FFFFFF"><div>Nice!  This should be release noted!<span class="HOEnZb"><font color="#888888"><br><br><div>
-Chris</div></font></span></div><div><div class="h5"><div><br>On Feb 14, 2012, at 4:35 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>> wrote:<br><br></div><div></div>
<blockquote type="cite"><div><p>Woot!!! </p>
<div class="gmail_quote">On Feb 14, 2012 1:02 PM, "Richard Smith" <<a href="mailto:richard-llvm@metafoo.co.uk" target="_blank">richard-llvm@metafoo.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Author: rsmith<br>
Date: Tue Feb 14 16:56:17 2012<br>
New Revision: 150524<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=150524&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=150524&view=rev</a><br>
Log:<br>
Advertize support for constexpr.<br>
<br>
Modified:<br>
    cfe/trunk/docs/LanguageExtensions.html<br>
    cfe/trunk/lib/Lex/PPMacroExpansion.cpp<br>
    cfe/trunk/test/Lexer/has_feature_cxx0x.cpp<br>
<br>
Modified: cfe/trunk/docs/LanguageExtensions.html<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.html?rev=150524&r1=150523&r2=150524&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.html?rev=150524&r1=150523&r2=150524&view=diff</a><br>


==============================================================================<br>
--- cfe/trunk/docs/LanguageExtensions.html (original)<br>
+++ cfe/trunk/docs/LanguageExtensions.html Tue Feb 14 16:56:17 2012<br>
@@ -668,7 +668,7 @@<br>
<br>
 <p>Use <tt>__has_feature(cxx_constexpr)</tt> to determine if support<br>
 for generalized constant expressions (e.g., <tt>constexpr</tt>) is<br>
-enabled. Clang does not currently implement this feature.</p><br>
+enabled.</p><br>
<br>
 <h4 id="cxx_decltype">C++11 <tt>decltype()</tt></h4><br>
<br>
<br>
Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=150524&r1=150523&r2=150524&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=150524&r1=150523&r2=150524&view=diff</a><br>


==============================================================================<br>
--- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)<br>
+++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Tue Feb 14 16:56:17 2012<br>
@@ -638,7 +638,7 @@<br>
            .Case("cxx_atomic", LangOpts.CPlusPlus0x)<br>
            .Case("cxx_attributes", LangOpts.CPlusPlus0x)<br>
            .Case("cxx_auto_type", LangOpts.CPlusPlus0x)<br>
-         //.Case("cxx_constexpr", false);<br>
+           .Case("cxx_constexpr", LangOpts.CPlusPlus0x)<br>
            .Case("cxx_decltype", LangOpts.CPlusPlus0x)<br>
            .Case("cxx_default_function_template_args", LangOpts.CPlusPlus0x)<br>
            .Case("cxx_defaulted_functions", LangOpts.CPlusPlus0x)<br>
<br>
Modified: cfe/trunk/test/Lexer/has_feature_cxx0x.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/has_feature_cxx0x.cpp?rev=150524&r1=150523&r2=150524&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/has_feature_cxx0x.cpp?rev=150524&r1=150523&r2=150524&view=diff</a><br>


==============================================================================<br>
--- cfe/trunk/test/Lexer/has_feature_cxx0x.cpp (original)<br>
+++ cfe/trunk/test/Lexer/has_feature_cxx0x.cpp Tue Feb 14 16:56:17 2012<br>
@@ -217,3 +217,12 @@<br>
<br>
 // CHECK-0X: has_unicode_literals<br>
 // CHECK-NO-0X: no_unicode_literals<br>
+<br>
+#if __has_feature(cxx_constexpr)<br>
+int has_constexpr();<br>
+#else<br>
+int no_constexpr();<br>
+#endif<br>
+<br>
+// CHECK-0X: has_constexpr<br>
+// CHECK-NO-0X: no_constexpr<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>cfe-commits mailing list</span><br><span><a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a></span><br>
<span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a></span><br></div></blockquote></div></div></div>
</blockquote></div><br>