summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/cert
Commit message (Collapse)AuthorAgeFilesLines
...
* Renaming CERT documentation files to use the CERT rule identifiers. This is ↵Aaron Ballman2015-12-274-4/+4
| | | | | | for consistency with other checkers, where the documentation file name matches the checker name. NFC of the checkers. llvm-svn: 256474
* Add a license clarification for use of links and titles of CERT secure ↵Aaron Ballman2015-12-101-0/+22
| | | | | | coding guidelines. llvm-svn: 255248
* Replace the custom AST matcher for nothrow functions with the canonical AST ↵Aaron Ballman2015-12-022-2/+2
| | | | | | matcher from r254516. llvm-svn: 254517
* Add a new checker, cert-err58-cpp, that checks for static or thread_local ↵Aaron Ballman2015-12-015-15/+91
| | | | | | | | objects that use a throwing constructor. This check corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/ERR58-CPP.+Constructors+of+objects+with+static+or+thread+storage+duration+must+not+throw+exceptions llvm-svn: 254415
* Test to ensure the function does not have an unresolved or unevaluated ↵Aaron Ballman2015-11-191-4/+6
| | | | | | exception specification before testing whether the function throws or not. Fixes PR25574. llvm-svn: 253598
* Add a new clang-tidy checker that flags throw expressions whose thrown type ↵Aaron Ballman2015-11-164-0/+88
| | | | | | | | is not nothrow copy constructible. While the compiler is free to elide copy constructor calls in some cases, it is under no obligation to do so, which makes the code a portability concern as well as a security concern. This checker corresponds to the CERT secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/ERR60-CPP.+Exception+objects+must+be+nothrow+copy+constructible llvm-svn: 253246
* Exposing an existing checker under the name cert-err61-cpp, as it ↵Aaron Ballman2015-10-131-0/+3
| | | | | | corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/ERR61-CPP.+Catch+exceptions+by+lvalue+reference llvm-svn: 250221
* Adding a checker (cert-err52-cpp) that detects use of setjmp or longjmp in ↵Aaron Ballman2015-10-084-0/+119
| | | | | | C++ code. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=1834 llvm-svn: 249727
* Loosening the restriction on variadic function definitions so that extern ↵Aaron Ballman2015-10-071-3/+6
| | | | | | "C" function definitions are permissible. llvm-svn: 249555
* Adding a checker (cert-dcl50-cpp) that detects the definition of a C-style ↵Aaron Ballman2015-10-054-0/+76
| | | | | | variadic function in C++ code. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL50-CPP.+Do+not+define+a+C-style+variadic+function llvm-svn: 249343
* Hopefully rectifying a build bot issue with:Aaron Ballman2015-10-022-1/+3
| | | | | | | | http://bb.pgr.jp/builders/i686-mingw32-RA-on-linux/builds/2833/steps/build_llvmclang/logs/stdio Also, drive-by comment fix in a makefile. llvm-svn: 249133
* Adding a new clang-tidy module to house CERT-specific checkers, and map ↵Aaron Ballman2015-10-023-0/+83
existing checkers to CERT secure coding rules and recommendations for both C (https://www.securecoding.cert.org/confluence/display/c/SEI+CERT+C+Coding+Standard) and C++ (https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=637). llvm-svn: 249130
OpenPOWER on IntegriCloud