Add a new check, cert-env33-c, that diagnoses uses of system(), popen(), and _popen...
authorAaron Ballman <aaron@aaronballman.com>
Mon, 22 Feb 2016 16:01:06 +0000 (16:01 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 22 Feb 2016 16:01:06 +0000 (16:01 +0000)
commit527a4205505155503de1fb1daecea472ba95358b
tree188fda052a14c7f40a22c4ae9629cfba4d9a2958
parentd665a66b0f094f3f85fd30e9d7888481e3035ca0
Add a new check, cert-env33-c, that diagnoses uses of system(), popen(), and _popen() to execute a command processor. This check corresponds to the CERT secure coding rule: https://securecoding.cert.org/confluence/pages/viewpage.action?pageId=2130132

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