[clang-tools-extra] [clang-tidy] Rename 'google-build-namespaces' check to 'misc-anonymous-namespace-in-header' and keep initial as alias. (PR #170986)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 6 13:56:56 PST 2025


================
@@ -29,6 +29,7 @@
 #include "ThrowByValueCatchByReferenceCheck.h"
 #include "UnconventionalAssignOperatorCheck.h"
 #include "UniqueptrResetReleaseCheck.h"
+#include "UnnamedNamespaceInHeaderCheck.h"
----------------
vbvictor wrote:

Please rename `UnnamedNamespaceInHeaderCheck.h` to `AnonymousNamespaceInHeaderCheck.h`,
same for `.cpp` file and Check class in sources. Names of classes/files should be equal to name of the check ("anonymous-namespace-in-header")

https://github.com/llvm/llvm-project/pull/170986


More information about the cfe-commits mailing list