From: Sebastian Redl Date: Sat, 25 Feb 2012 20:51:27 +0000 (+0000) Subject: Initializer lists are now supported. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1dc3aa25797301788f1c4f30f769b1d9e1fb22a;p=clang Initializer lists are now supported. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151458 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index c7c8e00f40..007be3bed2 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/lib/Lex/PPMacroExpansion.cpp @@ -650,7 +650,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { .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) diff --git a/test/Lexer/has_feature_cxx0x.cpp b/test/Lexer/has_feature_cxx0x.cpp index d987a38d02..d520208d2e 100644 --- a/test/Lexer/has_feature_cxx0x.cpp +++ b/test/Lexer/has_feature_cxx0x.cpp @@ -226,3 +226,12 @@ int no_constexpr(); // 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 diff --git a/www/cxx_status.html b/www/cxx_status.html index 4b50c22532..ea1992a577 100644 --- a/www/cxx_status.html +++ b/www/cxx_status.html @@ -81,7 +81,7 @@ with clang; other versions have not been tested.

Initializer lists N2672 - In progress + SVN Static assertions