[clang-tidy][NFC] Fix links in cppcoreguidelines module
authorPiotr Zegar <me@piotrzegar.pl>
Sat, 22 Jul 2023 19:22:21 +0000 (19:22 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Sat, 22 Jul 2023 19:23:06 +0000 (19:23 +0000)
Change links in cppcoreguidelines module from github
repository to isocpp.github.io. Unify format.

33 files changed:
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-do-while.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-goto.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-reference-coroutine-parameters.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/init-variables.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/interfaces-global-init.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/macro-usage.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/misleading-capture-default-by-value.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/missing-std-forward.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/narrowing-conversions.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/no-malloc.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/noexcept-destructor.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/noexcept-move-operations.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/noexcept-swap.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/owning-memory.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/prefer-member-initializer.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-bounds-array-to-pointer-decay.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-bounds-constant-array-index.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-bounds-pointer-arithmetic.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-const-cast.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-cstyle-cast.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-member-init.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-reinterpret-cast.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-static-cast-downcast.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-union-access.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-vararg.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/rvalue-reference-param-not-moved.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/slicing.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/special-member-functions.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/use-default-member-init.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/virtual-class-destructor.rst
clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst

index 773c518..5783280 100644 (file)
@@ -43,8 +43,9 @@ Examples:
     int&& x;
   };
 
-The check implements
-`rule C.12 of C++ Core Guidelines <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c12-dont-make-data-members-const-or-references>`_.
+This check implements `C.12
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-constref>`_
+from the C++ Core Guidelines.
 
 Further reading:
 `Data members: Never const <https://quuxplusone.github.io/blog/2022/01/23/dont-const-all-the-things/#data-members-never-const>`_.
index 9a87666..4b195c9 100644 (file)
@@ -7,8 +7,9 @@ Warns when using ``do-while`` loops. They are less readable than plain ``while``
 loops, since the termination condition is at the end and the condition is not
 checked prior to the first iteration. This can lead to subtle bugs.
 
-The check implements
-`rule ES.75 of C++ Core Guidelines <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Res-do>`_.
+This check implements `ES.75
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-do>`_
+from the C++ Core Guidelines.
 
 Examples:
 
index 383adb4..71b579a 100644 (file)
@@ -6,9 +6,11 @@ cppcoreguidelines-avoid-goto
 The usage of ``goto`` for control flow is error prone and should be replaced
 with looping constructs. Only forward jumps in nested loops are accepted.
 
-This check implements `ES.76 <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#es76-avoid-goto>`_
-from the CppCoreGuidelines and
-`6.3.1 from High Integrity C++ <http://www.codingstandard.com/rule/6-3-1-ensure-that-the-labels-for-a-jump-statement-or-a-switch-condition-appear-later-in-the-same-or-an-enclosing-block/>`_.
+This check implements `ES.76
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es76-avoid-goto>`_
+from the C++ Core Guidelines and
+`6.3.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements>`_
+from High Integrity C++ Coding Standard.
 
 For more information on why to avoid programming
 with ``goto`` you can read the famous paper `A Case against the GO TO Statement. <https://www.cs.utexas.edu/users/EWD/ewd02xx/EWD215.PDF>`_.
index 7d729f2..21c20af 100644 (file)
@@ -3,8 +3,13 @@
 cppcoreguidelines-avoid-non-const-global-variables
 ==================================================
 
-Finds non-const global variables as described in `I.2 of C++ Core Guidelines <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Ri-global>`_ .
-As `R.6 of C++ Core Guidelines <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rr-global>`_ is a duplicate of rule I.2 it also covers that rule.
+Finds non-const global variables as described in `I.2
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i2-avoid-non-const-global-variables>`_
+of C++ Core Guidelines.
+As `R.6 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-global>`_
+of C++ Core Guidelines is a duplicate of rule `I.2
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i2-avoid-non-const-global-variables>`_
+it also covers that rule.
 
 .. code-block:: c++
 
index d6186fd..b44430a 100644 (file)
@@ -16,5 +16,6 @@ Examples:
     if (val) ...
   }
 
-This check implements
-`CppCoreGuideline CP.53 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-reference-parameters>`_.
+This check implements `CP.53
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-reference-parameters>`_
+from the C++ Core Guidelines.
index c030467..0465436 100644 (file)
@@ -7,6 +7,11 @@ Checks whether there are local variables that are declared without an initial
 value. These may lead to unexpected behavior if there is a code path that reads
 the variable before assigning to it.
 
+This rule is part of the `Type safety (Type.5)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-init>`_
+profile and `ES.20 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-always>`_
+from the C++ Core Guidelines.
+
 Only integers, booleans, floats, doubles and pointers are checked. The fix
 option initializes all detected values with the value of zero. An exception is
 float and double types, which are initialized to NaN.
index 4907858..f8e9da9 100644 (file)
@@ -6,8 +6,9 @@ cppcoreguidelines-interfaces-global-init
 This check flags initializers of globals that access extern objects,
 and therefore can lead to order-of-initialization problems.
 
-This rule is part of the "Interfaces" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Ri-global-init
+This check implements `I.22
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Ri-global-init>`_
+from the C++ Core Guidelines.
 
 Note that currently this does not flag calls to non-constexpr functions, and
 therefore globals could still be accessed from functions themselves.
index 6c05a9f..8b763c2 100644 (file)
@@ -7,8 +7,8 @@ Finds macro usage that is considered problematic because better language
 constructs exist for the task.
 
 The relevant sections in the C++ Core Guidelines are
-`ES.31 <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#es31-dont-use-macros-for-constants-or-functions>`_, and
-`ES.32 <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#es32-use-all_caps-for-all-macro-names>`_.
+`ES.31 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es31-dont-use-macros-for-constants-or-functions>`_, and
+`ES.32 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es32-use-all_caps-for-all-macro-names>`_.
 
 Examples:
 
index 286df16..f2cc86a 100644 (file)
@@ -43,5 +43,6 @@ Examples:
         }
       };
 
-This check implements
-`CppCoreGuideline F.54 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f54-when-writing-a-lambda-that-captures-this-or-any-class-data-member-dont-use--default-capture>`_.
+This check implements `F.54
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f54-when-writing-a-lambda-that-captures-this-or-any-class-data-member-dont-use--default-capture>`_
+from the C++ Core Guidelines.
index dbc25db..0c311b5 100644 (file)
@@ -35,5 +35,6 @@ Example:
     f(1, 2); // Incorrect - may not invoke the desired qualified function operator
   }
 
-This check implements
-`CppCoreGuideline F.19 <http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-forward>`_.
+This check implements `F.19
+<http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-forward>`_
+from the C++ Core Guidelines.
index 3ba5bdc..04260e7 100644 (file)
@@ -7,10 +7,9 @@ Checks for silent narrowing conversions, e.g: ``int i = 0; i += 0.1;``. While
 the issue is obvious in this former example, it might not be so in the
 following: ``void MyClass::f(double d) { int_member_ += d; }``.
 
-This rule is part of the "Expressions and statements" profile of the C++ Core
-Guidelines, corresponding to rule ES.46. See
-
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#es46-avoid-lossy-narrowing-truncating-arithmetic-conversions.
+This check implements `ES.46
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es46-avoid-lossy-narrowing-truncating-arithmetic-conversions>`_
+from the C++ Core Guidelines.
 
 We enforce only part of the guideline, more specifically, we flag narrowing conversions from:
  - an integer to a narrower integer (e.g. ``char`` to ``unsigned char``)
index cc5c001..237520a 100644 (file)
@@ -8,7 +8,10 @@ This check handles C-Style memory management using ``malloc()``, ``realloc()``,
 of an appropriate RAII object.
 Furthermore, it can be configured to check against a user-specified list of functions
 that are used for memory management (e.g. ``posix_memalign()``).
-See `C++ Core Guidelines <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rr-mallocfree>`_.
+
+This check implements `R.10
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-mallocfree>`_
+from the C++ Core Guidelines.
 
 There is no attempt made to provide fix-it hints, since manual resource
 management isn't easily transformed automatically into RAII.
index 356c9ef..2a5ce35 100644 (file)
@@ -6,7 +6,7 @@ cppcoreguidelines-noexcept-destructor
 =====================================
 
 This check implements `C.37 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c37-make-destructors-noexcept>`_
-from the CppCoreGuidelines.
+from the C++ Core Guidelines.
 
 The cppcoreguidelines-noexcept-destructor check is an alias, please see
 `performance-noexcept-destructor <../performance/noexcept-destructor.html>`_
index eace9b8..83e1bff 100644 (file)
@@ -6,7 +6,7 @@ cppcoreguidelines-noexcept-move-operations
 ==========================================
 
 This check implements `C.66 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c66-make-move-operations-noexcept>`_
-from the CppCoreGuidelines.
+from the C++ Core Guidelines.
 
 The cppcoreguidelines-noexcept-move-operations check is an alias, please see
 `performance-noexcept-move-constructor <../performance/noexcept-move-constructor.html>`_
index 3a6cb2b..a8e5da6 100644 (file)
@@ -8,7 +8,7 @@ cppcoreguidelines-noexcept-swap
 This check implements `C.83 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c83-for-value-like-types-consider-providing-a-noexcept-swap-function>`_
 , `C.84 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c84-a-swap-function-must-not-fail>`_
 and `C.85 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c85-make-swap-noexcept>`_
-from the CppCoreGuidelines.
+from the C++ Core Guidelines.
 
 The cppcoreguidelines-noexcept-swap check is an alias, please see
 `performance-noexcept-swap <../performance/noexcept-swap.html>`_
index 554d8a5..3c91d09 100644 (file)
@@ -7,7 +7,15 @@ This check implements the type-based semantics of ``gsl::owner<T*>``, which allo
 static analysis on code, that uses raw pointers to handle resources like
 dynamic memory, but won't introduce RAII concepts.
 
-The relevant sections in the `C++ Core Guidelines <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md>`_ are I.11, C.33, R.3 and GSL.Views
+This check implements `I.11
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i11-never-transfer-ownership-by-a-raw-pointer-t-or-reference-t>`_,
+`C.33
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c33-if-a-class-has-an-owning-pointer-member-define-a-destructor>`_,
+`R.3
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#r3-a-raw-pointer-a-t-is-non-owning>`_
+and `GSL.Views
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#SS-views>`_
+from the C++ Core Guidelines.
 The definition of a ``gsl::owner<T*>`` is straight forward
 
 .. code-block:: c++
@@ -15,7 +23,7 @@ The definition of a ``gsl::owner<T*>`` is straight forward
   namespace gsl { template <typename T> owner = T; }
 
 It is therefore simple to introduce the owner even without using an implementation of
-the `Guideline Support Library <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#gsl-guideline-support-library>`_.
+the `Guideline Support Library <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#S-gsl>`_.
 
 All checks are purely type based and not (yet) flow sensitive.
 
index 7381111..32dad44 100644 (file)
@@ -9,7 +9,9 @@ the readability of the code but also positively affects its performance.
 Class-member assignments inside a control statement or following the first
 control statement are ignored.
 
-This check implements `C.49 <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c49-prefer-initialization-to-assignment-in-constructors>`_ from the CppCoreGuidelines.
+This check implements `C.49
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c49-prefer-initialization-to-assignment-in-constructors>`_
+from the C++ Core Guidelines.
 
 If the language version is `C++ 11` or above, the constructor is the default
 constructor of the class, the field is not a bitfield (only in case of earlier
@@ -17,7 +19,9 @@ language version than `C++ 20`), furthermore the assigned value is a literal,
 negated literal or ``enum`` constant then the preferred place of the
 initialization is at the class member declaration.
 
-This latter rule is `C.48 <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c48-prefer-in-class-initializers-to-member-initializers-in-constructors-for-constant-initializers>`_ from CppCoreGuidelines.
+This latter rule is `C.48
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c48-prefer-in-class-initializers-to-member-initializers-in-constructors-for-constant-initializers>`_
+from the C++ Core Guidelines.
 
 Please note, that this check does not enforce this latter rule for
 initializations already implemented as member initializers. For that purpose
index 172df2b..c890e16 100644 (file)
@@ -8,5 +8,6 @@ This check flags all array to pointer decays.
 Pointers should not be used as arrays. ``span<T>`` is a bounds-checked, safe
 alternative to using pointers to access arrays.
 
-This rule is part of the "Bounds safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-bounds-decay.
+This rule is part of the `Bounds safety (Bounds 3)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-bounds-decay>`_
+profile from the C++ Core Guidelines.
index 2a598f2..4e87767 100644 (file)
@@ -8,8 +8,9 @@ This check flags all array subscript expressions on static arrays and
 are out of bounds (for ``std::array``). For out-of-bounds checking of static
 arrays, see the `-Warray-bounds` Clang diagnostic.
 
-This rule is part of the "Bounds safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-bounds-arrayindex.
+This rule is part of the `Bounds safety (Bounds 2)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-bounds-arrayindex>`_
+profile from the C++ Core Guidelines.
 
 Optionally, this check can generate fixes using ``gsl::at`` for indexing.
 
index e0660df..12a8f60 100644 (file)
@@ -10,5 +10,6 @@ Pointers should only refer to single objects, and pointer arithmetic is fragile
 and easy to get wrong. ``span<T>`` is a bounds-checked, safe type for accessing
 arrays of data.
 
-This rule is part of the "Bounds safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-bounds-arithmetic.
+This rule is part of the `Bounds safety (Bounds 1)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-bounds-arithmetic>`_
+profile from the C++ Core Guidelines.
index f3f0fb4..eb572e6 100644 (file)
@@ -8,5 +8,6 @@ This check flags all uses of ``const_cast`` in C++ code.
 Modifying a variable that was declared const is undefined behavior, even with
 ``const_cast``.
 
-This rule is part of the "Type safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-constcast.
+This rule is part of the `Type safety (Type 3)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-constcast>`_
+profile from the C++ Core Guidelines.
index 1c21dd0..daa93c6 100644 (file)
@@ -14,5 +14,6 @@ the following that is possible: a ``const_cast``, a ``static_cast``, a
 ``reinterpret_cast`` followed by a ``const_cast``. This rule bans
 ``(T)expression`` only when used to perform an unsafe cast.
 
-This rule is part of the "Type safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-cstylecast.
+This rule is part of the `Type safety (Type.4)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-cstylecast>`_
+profile from the C++ Core Guidelines.
index b75b918..ae55bf7 100644 (file)
@@ -38,6 +38,6 @@ Options
    If set to `true`, the check will provide fix-its with literal initializers
    \( ``int i = 0;`` \) instead of curly braces \( ``int i{};`` \).
 
-This rule is part of the "Type safety" profile of the C++ Core
-Guidelines, corresponding to rule Type.6. See
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-memberinit.
+This rule is part of the `Type safety (Type.6)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-memberinit>`_
+profile from the C++ Core Guidelines.
index 2ef76f2..a094682 100644 (file)
@@ -9,5 +9,6 @@ Use of these casts can violate type safety and cause the program to access a
 variable that is actually of type ``X`` to be accessed as if it were of an
 unrelated type ``Z``.
 
-This rule is part of the "Type safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-reinterpretcast.
+This rule is part of the `Type safety (Type.1.1)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-reinterpretcast>`_
+profile from the C++ Core Guidelines.
index 880b8b0..bcb3533 100644 (file)
@@ -11,5 +11,6 @@ Use of these casts can violate type safety and cause the program to access a
 variable that is actually of type ``X`` to be accessed as if it were of an
 unrelated type ``Z``.
 
-This rule is part of the "Type safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-downcast.
+This rule is part of the `Type safety (Type.2)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-downcast>`_
+profile from the C++ Core Guidelines.
index cdcf713..3a5af53 100644 (file)
@@ -12,5 +12,6 @@ had its destructor called. This is fragile because it cannot generally be
 enforced to be safe in the language and so relies on programmer discipline to
 get it right.
 
-This rule is part of the "Type safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-unions.
+This rule is part of the `Type safety (Type.7)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-unions>`_
+profile from the C++ Core Guidelines.
index 26fcd0c..823b0ea 100644 (file)
@@ -13,5 +13,6 @@ Passing to varargs assumes the correct type will be read. This is fragile
 because it cannot generally be enforced to be safe in the language and so relies
 on programmer discipline to get it right.
 
-This rule is part of the "Type safety" profile of the C++ Core Guidelines, see
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-varargs.
+This rule is part of the `Type safety (Type.8)
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-varargs>`_
+profile from the C++ Core Guidelines.
index f4c58b3..9ab4ae7 100644 (file)
@@ -69,5 +69,7 @@ Options
       T other = std::forward<T>(t);
     }
 
-This check implements
-`CppCoreGuideline F.18 <http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f18-for-will-move-from-parameters-pass-by-x-and-stdmove-the-parameter>`_.
+This check implements `F.18
+<http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f18-for-will-move-from-parameters-pass-by-x-and-stdmove-the-parameter>`_
+from the C++ Core Guidelines.
+
index 44f3dca..dd81365 100644 (file)
@@ -20,6 +20,8 @@ misleading especially for member function slicing, for example:
   D d;
   use(d);  // Slice.
 
-See the relevant C++ Core Guidelines sections for details:
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#es63-dont-slice
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c145-access-polymorphic-objects-through-pointers-and-references
+This check implements `ES.63
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es63-dont-slice>`_
+and `C.145
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c145-access-polymorphic-objects-through-pointers-and-references>`_
+from the C++ Core Guidelines.
index 2d8b842..176956d 100644 (file)
@@ -15,10 +15,9 @@ and it is advised that all five are defaulted or explicitly defined.
 Note that defining a function with ``= delete`` is considered to be a
 definition.
 
-This rule is part of the "Constructors, assignments, and destructors" profile of the C++ Core
-Guidelines, corresponding to rule C.21. See
-
-https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c21-if-you-define-or-delete-any-default-operation-define-or-delete-them-all.
+This check implements `C.21
+<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-five>`_
+from the C++ Core Guidelines.
 
 Options
 -------
index 7f435e5..f9fa6e4 100644 (file)
@@ -5,7 +5,8 @@
 cppcoreguidelines-use-default-member-init
 =========================================
 
-This check implements `C.48 <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c48-prefer-in-class-initializers-to-member-initializers-in-constructors-for-constant-initializers>`_ from the CppCoreGuidelines.
+This check implements `C.48 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-in-class-initializer>`_
+from the C++ Core Guidelines.
 
 The cppcoreguidelines-use-default-member-init check is an alias, please see
 `modernize-use-default-member-init <../modernize/use-default-member-init.html>`_
index ae12d56..752fd81 100644 (file)
@@ -9,7 +9,7 @@ in one of these ways to prevent undefined behavior.
 
 This check implements
 `C.35 <http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-dtor-virtual>`_
-from the CppCoreGuidelines.
+from the C++ Core Guidelines.
 
 Note that this check will diagnose a class with a virtual method regardless of
 whether the class is used as a base class or not.
index cc6ae33..f51d792 100644 (file)
@@ -6,8 +6,9 @@ misc-const-correctness
 This check implements detection of local variables which could be declared as
 ``const`` but are not. Declaring variables as ``const`` is required or recommended by many
 coding guidelines, such as:
-`CppCoreGuidelines ES.25 <https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#es25-declare-an-object-const-or-constexpr-unless-you-want-to-modify-its-value-later-on>`_
-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>`_.
+`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>`_.
 
 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