[all-commits] [llvm/llvm-project] 0620e6: [clang] [C++2b] [P1102] Accept lambdas without par...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Wed Mar 24 06:42:51 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0620e6f4b76a9725dbd82454d58c5a68a7e47074
      https://github.com/llvm/llvm-project/commit/0620e6f4b76a9725dbd82454d58c5a68a7e47074
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/lib/Parse/ParseExprCXX.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4-1y.cpp
    M clang/test/FixIt/fixit-c++11.cpp
    M clang/test/Parser/cxx-concepts-requires-clause.cpp
    M clang/test/Parser/cxx0x-lambda-expressions.cpp
    M clang/test/Parser/cxx1z-constexpr-lambdas.cpp
    M clang/test/Parser/cxx2a-template-lambdas.cpp
    A clang/test/Parser/cxx2b-lambdas.cpp
    M clang/test/SemaOpenCLCXX/address-space-lambda.clcpp
    M clang/www/cxx_status.html

  Log Message:
  -----------
  [clang] [C++2b] [P1102] Accept lambdas without parameter list ().

As an extension, accept such lambdas in previous standards with a warning.

* http://eel.is/c++draft/expr.prim.lambda
* http://wg21.link/P1102

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D98433




More information about the All-commits mailing list