Add a clang-tidy check that flags string-to-number conversion functions that have...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 29 Apr 2016 20:56:48 +0000 (20:56 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 29 Apr 2016 20:56:48 +0000 (20:56 +0000)
commitd744e63d903ea0bbf6a4d7a80be019fb908a571f
tree57da8095f5644e02eac4cb3be72f3ee9f5e046eb
parent9190b4add8a84ec662c323cec5daf31dc1508eda
Add a clang-tidy check that flags string-to-number conversion functions that have insufficient error checking, suggesting a better alternative.

This check corresponds to: https://www.securecoding.cert.org/confluence/display/c/ERR34-C.+Detect+errors+when+converting+a+string+to+a+number

llvm-svn: 268100
clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
clang-tools-extra/clang-tidy/cert/CMakeLists.txt
clang-tools-extra/clang-tidy/cert/StrToNumCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/cert/StrToNumCheck.h [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/cert-err34-c.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/cert-err34-c.c [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/cert-err34-c.cpp [new file with mode: 0644]