| commit | a742b84e5d7f5b4d3da098c03ffd893e711cc0c1 | [log] [tgz] |
|---|---|---|
| author | Aaron Ballman <aaron@aaronballman.com> | Tue Oct 13 20:42:41 2015 +0000 |
| committer | Aaron Ballman <aaron@aaronballman.com> | Tue Oct 13 20:42:41 2015 +0000 |
| tree | a272c95e32bff4b3d17677fb586cc136f472d193 | |
| parent | 515ed44776b6ce56bb05f503fc63d0c905f14bf6 [diff] [blame] |
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
diff --git a/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp b/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp index 6fa984b..a943edf 100644 --- a/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
@@ -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 @@ // ERR CheckFactories.registerCheck<SetLongJmpCheck>( "cert-err52-cpp"); + CheckFactories.registerCheck<ThrowByValueCatchByReferenceCheck>( + "cert-err61-cpp"); // C checkers // DCL