From 2cf1dc2add97f1f54b5561e83183d9b140cf422f Mon Sep 17 00:00:00 2001 From: Marek Kurdej Date: Wed, 19 Oct 2016 14:28:19 +0000 Subject: [PATCH] [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 llvm-svn: 284596 --- clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp | 2 ++ clang-tools-extra/docs/clang-tidy/checks/cert-err09-cpp.rst | 10 ++++++++++ clang-tools-extra/docs/clang-tidy/checks/list.rst | 1 + .../checks/misc-throw-by-value-catch-by-reference.rst | 1 + 4 files changed, 14 insertions(+) create mode 100644 clang-tools-extra/docs/clang-tidy/checks/cert-err09-cpp.rst diff --git a/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp b/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp index 1a0d9c5..c44d6ee 100644 --- a/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp @@ -43,6 +43,8 @@ public: CheckFactories.registerCheck( "cert-oop11-cpp"); // ERR + CheckFactories.registerCheck( + "cert-err09-cpp"); CheckFactories.registerCheck( "cert-err52-cpp"); CheckFactories.registerCheck( diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert-err09-cpp.rst b/clang-tools-extra/docs/clang-tidy/checks/cert-err09-cpp.rst new file mode 100644 index 0000000..1494bcc0 --- /dev/null +++ b/clang-tools-extra/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 `_ +for more information. diff --git a/clang-tools-extra/docs/clang-tidy/checks/list.rst b/clang-tools-extra/docs/clang-tidy/checks/list.rst index fdf24f40..812f3e0 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/list.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/list.rst @@ -10,6 +10,7 @@ Clang-Tidy Checks cert-dcl54-cpp (redirects to misc-new-delete-overloads) cert-dcl59-cpp (redirects to google-build-namespaces) cert-env33-c + cert-err09-cpp (redirects to misc-throw-by-value-catch-by-reference) cert-err34-c cert-err52-cpp cert-err58-cpp diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst index 604be24..1a6d6b3 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-throw-by-value-catch-by-reference.rst +++ b/clang-tools-extra/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 -- 2.7.4