[PATCH] D70823: [clang-tidy] Adding cert-pos34-c check
Zurab Tsinadze via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 28 06:52:25 PST 2019
zukatsinadze created this revision.
zukatsinadze added reviewers: aaron.ballman, alexfh, hokein, Charusso.
zukatsinadze added projects: clang-tools-extra, clang.
Herald added subscribers: cfe-commits, mgehre, xazax.hun, mgorny.
According to
https://wiki.sei.cmu.edu/confluence/display/c/POS34-C.+Do+not+call+putenv%28%29+with+a+pointer+to+an+automatic+variable+as+the+argument
cert-pos34-c check is created. The check warns if `putenv` function is
called with automatic storage variable as an argument.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D70823
Files:
clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
clang-tools-extra/clang-tidy/cert/CMakeLists.txt
clang-tools-extra/clang-tidy/cert/PutenvWithAutoCheck.cpp
clang-tools-extra/clang-tidy/cert/PutenvWithAutoCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cert-pos34-c.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/cert-pos34-c.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70823.231425.patch
Type: text/x-patch
Size: 8558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191128/b05aaea5/attachment-0001.bin>
More information about the cfe-commits
mailing list