]> granicus.if.org Git - clang/commitdiff
clang has had full and tested support for C++0x trailing-return-type and auto type...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 3 Apr 2011 14:12:46 +0000 (14:12 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 3 Apr 2011 14:12:46 +0000 (14:12 +0000)
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

test/Lexer/has_feature_cxx0x.cpp
www/cxx_status.html

index 93e8782bcde4e2bd4cc8e921530ed0f2cbd25fb2..27ea1062bb11ad34641cfd924b055871e4a43196 100644 (file)
@@ -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
index ebb420e8f81e71d76caf73c7c3fec23131e5a65c..15448ccdc2f8a25d5f870ea00e58aba7c68bebd1 100644 (file)
@@ -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">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</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">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</td>
+  <td class="complete" align="center">&#x2713;</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>