[clang-tools-extra] [clang-tidy] Add new check `llvm-prefer-static-over-anonymous-namespace` (PR #142839)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 20 08:24:03 PDT 2025


https://github.com/5chmidti commented:

Generalizing this check to enforce either static or anonymous namespaces would be great, then it would not be specific to LLVM and projects using a similar style. So something like misc-static-or-anonymous-namespace.
WDYT?

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


More information about the cfe-commits mailing list