[cfe-commits] r151458 - in /cfe/trunk: lib/Lex/PPMacroExpansion.cpp test/Lexer/has_feature_cxx0x.cpp www/cxx_status.html

Richard Smith richard at metafoo.co.uk
Sat Feb 25 15:33:29 CST 2012


Please also update LanguageExtensions.html: it still says we don't support
initializer lists.

On Sat, Feb 25, 2012 at 12:51 PM, Sebastian Redl <
sebastian.redl at getdesigned.at> wrote:

> Author: cornedbee
> Date: Sat Feb 25 14:51:27 2012
> New Revision: 151458
>
> URL: http://llvm.org/viewvc/llvm-project?rev=151458&view=rev
> Log:
> Initializer lists are now supported.
>
> Modified:
>    cfe/trunk/lib/Lex/PPMacroExpansion.cpp
>    cfe/trunk/test/Lexer/has_feature_cxx0x.cpp
>    cfe/trunk/www/cxx_status.html
>
> Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPMacroExpansion.cpp?rev=151458&r1=151457&r2=151458&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Lex/PPMacroExpansion.cpp (original)
> +++ cfe/trunk/lib/Lex/PPMacroExpansion.cpp Sat Feb 25 14:51:27 2012
> @@ -650,7 +650,7 @@
>            .Case("cxx_delegating_constructors", LangOpts.CPlusPlus0x)
>            .Case("cxx_deleted_functions", LangOpts.CPlusPlus0x)
>            .Case("cxx_explicit_conversions", LangOpts.CPlusPlus0x)
> -         //.Case("cxx_generalized_initializers", LangOpts.CPlusPlus0x)
> +           .Case("cxx_generalized_initializers", LangOpts.CPlusPlus0x)
>            .Case("cxx_implicit_moves", LangOpts.CPlusPlus0x)
>          //.Case("cxx_inheriting_constructors", false)
>            .Case("cxx_inline_namespaces", LangOpts.CPlusPlus0x)
>
> Modified: cfe/trunk/test/Lexer/has_feature_cxx0x.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/has_feature_cxx0x.cpp?rev=151458&r1=151457&r2=151458&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/Lexer/has_feature_cxx0x.cpp (original)
> +++ cfe/trunk/test/Lexer/has_feature_cxx0x.cpp Sat Feb 25 14:51:27 2012
> @@ -226,3 +226,12 @@
>
>  // CHECK-0X: has_constexpr
>  // CHECK-NO-0X: no_constexpr
> +
> +#if __has_feature(cxx_generalized_initializers)
> +int has_generalized_initializers();
> +#else
> +int no_generalized_initializers();
> +#endif
> +
> +// CHECK-0X: has_generalized_initializers
> +// CHECK-NO-0X: no_generalized_initializers
>
> Modified: cfe/trunk/www/cxx_status.html
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/www/cxx_status.html?rev=151458&r1=151457&r2=151458&view=diff
>
> ==============================================================================
> --- cfe/trunk/www/cxx_status.html (original)
> +++ cfe/trunk/www/cxx_status.html Sat Feb 25 14:51:27 2012
> @@ -81,7 +81,7 @@
>     <tr>
>       <td>Initializer lists</td>
>       <td><a href="
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2672.htm
> ">N2672</a></td>
> -      <td class="none" align="center">In progress</td>
> +      <td class="svn" align="center">SVN</td>
>     </tr>
>     <tr>
>       <td>Static assertions</td>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/cfe-commits/attachments/20120225/171139d2/attachment.html 


More information about the cfe-commits mailing list