Clang now supports lambda expressions.

llvm-svn: 151231
This commit is contained in:
Douglas Gregor 2012-02-23 03:02:32 +00:00
parent f258a15bdf
commit 34b2e8bb17
3 changed files with 4 additions and 4 deletions

View 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)

View 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

View 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>