Index: clang-tidy/fuchsia/FuchsiaTidyModule.cpp =================================================================== --- clang-tidy/fuchsia/FuchsiaTidyModule.cpp +++ clang-tidy/fuchsia/FuchsiaTidyModule.cpp @@ -10,6 +10,7 @@ #include "../ClangTidy.h" #include "../ClangTidyModule.h" #include "../ClangTidyModuleRegistry.h" +#include "../google/UnnamedNamespaceInHeaderCheck.h" #include "DefaultArgumentsCheck.h" #include "MultipleInheritanceCheck.h" #include "OverloadedOperatorCheck.h" @@ -29,6 +30,8 @@ void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override { CheckFactories.registerCheck( "fuchsia-default-arguments"); + CheckFactories.registerCheck( + "fuchsia-header-anon-namespaces"); CheckFactories.registerCheck( "fuchsia-multiple-inheritance"); CheckFactories.registerCheck( Index: docs/ReleaseNotes.rst =================================================================== --- docs/ReleaseNotes.rst +++ docs/ReleaseNotes.rst @@ -88,6 +88,11 @@ with looping constructs. Every backward jump is rejected. Forward jumps are only allowed in nested loops. +- New alias :doc:`fuchsia-header-anon-namespaces + ` to :doc:`google-build-namespaces + ` + added. + - New :doc:`fuchsia-multiple-inheritance ` check Index: docs/clang-tidy/checks/fuchsia-header-anon-namespaces.rst =================================================================== --- docs/clang-tidy/checks/fuchsia-header-anon-namespaces.rst +++ docs/clang-tidy/checks/fuchsia-header-anon-namespaces.rst @@ -0,0 +1,10 @@ +.. title:: clang-tidy - fuchsia-header-anon-namespaces +.. meta:: + :http-equiv=refresh: 5;URL=google-build-namespaces.html + +fuchsia-header-anon-namespaces +============================== + +The fuchsia-header-anon-namespaces check is an alias, please see +`google-build-namespace `_ +for more information. Index: docs/clang-tidy/checks/google-build-namespaces.rst =================================================================== --- docs/clang-tidy/checks/google-build-namespaces.rst +++ docs/clang-tidy/checks/google-build-namespaces.rst @@ -4,6 +4,7 @@ ======================= `cert-dcl59-cpp` redirects here as an alias for this check. +`fuchsia-header-anon-namespaces` redirects here as an alias for this check. Finds anonymous namespaces in headers. Index: docs/clang-tidy/checks/list.rst =================================================================== --- docs/clang-tidy/checks/list.rst +++ docs/clang-tidy/checks/list.rst @@ -90,6 +90,7 @@ cppcoreguidelines-pro-type-vararg cppcoreguidelines-slicing cppcoreguidelines-special-member-functions + fuchsia-header-anon-namespaces (redirects to google-build-namespaces) fuchsia-default-arguments fuchsia-multiple-inheritance fuchsia-overloaded-operator