[PATCH] D36357: Added a better diagnostic when using the delete operator with lambdas

Nicolas Lesser via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 26 21:42:30 PDT 2018


Rakete1111 updated this revision to Diff 157642.
Rakete1111 added a comment.

Addressed review comments.

Note that clang doesn't support the fourth kind of lambda yet ([]<>), because https://reviews.llvm.org/D36527 hasn't been merged yet, so I didn't add a test case for that one.


Repository:
  rC Clang

https://reviews.llvm.org/D36357

Files:
  include/clang/Basic/DiagnosticParseKinds.td
  lib/Parse/ParseExprCXX.cpp
  test/FixIt/fixit-cxx0x.cpp
  test/Parser/cxx0x-lambda-expressions.cpp
  test/SemaCXX/new-delete-0x.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36357.157642.patch
Type: text/x-patch
Size: 4688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180727/4370a75b/attachment.bin>


More information about the cfe-commits mailing list