Author: aaronballman Date: Tue Oct 13 15:42:41 2015 New Revision: 250221 URL: http://llvm.org/viewvc/llvm-project?rev=250221&view=rev Log: 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
Modified: clang-tools-extra/trunk/clang-tidy/cert/CERTTidyModule.cpp Modified: clang-tools-extra/trunk/clang-tidy/cert/CERTTidyModule.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/cert/CERTTidyModule.cpp?rev=250221&r1=250220&r2=250221&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/cert/CERTTidyModule.cpp (original) +++ clang-tools-extra/trunk/clang-tidy/cert/CERTTidyModule.cpp Tue Oct 13 15:42:41 2015 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits