]> granicus.if.org Git - clang/commit
[Sema] Add fixit for unused lambda captures
authorAlexander Shaposhnikov <shal1t712@gmail.com>
Mon, 16 Jul 2018 07:23:47 +0000 (07:23 +0000)
committerAlexander Shaposhnikov <shal1t712@gmail.com>
Mon, 16 Jul 2018 07:23:47 +0000 (07:23 +0000)
commitb813e9608d5e93c65454d82760e26ea304f925cb
tree4d98d153a35958519c6c82213da52f5d6e8fb2cb
parente3f43c2ae1bd915046fe173d8ac32389672cad83
[Sema] Add fixit for unused lambda captures

This diff adds a fixit to suggest removing unused lambda captures
in the appropriate diagnostic.

Patch by Andrew Comminos!

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D48845

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337148 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/DeclSpec.h
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/Parse/ParseExprCXX.cpp
lib/Sema/SemaLambda.cpp
test/FixIt/fixit-unused-lambda-capture.cpp [new file with mode: 0644]