[PATCH] D28467: [Sema] Add warning for unused lambda captures
Malcolm Parsons via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 11 03:11:59 PST 2017
malcolm.parsons updated this revision to Diff 83942.
malcolm.parsons marked 9 inline comments as done.
malcolm.parsons added a comment.
Change warning message.
Check for side effects.
Add tests for side effects.
Add tests for decltype.
Use const reference.
Add . to comment.
Remove unrelated comment fix.
https://reviews.llvm.org/D28467
Files:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaLambda.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p13.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/p19.cpp
test/SemaCXX/uninitialized.cpp
test/SemaCXX/warn-unused-lambda-capture.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28467.83942.patch
Type: text/x-patch
Size: 13966 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170111/b983ca12/attachment.bin>
More information about the cfe-commits
mailing list