You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[clang-tidy][NFC][DOC] Update links to HICPP standard
Old links pointed out to old domain, and then redirected to correct
one, but to wrong pages. Changed links from old to new domain and page.
Fixes: llvm#65064
Rule `6.3.1 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/>`_
10
+
Rule `6.3.1 High Integrity C++ <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements>`_
11
11
requires that ``goto`` only skips parts of a block and is not used for other
It enforces the `rule 6.1.1 <http://www.codingstandard.com/rule/6-1-1-enclose-the-body-of-a-selection-or-an-iteration-statement-in-a-compound-statement/>`_.
11
+
It enforces the `rule 6.1.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements>`_.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/explicit-conversions.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ hicpp-explicit-conversions
6
6
==========================
7
7
8
8
This check is an alias for :doc:`google-explicit-constructor <../google/explicit-constructor>`.
9
-
Used to enforce parts of `rule 5.4.1 <http://www.codingstandard.com/rule/5-4-1-only-use-casting-forms-static_cast-excl-void-dynamic_cast-or-explicit-constructor-call/>`_.
9
+
Used to enforce parts of `rule 5.4.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard-expressions>`_.
10
10
This check will enforce that constructors and conversion operators are marked `explicit`.
11
11
Other forms of casting checks are implemented in other places.
12
12
The following checks can be used to check for more forms of casting:
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/invalid-access-moved.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,4 @@ hicpp-invalid-access-moved
7
7
8
8
This check is an alias for :doc:`bugprone-use-after-move <../bugprone/use-after-move>`.
9
9
10
-
Implements parts of the `rule 8.4.1 <http://www.codingstandard.com/rule/8-4-1-do-not-access-an-invalid-object-or-an-object-with-indeterminate-value/>`_ to check if moved-from objects are accessed.
10
+
Implements parts of the `rule 8.4.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/definitions>`_ to check if moved-from objects are accessed.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/multiway-paths-covered.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ hicpp-multiway-paths-covered
5
5
6
6
This check discovers situations where code paths are not fully-covered.
7
7
It furthermore suggests using ``if`` instead of ``switch`` if the code will be more clear.
8
-
The `rule 6.1.2 <http://www.codingstandard.com/rule/6-1-2-explicitly-cover-all-paths-through-multi-way-selection-statements/>`_
9
-
and `rule 6.1.4 <http://www.codingstandard.com/rule/6-1-4-ensure-that-a-switch-statement-has-at-least-two-case-labels-distinct-from-the-default-label/>`_
8
+
The `rule 6.1.2 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements>`_
9
+
and `rule 6.1.4 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements>`_
10
10
of the High Integrity C++ Coding Standard are enforced.
11
11
12
12
``if-else if`` chains that miss a final ``else`` branch might lead to unexpected
@@ -57,7 +57,7 @@ Similar arguments hold for ``switch`` statements which do not cover all possible
57
57
}
58
58
59
59
60
-
The `rule 6.1.4 <http://www.codingstandard.com/rule/6-1-4-ensure-that-a-switch-statement-has-at-least-two-case-labels-distinct-from-the-default-label/>`_
60
+
The `rule 6.1.4 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/statements>`_
61
61
requires every ``switch`` statement to have at least two ``case`` labels other than a `default` label.
62
62
Otherwise, the ``switch`` could be better expressed with an ``if`` statement.
63
63
Degenerated ``switch`` statements without any labels are caught as well.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/noexcept-move.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,4 @@ hicpp-noexcept-move
7
7
8
8
This check is an alias for :doc:`performance-noexcept-move-constructor
9
9
<../performance/noexcept-move-constructor>`.
10
-
Checks `rule 12.5.4 <http://www.codingstandard.com/rule/12-5-4-declare-noexcept-the-move-constructor-and-move-assignment-operator>`_ to mark move assignment and move construction `noexcept`.
10
+
Checks `rule 12.5.4 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/special-member-functions>`_ to mark move assignment and move construction `noexcept`.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/signed-bitwise.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ hicpp-signed-bitwise
6
6
Finds uses of bitwise operations on signed integer types, which may lead to
7
7
undefined or implementation defined behavior.
8
8
9
-
The according rule is defined in the `High Integrity C++ Standard, Section 5.6.1 <http://www.codingstandard.com/section/5-6-shift-operators/>`_.
9
+
The according rule is defined in the `High Integrity C++ Standard, Section 5.6.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard-expressions>`_.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/special-member-functions.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@ hicpp-special-member-functions
6
6
==============================
7
7
8
8
This check is an alias for :doc:`cppcoreguidelines-special-member-functions <../cppcoreguidelines/special-member-functions>`.
9
-
Checks that special member functions have the correct signature, according to `rule 12.5.7 <http://www.codingstandard.com/rule/12-5-7-declare-assignment-operators-with-the-ref-qualifier/>`_.
9
+
Checks that special member functions have the correct signature, according to `rule 12.5.7 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/special-member-functions>`_.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/static-assert.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,4 @@ hicpp-static-assert
7
7
8
8
The `hicpp-static-assert` check is an alias, please see
9
9
:doc:`misc-static-assert <../misc/static-assert>` for more information.
10
-
It enforces the `rule 7.1.10 <http://www.codingstandard.com/rule/6-1-1-enclose-the-body-of-a-selection-or-an-iteration-statement-in-a-compound-statement/>`_.
10
+
It enforces the `rule 7.1.10 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/declarations>`_.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/use-auto.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,4 @@ hicpp-use-auto
7
7
8
8
The `hicpp-use-auto` check is an alias, please see
9
9
:doc:`modernize-use-auto <../modernize/use-auto>` for more information.
10
-
It enforces the `rule 7.1.8 <http://www.codingstandard.com/rule/7-1-8-use-auto-id-expr-when-declaring-a-variable-to-have-the-same-type-as-its-initializer-function-call/>`_.
10
+
It enforces the `rule 7.1.8 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/declarations>`_.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/hicpp/use-equals-default.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@ hicpp-use-equals-default
6
6
========================
7
7
8
8
This check is an alias for :doc:`modernize-use-equals-default <../modernize/use-equals-default>`.
9
-
Implements `rule 12.5.1 <http://www.codingstandard.com/rule/12-5-1-define-explicitly-default-or-delete-implicit-special-member-functions-of-concrete-classes/>`_ to explicitly default special member functions.
9
+
Implements `rule 12.5.1 <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard/special-member-functions>`_ to explicitly default special member functions.
Copy file name to clipboardExpand all lines: clang-tools-extra/docs/clang-tidy/checks/readability/magic-numbers.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Many coding guidelines advise replacing the magic values with symbolic
10
10
constants to improve readability. Here are a few references:
11
11
12
12
* `Rule ES.45: Avoid "magic constants"; use symbolic constants in C++ Core Guidelines <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-magic>`_
13
-
* `Rule 5.1.1 Use symbolic names instead of literal values in code in High Integrity C++ <http://www.codingstandard.com/rule/5-1-1-use-symbolic-names-instead-of-literal-values-in-code/>`_
13
+
* `Rule 5.1.1 Use symbolic names instead of literal values in code in High Integrity C++ <https://www.perforce.com/resources/qac/high-integrity-cpp-coding-standard-expressions>`_
14
14
* Item 17 in "C++ Coding Standards: 101 Rules, Guidelines and Best
15
15
Practices" by Herb Sutter and Andrei Alexandrescu
16
16
* Chapter 17 in "Clean Code - A handbook of agile software craftsmanship."
0 commit comments