summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.h
Commit message (Collapse)AuthorAgeFilesLines
* Add the misc-init-local-variables check.Aaron Ballman2019-10-021-0/+42
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. llvm-svn: 373489
OpenPOWER on IntegriCloud