| Issue | 129591 |
|---|---|
| Summary | `readability-static-accessed-through-instance` not reported in templated function |
| Labels | clang-tidy, false-negative |
| Assignees | |
| Reporter | firewave |
```cpp
class C
{
public:
enum E { E1 };
static void f();
E e;
};
template<class T>
void f(const T& c)
{
if (c.e == c.E1) {}
c.f();
}
```
https://godbolt.org/z/sPGqdjKM4
_______________________________________________ llvm-bugs mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
