Exposing an existing checker under the name cert-err61-cpp, as it 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
This commit is contained in:
Aaron Ballman 2015-10-13 20:42:41 +00:00
parent 515ed44776
commit a742b84e5d
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#include "../misc/NewDeleteOverloadsCheck.h"
#include "../misc/NonCopyableObjects.h"
#include "../misc/StaticAssertCheck.h"
#include "../misc/ThrowByValueCatchByReferenceCheck.h"
#include "SetLongJmpCheck.h"
#include "VariadicFunctionDefCheck.h"
@ -39,6 +40,8 @@ public:
// ERR
CheckFactories.registerCheck<SetLongJmpCheck>(
"cert-err52-cpp");
CheckFactories.registerCheck<ThrowByValueCatchByReferenceCheck>(
"cert-err61-cpp");
// C checkers
// DCL