[PATCH] D30327: [Sema] Improve side effect checking for unused-lambda-capture warning

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 24 01:56:07 PST 2017


malcolm.parsons created this revision.

Don't warn about unused lambda captures that involve copying a
value of a type that cannot be trivially copied and destroyed.

Fixes PR31977


https://reviews.llvm.org/D30327

Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaLambda.cpp
  test/SemaCXX/warn-unused-lambda-capture.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30327.89625.patch
Type: text/x-patch
Size: 6099 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170224/4e010b3e/attachment-0001.bin>


More information about the cfe-commits mailing list