[clang-tools-extra] [clang-tidy] Add misc-shadowed-namespace-function check (PR #168406)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 17 11:11:12 PST 2025


================
@@ -0,0 +1,63 @@
+.. title:: clang-tidy - misc-shadowed-namespace-function
+
+misc-shadowed-namespace-function
+================================
+
+Detects free functions in the global namespace that shadow functions declared 
+in other namespaces. This check helps prevent accidental shadowing of namespace
----------------
vbvictor wrote:

```suggestion
Detects free functions in the global namespace that shadow functions declared 
in other namespaces.

This check helps prevent accidental shadowing of namespace
```

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


More information about the cfe-commits mailing list