Skip to content

Commit 84388d2

Browse files
committed
[clang-tidy] Update references to 'google-build-namespaces' to 'misc-anonymous-namespace-in-header' and create new documentation for the latter
1 parent 6958348 commit 84388d2

File tree

5 files changed

+27
-15
lines changed

5 files changed

+27
-15
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.. title:: clang-tidy - cert-dcl59-cpp
22
.. meta::
3-
:http-equiv=refresh: 5;URL=../google/build-namespaces.html
3+
:http-equiv=refresh: 5;URL=../misc/anonymous-namespace-in-header.html
44

55
cert-dcl59-cpp
66
==============
77

88
The `cert-dcl59-cpp` check is an alias, please see
9-
:doc:`google-build-namespaces <../google/build-namespaces>`
9+
:doc:`misc-anonymous-namespace-in-header <../misc/anonymous-namespace-in-header>`
1010
for more information.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.. title:: clang-tidy - fuchsia-header-anon-namespaces
22
.. meta::
3-
:http-equiv=refresh: 5;URL=../google/build-namespaces.html
3+
:http-equiv=refresh: 5;URL=../misc/anonymous-namespace-in-header.html
44

55
fuchsia-header-anon-namespaces
66
==============================
77

88
The fuchsia-header-anon-namespaces check is an alias, please see
9-
:doc:`google-build-namespace <../google/build-namespaces>`
9+
:doc:`misc-anonymous-namespace-in-header <../misc/anonymous-namespace-in-header>`
1010
for more information.
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
.. title:: clang-tidy - google-build-namespaces
2+
.. meta::
3+
:http-equiv=refresh: 5;URL=../misc/anonymous-namespace-in-header.html
24

35
google-build-namespaces
46
=======================
57

6-
`cert-dcl59-cpp` redirects here as an alias for this check.
7-
`fuchsia-header-anon-namespaces` redirects here as an alias for this check.
8-
9-
Finds anonymous namespaces in headers.
10-
11-
https://google.github.io/styleguide/cppguide.html#Namespaces
12-
13-
Corresponding cpplint.py check name: `build/namespaces`.
8+
The `google-build-namespaces` check is an alias, please see
9+
:doc:`misc-anonymous-namespace-in-header <../misc/anonymous-namespace-in-header>`
10+
for more information.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ Clang-Tidy Checks
229229
:doc:`fuchsia-trailing-return <fuchsia/trailing-return>`,
230230
:doc:`fuchsia-virtual-inheritance <fuchsia/virtual-inheritance>`,
231231
:doc:`google-build-explicit-make-pair <google/build-explicit-make-pair>`,
232-
:doc:`google-build-namespaces <google/build-namespaces>`,
233232
:doc:`google-build-using-namespace <google/build-using-namespace>`,
234233
:doc:`google-default-arguments <google/default-arguments>`,
235234
:doc:`google-explicit-constructor <google/explicit-constructor>`, "Yes"
@@ -264,6 +263,7 @@ Clang-Tidy Checks
264263
:doc:`llvmlibc-implementation-in-namespace <llvmlibc/implementation-in-namespace>`,
265264
:doc:`llvmlibc-inline-function-decl <llvmlibc/inline-function-decl>`, "Yes"
266265
:doc:`llvmlibc-restrict-system-libc-headers <llvmlibc/restrict-system-libc-headers>`, "Yes"
266+
:doc:`misc-anonymous-namespace-in-header <misc/anonymous-namespace-in-header>`,
267267
:doc:`misc-confusable-identifiers <misc/confusable-identifiers>`,
268268
:doc:`misc-const-correctness <misc/const-correctness>`, "Yes"
269269
:doc:`misc-coroutine-hostile-raii <misc/coroutine-hostile-raii>`,
@@ -446,7 +446,7 @@ Check aliases
446446
:doc:`cert-dcl51-cpp <cert/dcl51-cpp>`, :doc:`bugprone-reserved-identifier <bugprone/reserved-identifier>`, "Yes"
447447
:doc:`cert-dcl54-cpp <cert/dcl54-cpp>`, :doc:`misc-new-delete-overloads <misc/new-delete-overloads>`,
448448
:doc:`cert-dcl58-cpp <cert/dcl58-cpp>`, :doc:`bugprone-std-namespace-modification <bugprone/std-namespace-modification>`,
449-
:doc:`cert-dcl59-cpp <cert/dcl59-cpp>`, :doc:`google-build-namespaces <google/build-namespaces>`,
449+
:doc:`cert-dcl59-cpp <cert/dcl59-cpp>`, :doc:`misc-anonymous-namespace-in-header <misc/anonymous-namespace-in-header>`,
450450
:doc:`cert-env33-c <cert/env33-c>`, :doc:`bugprone-command-processor <bugprone/command-processor>`,
451451
:doc:`cert-err09-cpp <cert/err09-cpp>`, :doc:`misc-throw-by-value-catch-by-reference <misc/throw-by-value-catch-by-reference>`,
452452
:doc:`cert-err34-c <cert/err34-c>`, :doc:`bugprone-unchecked-string-to-number-conversion <bugprone/unchecked-string-to-number-conversion>`,
@@ -583,7 +583,8 @@ Check aliases
583583
:doc:`cppcoreguidelines-noexcept-swap <cppcoreguidelines/noexcept-swap>`, :doc:`performance-noexcept-swap <performance/noexcept-swap>`, "Yes"
584584
:doc:`cppcoreguidelines-non-private-member-variables-in-classes <cppcoreguidelines/non-private-member-variables-in-classes>`, :doc:`misc-non-private-member-variables-in-classes <misc/non-private-member-variables-in-classes>`,
585585
:doc:`cppcoreguidelines-use-default-member-init <cppcoreguidelines/use-default-member-init>`, :doc:`modernize-use-default-member-init <modernize/use-default-member-init>`, "Yes"
586-
:doc:`fuchsia-header-anon-namespaces <fuchsia/header-anon-namespaces>`, :doc:`google-build-namespaces <google/build-namespaces>`,
586+
:doc:`fuchsia-header-anon-namespaces <fuchsia/header-anon-namespaces>`, :doc:`misc-anonymous-namespace-in-header <misc/anonymous-namespace-in-header>`,
587+
:doc:`google-build-namespaces <google/build-namespaces>`, :doc:`misc-anonymous-namespace-in-header <misc/anonymous-namespace-in-header>`,
587588
:doc:`google-readability-braces-around-statements <google/readability-braces-around-statements>`, :doc:`readability-braces-around-statements <readability/braces-around-statements>`, "Yes"
588589
:doc:`google-readability-function-size <google/readability-function-size>`, :doc:`readability-function-size <readability/function-size>`,
589590
:doc:`google-readability-namespace-comments <google/readability-namespace-comments>`, :doc:`llvm-namespace-comment <llvm/namespace-comment>`,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.. title:: clang-tidy - anonymous-namespace-in-header
2+
3+
anonymous-namespace-in-header
4+
=============================
5+
6+
`cert-dcl59-cpp` redirects here as an alias for this check.
7+
`fuchsia-header-anon-namespaces` redirects here as an alias for this check.
8+
`google-build-namespaces` redirects here as an alias for this check.
9+
10+
Finds anonymous namespaces in headers.
11+
12+
https://google.github.io/styleguide/cppguide.html#Namespaces
13+
14+
Corresponding cpplint.py check name: `build/namespaces`.

0 commit comments

Comments
 (0)