From: Douglas Gregor Date: Thu, 23 Feb 2012 03:02:32 +0000 (+0000) Subject: Clang now supports lambda expressions. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c07e964d72a287aa3d5714731e202c3ffa17007;p=clang Clang now supports lambda expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151231 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp index a285c30d5c..a9993f97d4 100644 --- a/lib/Lex/PPMacroExpansion.cpp +++ b/lib/Lex/PPMacroExpansion.cpp @@ -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) diff --git a/test/Lexer/has_feature_cxx0x.cpp b/test/Lexer/has_feature_cxx0x.cpp index 17ed6fbfaf..d987a38d02 100644 --- a/test/Lexer/has_feature_cxx0x.cpp +++ b/test/Lexer/has_feature_cxx0x.cpp @@ -16,7 +16,7 @@ int has_lambdas(); int no_lambdas(); #endif -// CHECK-0X: no_lambdas +// CHECK-0X: has_lambdas // CHECK-NO-0X: no_lambdas diff --git a/www/cxx_status.html b/www/cxx_status.html index 8c207bc8ae..ab11cb9104 100644 --- a/www/cxx_status.html +++ b/www/cxx_status.html @@ -107,9 +107,9 @@ with clang; other versions have not been tested.

Clang 2.9 - New wording for C++0x lambdas + Lambda expressions N2927 - No + SVN Declared type of an expression