[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
Mon Dec 8 02:18:15 PST 2025


=?utf-8?q?Ondřej_Štorc?= <storc.1998 at gmail.com>,Ondrej Storc
 <storcond at fit.cvut.cz>,Ondrej Storc <storcond at fit.cvut.cz>,Ondrej Storc
 <storcond at fit.cvut.cz>,Ondrej Storc <storcond at fit.cvut.cz>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/170986 at github.com>


================
@@ -1,7 +1,6 @@
 // RUN: clang-tidy %s -checks='-*,google-build-namespaces,google-build-using-namespace' -header-filter='.*' -- | FileCheck %s -implicit-check-not="{{warning|error}}:"
----------------
vbvictor wrote:

Yes, we should move tests to misc and name it as check name.
You can leave this with little test-case as sanity check for `google-build-namespaces,google-build-using-namespace` (like what you did not for `misc/namespaces.cpp`)


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


More information about the cfe-commits mailing list