[PATCH] D36572: Implemented P0409R2 - Allow lambda capture [=, this]
Hamza Sood via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 11 11:32:27 PDT 2017
hamzasood updated this revision to Diff 110776.
hamzasood added a comment.
@rjmccall The warning is emitted, but you're right that there's no test to ensure that actually happens; test/CXX/expr/expr.prim/expr.prim.lambda/p8.cpp used Wno-c++2a-extensions to suppress the warning.
I've changed it so that checking for the warning is now part of the test.
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.110776.patch
Type: text/x-patch
Size: 7736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170811/b1020f9a/attachment-0001.bin>
More information about the cfe-commits
mailing list