[clang-tools-extra] e028bee - [NFC]update autosar link in clang-tidy doc

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 16:08:27 PST 2024


Author: Congcong Cai
Date: 2024-01-13T08:08:11+08:00
New Revision: e028bee52ffc2ab9883d3d9a7dc66fe7b7c50a65

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

LOG: [NFC]update autosar link in clang-tidy doc

Added: 
    

Modified: 
    clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst
    clang-tools-extra/docs/clang-tidy/checks/misc/unconventional-assign-operator.rst

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst b/clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst
index b5a59fa691da40..86fba6c7e4f7cf 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst
@@ -8,7 +8,7 @@ This check implements detection of local variables which could be declared as
 coding guidelines, such as:
 `ES.25 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es25-declare-an-object-const-or-constexpr-unless-you-want-to-modify-its-value-later-on>`_
 from the C++ Core Guidelines and `AUTOSAR C++14 Rule A7-1-1 (6.7.1 Specifiers)
-<https://www.autosar.org/fileadmin/user_upload/standards/adaptive/17-03/AUTOSAR_RS_CPP14Guidelines.pdf>`_.
+<https://www.autosar.org/fileadmin/standards/R22-11/AP/AUTOSAR_RS_CPP14Guidelines.pdf>`_.
 
 Please note that this check's analysis is type-based only. Variables that are not modified
 but used to create a non-const handle that might escape the scope are not diagnosed

diff  --git a/clang-tools-extra/docs/clang-tidy/checks/misc/unconventional-assign-operator.rst b/clang-tools-extra/docs/clang-tidy/checks/misc/unconventional-assign-operator.rst
index 49e3fd5b6ee428..825a94b45799eb 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/misc/unconventional-assign-operator.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/misc/unconventional-assign-operator.rst
@@ -13,3 +13,6 @@ types and definitions with good return type but wrong ``return`` statements.
     type (e.g. ``int``).
   * Private and deleted operators are ignored.
   * The operator must always return ``*this``.
+
+This check implements `AUTOSAR C++14 Rule A13-2-1
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-constref>`_.


        


More information about the cfe-commits mailing list