[PATCH] D102531: PR45881: Properly use CXXThisOverride for templated lambda

Yuanfang Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 14 13:51:50 PDT 2021


ychen created this revision.
ychen added reviewers: rsmith, faisalv, aaron.ballman.
ychen requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

- `this` used in lambda expression parameter declarations needs no capture.
- Set up CXXThisOverride for default template arguments of a lambda.

A similar fix to this is c3d2ebb60f604.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102531

Files:
  clang/lib/Sema/SemaExprCXX.cpp
  clang/lib/Sema/SemaTemplate.cpp
  clang/lib/Sema/SemaTemplateDeduction.cpp
  clang/test/SemaCXX/cxx1z-lambda-star-this.cpp
  clang/test/SemaCXX/cxx2a-lambda-decltype-this.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102531.345552.patch
Type: text/x-patch
Size: 4770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210514/259d9bf1/attachment.bin>


More information about the cfe-commits mailing list