Add the misc-init-local-variables check.

This checks finds all primitive type local variables (integers, doubles, pointers) that are declared without an initial value. Includes fixit functionality to initialize said variables with a default value. This is zero for most types and NaN for floating point types. The use of NaNs is copied from the D programming language.

Patch by Jussi Pakkanen.

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