Add a new clang-tidy check for cert-msc50-cpp (and cert-msc30-c) that corresponds...
authorAaron Ballman <aaron@aaronballman.com>
Wed, 2 Nov 2016 14:16:36 +0000 (14:16 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 2 Nov 2016 14:16:36 +0000 (14:16 +0000)
commit7bfa6856113854ecf579f2e2ff191df74a2a02dd
tree6a611549887cfc58f8b4662edc02c9faf80abd5a
parent390aaca662b4e22be92116cfaee690988be56820
Add a new clang-tidy check for cert-msc50-cpp (and cert-msc30-c) that corresponds to the CERT C++ secure coding rule: https://securecoding.cert.org/confluence/display/cplusplus/MSC50-CPP.+Do+not+use+std%3A%3Arand%28%29+for+generating+pseudorandom+numbers

Patch by Benedek Kiss

llvm-svn: 285809
clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
clang-tools-extra/clang-tidy/cert/CMakeLists.txt
clang-tools-extra/clang-tidy/cert/LimitedRandomnessCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/cert/LimitedRandomnessCheck.h [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/cert-msc30-c.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/cert-msc50-cpp.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/cert-limited-randomness.c [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/cert-limited-randomness.cpp [new file with mode: 0644]