Add check for unneeded copies of locals

Summary: Extends the UnnecessaryCopyInitialization to detect copies of local variables and parameters that are unneeded.

Patch by Matt Kulukundis!

Reviewers: alexfh, hokein

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D18149

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@264146 91177308-0d34-0410-b5e6-96231b3b80d8
4 files changed