[clang-tidy] Use hasLocalStorage() to identify unnecessary copy initializations to exclude static local variables.

Summary: Since local static variables can outlive other local variables exclude them from the unnecessary copy initialization check.

Reviewers: alexfh

Patch by Felix Berger!

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


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