[Sema] Reword unused lambda capture warning
authorMalcolm Parsons <malcolm.parsons@gmail.com>
Thu, 19 Jan 2017 17:19:22 +0000 (17:19 +0000)
committerMalcolm Parsons <malcolm.parsons@gmail.com>
Thu, 19 Jan 2017 17:19:22 +0000 (17:19 +0000)
commitbece0cd51294b96c5562d5f769363dc468e5f9bf
treefb659e93cc70dc89afce0bb5facdab54853c3f26
parent75391c7b3f98bc0678419f2e426e13dbf15552dc
[Sema] Reword unused lambda capture warning

Summary:
The warning doesn't know why the variable was looked up but not
odr-used, so reword it to not claim that it was used in an unevaluated
context.

Reviewers: aaron.ballman

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D28902

llvm-svn: 292498
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/SemaCXX/warn-unused-lambda-capture.cpp