| Issue |
183752
|
| Summary |
[clang-tidy] False positive bugprone-std-namespace-modification with templated user-defined types
|
| Labels |
clang-tidy,
false-positive
|
| Assignees |
|
| Reporter |
carlosgalvezp
|
Example:
```cpp
#include <functional>
struct Foo
{};
template <typename T>
struct Bar
{};
template <>
struct std::hash<Foo>
{};
template <typename T>
struct std::hash<Bar<T>>
{};
```
Gives:
```
source>:16:13: warning: modification of 'std' namespace can result in undefined behavior [bugprone-std-namespace-modification]
16 | struct std::hash<Bar<T>>
```
[Godbolt](https://godbolt.org/z/c3EPvWxje)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs