Issue 180894
Summary [clang-tidy][FN] `cppcoreguidelines-init-variables` fails to identify uninitialized variables of member pointers
Labels clang-tidy
Assignees
Reporter XGPSPL
    **Environment:**
- Clang-Tidy Version: LLVM version 23.0.0git (Optimized build with assertions)
- Commit Hash: [`5654ecd5ddeb2f40e124a6bf10cc78230da4ef49`](https://github.com/llvm/llvm-project/commit/5654ecd5ddeb2f40e124a6bf10cc78230da4ef49)
- Platform: Linux 6.18.6

**Reproducer:**
```c++
void test() {
  struct S { int x; };
  int S::* mp;
}
```

**Godbolt:** https://clang-tidy.godbolt.org/z/qEar9ahT3

**AI Usage:** This issue was found using an LLM-Assisted Fuzzer and verified by a human.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to