curdeius created this revision. curdeius added reviewers: alexfh, hokein. curdeius added a subscriber: cfe-commits.
This adds cert-err09-cpp alias for completeness, similar to cert-err61-cpp. https://reviews.llvm.org/D25770 Files: clang-tidy/cert/CERTTidyModule.cpp docs/clang-tidy/checks/cert-err09-cpp.rst docs/clang-tidy/checks/list.rst docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst Index: docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst =================================================================== --- docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst +++ docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst @@ -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 Index: docs/clang-tidy/checks/list.rst =================================================================== --- docs/clang-tidy/checks/list.rst +++ docs/clang-tidy/checks/list.rst @@ -10,6 +10,7 @@ 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 Index: docs/clang-tidy/checks/cert-err09-cpp.rst =================================================================== --- /dev/null +++ docs/clang-tidy/checks/cert-err09-cpp.rst @@ -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. Index: clang-tidy/cert/CERTTidyModule.cpp =================================================================== --- clang-tidy/cert/CERTTidyModule.cpp +++ clang-tidy/cert/CERTTidyModule.cpp @@ -43,6 +43,8 @@ CheckFactories.registerCheck<misc::MoveConstructorInitCheck>( "cert-oop11-cpp"); // ERR + CheckFactories.registerCheck<misc::ThrowByValueCatchByReferenceCheck>( + "cert-err09-cpp"); CheckFactories.registerCheck<SetLongJmpCheck>( "cert-err52-cpp"); CheckFactories.registerCheck<StaticObjectExceptionCheck>(
Index: docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst =================================================================== --- docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst +++ docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst @@ -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 Index: docs/clang-tidy/checks/list.rst =================================================================== --- docs/clang-tidy/checks/list.rst +++ docs/clang-tidy/checks/list.rst @@ -10,6 +10,7 @@ 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 Index: docs/clang-tidy/checks/cert-err09-cpp.rst =================================================================== --- /dev/null +++ docs/clang-tidy/checks/cert-err09-cpp.rst @@ -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. Index: clang-tidy/cert/CERTTidyModule.cpp =================================================================== --- clang-tidy/cert/CERTTidyModule.cpp +++ clang-tidy/cert/CERTTidyModule.cpp @@ -43,6 +43,8 @@ CheckFactories.registerCheck<misc::MoveConstructorInitCheck>( "cert-oop11-cpp"); // ERR + CheckFactories.registerCheck<misc::ThrowByValueCatchByReferenceCheck>( + "cert-err09-cpp"); CheckFactories.registerCheck<SetLongJmpCheck>( "cert-err52-cpp"); CheckFactories.registerCheck<StaticObjectExceptionCheck>(
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits