From: Richard Smith Date: Sun, 3 Apr 2011 14:12:46 +0000 (+0000) Subject: clang has had full and tested support for C++0x trailing-return-type and auto type... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a4e73ccd0c51ae8a08b13d7693fb15d106c8522;p=clang clang has had full and tested support for C++0x trailing-return-type and auto type deduction since r126166. Update the website to reflect this, and add a __has_feature test. trailing-return-type codegen is not tested yet (name mangling in particular). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128787 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Lexer/has_feature_cxx0x.cpp b/test/Lexer/has_feature_cxx0x.cpp index 93e8782bcd..27ea1062bb 100644 --- a/test/Lexer/has_feature_cxx0x.cpp +++ b/test/Lexer/has_feature_cxx0x.cpp @@ -41,6 +41,16 @@ int no_auto_type(); // CHECK-NO-0X: no_auto_type +#if __has_feature(cxx_trailing_return) +int has_trailing_return(); +#else +int no_trailing_return(); +#endif + +// CHECK-0X: has_trailing_return +// CHECK-NO-0X: no_trailing_return + + #if __has_feature(cxx_attributes) int has_attributes(); #else diff --git a/www/cxx_status.html b/www/cxx_status.html index ebb420e8f8..15448ccdc2 100644 --- a/www/cxx_status.html +++ b/www/cxx_status.html @@ -221,10 +221,10 @@ welcome!

auto type deduction - - - - + ✓ + ✓ + ✓ + ✓ 7.1.6.2, 7.1.6.4 N1984 @@ -585,10 +585,10 @@ welcome!

Things Completely New Late-specified return type - - - - + ✓ + ✓ + ✓ + 8.3.5 N2445