]> granicus.if.org Git - clang/commitdiff
Clang now supports lambda expressions.
authorDouglas Gregor <dgregor@apple.com>
Thu, 23 Feb 2012 03:02:32 +0000 (03:02 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 23 Feb 2012 03:02:32 +0000 (03:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151231 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPMacroExpansion.cpp
test/Lexer/has_feature_cxx0x.cpp
www/cxx_status.html

index a285c30d5cf6acbafd7126303cb91d9a1d8105ce..a9993f97d4f24f9588d158f164afa63d7c884cd9 100644 (file)
@@ -649,7 +649,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
            .Case("cxx_implicit_moves", LangOpts.CPlusPlus0x)
          //.Case("cxx_inheriting_constructors", false)
            .Case("cxx_inline_namespaces", LangOpts.CPlusPlus0x)
-         //.Case("cxx_lambdas", false)
+           .Case("cxx_lambdas", LangOpts.CPlusPlus0x)
            .Case("cxx_nonstatic_member_init", LangOpts.CPlusPlus0x)
            .Case("cxx_noexcept", LangOpts.CPlusPlus0x)
            .Case("cxx_nullptr", LangOpts.CPlusPlus0x)
index 17ed6fbfafd711a66c64e456ba083082c6cd6073..d987a38d0249d91f4150a891f0b4628209dc4e25 100644 (file)
@@ -16,7 +16,7 @@ int has_lambdas();
 int no_lambdas();
 #endif
 
-// CHECK-0X: no_lambdas
+// CHECK-0X: has_lambdas
 // CHECK-NO-0X: no_lambdas
 
 
index 8c207bc8ae30c3f36072653b0ccde96aaf9424c6..ab11cb91042694b2b6e3e756e4a1218110b01a4e 100644 (file)
@@ -107,9 +107,9 @@ with clang; other versions have not been tested.</p>
       <td class="full" align="center">Clang 2.9</td>
     </tr>
     <tr>
-      <td>New wording for C++0x lambdas</td>
+      <td>Lambda expressions</td>
       <td><a href="http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2927.pdf">N2927</a></td>
-      <td class="none" align="center">No</td>
+      <td class="full" align="center">SVN</td>
     </tr>
     <tr>
       <td>Declared type of an expression</td>