Author: mkurdej Date: Wed Oct 19 09:28:19 2016 New Revision: 284596 URL: http://llvm.org/viewvc/llvm-project?rev=284596&view=rev Log: [clang-tidy] Add cert-err09-cpp check alias.
Summary: This adds cert-err09-cpp alias for completeness, similar to cert-err61-cpp. Reviewers: alexfh, hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25770 Added: clang-tools-extra/trunk/docs/clang-tidy/checks/cert-err09-cpp.rst Modified: clang-tools-extra/trunk/clang-tidy/cert/CERTTidyModule.cpp clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst clang-tools-extra/trunk/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst 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=284596&r1=284595&r2=284596&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-tidy/cert/CERTTidyModule.cpp (original) +++ clang-tools-extra/trunk/clang-tidy/cert/CERTTidyModule.cpp Wed Oct 19 09:28:19 2016 @@ -43,6 +43,8 @@ public: CheckFactories.registerCheck<misc::MoveConstructorInitCheck>( "cert-oop11-cpp"); // ERR + CheckFactories.registerCheck<misc::ThrowByValueCatchByReferenceCheck>( + "cert-err09-cpp"); CheckFactories.registerCheck<SetLongJmpCheck>( "cert-err52-cpp"); CheckFactories.registerCheck<StaticObjectExceptionCheck>( Added: clang-tools-extra/trunk/docs/clang-tidy/checks/cert-err09-cpp.rst URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/cert-err09-cpp.rst?rev=284596&view=auto ============================================================================== --- clang-tools-extra/trunk/docs/clang-tidy/checks/cert-err09-cpp.rst (added) +++ clang-tools-extra/trunk/docs/clang-tidy/checks/cert-err09-cpp.rst Wed Oct 19 09:28:19 2016 @@ -0,0 +1,10 @@ +.. title:: clang-tidy - cert-err09-cpp +.. meta:: + :http-equiv=refresh: 5;URL=misc-throw-by-value-catch-by-reference.html + +cert-err09-cpp +============== + +The cert-err09-cpp check is an alias, please see +`misc-throw-by-value-catch-by-reference <misc-throw-by-value-catch-by-reference.html>`_ +for more information. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst?rev=284596&r1=284595&r2=284596&view=diff ============================================================================== --- clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst (original) +++ clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst Wed Oct 19 09:28:19 2016 @@ -10,6 +10,7 @@ Clang-Tidy Checks cert-dcl54-cpp (redirects to misc-new-delete-overloads) <cert-dcl54-cpp> cert-dcl59-cpp (redirects to google-build-namespaces) <cert-dcl59-cpp> cert-env33-c + cert-err09-cpp (redirects to misc-throw-by-value-catch-by-reference) <cert-err09-cpp> cert-err34-c cert-err52-cpp cert-err58-cpp Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst?rev=284596&r1=284595&r2=284596&view=diff ============================================================================== --- clang-tools-extra/trunk/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst (original) +++ clang-tools-extra/trunk/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst Wed Oct 19 09:28:19 2016 @@ -3,6 +3,7 @@ misc-throw-by-value-catch-by-reference ====================================== +"cert-err09-cpp" redirects here as an alias for this check. "cert-err61-cpp" redirects here as an alias for this check. Finds violations of the rule "Throw by value, catch by reference" presented for _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits