diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2017-01-13 15:01:06 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2017-01-13 15:01:06 +0000 |
commit | 87a036259bb47624f9257b1d247fd50162b2734d (patch) | |
tree | 3f63533f3f0257d666d869f6d1cc8027902dd5e0 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 061f4a5fe6c60116831fa18e7db7faa24c7bd1e2 (diff) | |
download | bcm5719-llvm-87a036259bb47624f9257b1d247fd50162b2734d.tar.gz bcm5719-llvm-87a036259bb47624f9257b1d247fd50162b2734d.zip |
[Sema] Add warning for unused lambda captures
Summary:
Warn when a lambda explicitly captures something that is not used in its body.
The warning is part of -Wunused and can be enabled with -Wunused-lambda-capture.
Reviewers: rsmith, arphaman, jbcoe, aaron.ballman
Subscribers: Quuxplusone, arphaman, cfe-commits
Differential Revision: https://reviews.llvm.org/D28467
llvm-svn: 291905
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions