[PATCH] D36572: Implemented P0409R2 - Allow lambda capture [=, this]

Hamza Sood via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 10 04:19:08 PDT 2017


hamzasood created this revision.

This patch implements P0409R2 <http://wg21.link/p0409r2>.

'*this' capture is allowed pre-C++17 as an extension. So I've also allowed [=, this] pre-C++2a as an extension (with appropriate warnings) for consistency.


https://reviews.llvm.org/D36572

Files:
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaLambda.cpp
  test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp
  test/FixIt/fixit-cxx0x.cpp
  test/SemaCXX/cxx2a-lambda-equals-this.cpp
  www/cxx_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36572.110549.patch
Type: text/x-patch
Size: 7868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170810/734e944f/attachment-0001.bin>


More information about the cfe-commits mailing list