[clang-tools-extra] e86324f - [clang-tidy][NFC] Document bugprone-narrowing-conversions check alias

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 4 07:47:43 PST 2022


Author: Balazs Benics
Date: 2022-03-04T16:47:11+01:00
New Revision: e86324f80031fb5596f9f7437cb8c0b24fcf3143

URL: https://github.com/llvm/llvm-project/commit/e86324f80031fb5596f9f7437cb8c0b24fcf3143
DIFF: https://github.com/llvm/llvm-project/commit/e86324f80031fb5596f9f7437cb8c0b24fcf3143.diff

LOG: [clang-tidy][NFC] Document bugprone-narrowing-conversions check alias

Added: 
    clang-tools-extra/docs/clang-tidy/checks/bugprone-narrowing-conversions.rst

Modified: 
    clang-tools-extra/docs/clang-tidy/checks/list.rst

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-narrowing-conversions.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-narrowing-conversions.rst
new file mode 100644
index 0000000000000..85867273aaa6a
--- /dev/null
+++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-narrowing-conversions.rst
@@ -0,0 +1,10 @@
+.. title:: clang-tidy - bugprone-narrowing-conversions
+.. meta::
+   :http-equiv=refresh: 5;URL=cppcoreguidelines-narrowing-conversions.html
+
+bugprone-narrowing-conversions
+==============================
+
+The bugprone-narrowing-conversions check is an alias, please see
+`cppcoreguidelines-narrowing-conversions <cppcoreguidelines-narrowing-conversions.html>`_
+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 a67de1c4788f9..f2b361e2aecbc 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/list.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/list.rst
@@ -336,6 +336,7 @@ Clang-Tidy Checks
 .. csv-table:: Aliases..
    :header: "Name", "Redirect", "Offers fixes"
 
+   `bugprone-narrowing-conversions <bugprone-narrowing-conversions.html>`_, `cppcoreguidelines-narrowing-conversions <cppcoreguidelines-narrowing-conversions.html>`_,
    `cert-con36-c <cert-con36-c.html>`_, `bugprone-spuriously-wake-up-functions <bugprone-spuriously-wake-up-functions.html>`_,
    `cert-con54-cpp <cert-con54-cpp.html>`_, `bugprone-spuriously-wake-up-functions <bugprone-spuriously-wake-up-functions.html>`_,
    `cert-dcl03-c <cert-dcl03-c.html>`_, `misc-static-assert <misc-static-assert.html>`_, "Yes"


        


More information about the cfe-commits mailing list