diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-04-03 14:12:46 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-04-03 14:12:46 +0000 |
| commit | 13f68cf53e20fe8a7e07ed91f2d44a3ac142917c (patch) | |
| tree | febb5e5d45a9fda360f5d73718b57725af19b010 | |
| parent | fca2e9618a17f4fbee8080fd6b8d0b0532128c27 (diff) | |
| download | bcm5719-llvm-13f68cf53e20fe8a7e07ed91f2d44a3ac142917c.tar.gz bcm5719-llvm-13f68cf53e20fe8a7e07ed91f2d44a3ac142917c.zip | |
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).
llvm-svn: 128787
| -rw-r--r-- | clang/test/Lexer/has_feature_cxx0x.cpp | 10 | ||||
| -rw-r--r-- | clang/www/cxx_status.html | 16 |
2 files changed, 18 insertions, 8 deletions
diff --git a/clang/test/Lexer/has_feature_cxx0x.cpp b/clang/test/Lexer/has_feature_cxx0x.cpp index 93e8782bcde..27ea1062bb1 100644 --- a/clang/test/Lexer/has_feature_cxx0x.cpp +++ b/clang/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/clang/www/cxx_status.html b/clang/www/cxx_status.html index ebb420e8f81..15448ccdc2f 100644 --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -221,10 +221,10 @@ welcome!</p> </tr> <tr> <td>auto type deduction</td> - <td class="complete" align="center"></td> - <td class="complete" align="center"></td> - <td class="complete" align="center"></td> - <td class="complete" align="center"></td> + <td class="complete" align="center">✓</td> + <td class="complete" align="center">✓</td> + <td class="complete" align="center">✓</td> + <td class="complete" align="center">✓</td> <td>7.1.6.2, 7.1.6.4</td> <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n1984.pdf">N1984</a></td> </tr> @@ -585,10 +585,10 @@ welcome!</p> <tr><td colspan="7" class="category">Things Completely New</td></tr> <tr> <td>Late-specified return type</td> - <td></td> - <td></td> - <td></td> - <td></td> + <td class="complete" align="center">✓</td> + <td class="complete" align="center">✓</td> + <td class="complete" align="center">✓</td> + <td class="complete"></td> <td>8.3.5</td> <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2445.html">N2445</a></td> </tr> |

