Skip to content

Commit 9f8db2f

Browse files
author
Carlos Gálvez
committed
[clang-tidy][doc] Fix broken CppCoreGuidelines links
They recently changed all their anchors to start with lowercase: isocpp/CppCoreGuidelines#2304 So now our links are broken :) This patch fixes them.
1 parent 26b82e5 commit 9f8db2f

28 files changed

+30
-30
lines changed

clang-tools-extra/docs/clang-tidy/checks/bugprone/switch-missing-default-case.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ Example:
5151
on non-enum types where the compiler warnings may not be present.
5252

5353
.. seealso::
54-
The `CppCoreGuideline ES.79 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-default>`_
54+
The `CppCoreGuideline ES.79 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#res-default>`_
5555
provide guidelines on switch statements, including the recommendation to
5656
always provide a default case.

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-capturing-lambda-coroutines.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use-after-free errors and suggests avoiding captures or ensuring the lambda
88
closure object has a guaranteed lifetime.
99

1010
This check implements `CP.51
11-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-capture>`_
11+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rcoro-capture>`_
1212
from the C++ Core Guidelines.
1313

1414
Using coroutine lambdas with non-empty capture lists can be risky, as capturing

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-const-or-ref-data-members.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Examples:
4444
};
4545

4646
This check implements `C.12
47-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-constref>`_
47+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rc-constref>`_
4848
from the C++ Core Guidelines.
4949

5050
Further reading:

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-do-while.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ condition is not checked prior to the first iteration.
99
This can lead to subtle bugs.
1010

1111
This check implements `ES.75
12-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-do>`_
12+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#res-do>`_
1313
from the C++ Core Guidelines.
1414

1515
Examples:

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cppcoreguidelines-avoid-non-const-global-variables
66
Finds non-const global variables as described in `I.2
77
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i2-avoid-non-const-global-variables>`_
88
of C++ Core Guidelines.
9-
As `R.6 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-global>`_
9+
As `R.6 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rr-global>`_
1010
of C++ Core Guidelines is a duplicate of rule `I.2
1111
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#i2-avoid-non-const-global-variables>`_
1212
it also covers that rule.

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/avoid-reference-coroutine-parameters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Examples:
1818
}
1919

2020
This check implements `CP.53
21-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-reference-parameters>`_
21+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rcoro-reference-parameters>`_
2222
from the C++ Core Guidelines.

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/init-variables.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ value. These may lead to unexpected behavior if there is a code path that reads
88
the variable before assigning to it.
99

1010
This rule is part of the `Type safety (Type.5)
11-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-type-init>`_
12-
profile and `ES.20 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-always>`_
11+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#pro-type-init>`_
12+
profile and `ES.20 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#res-always>`_
1313
from the C++ Core Guidelines.
1414

1515
Only integers, booleans, floats, doubles and pointers are checked. The fix

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/interfaces-global-init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This check flags initializers of globals that access extern objects,
77
and therefore can lead to order-of-initialization problems.
88

99
This check implements `I.22
10-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Ri-global-init>`_
10+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#ri-global-init>`_
1111
from the C++ Core Guidelines.
1212

1313
Note that currently this does not flag calls to non-constexpr functions, and

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/missing-std-forward.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ Options
4343
Specify the function used for forwarding. Default is `::std::forward`.
4444

4545
This check implements `F.19
46-
<http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-forward>`_
46+
<http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rf-forward>`_
4747
from the C++ Core Guidelines.

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/no-malloc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Furthermore, it can be configured to check against a user-specified list of
1010
functions that are used for memory management (e.g. ``posix_memalign()``).
1111

1212
This check implements `R.10
13-
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-mallocfree>`_
13+
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#rr-mallocfree>`_
1414
from the C++ Core Guidelines.
1515

1616
There is no attempt made to provide fix-it hints, since manual resource

0 commit comments

Comments
 (0)