Issue 89945
Summary clang-include-cleaner: `<typeinfo>` misidentified as unused
Labels new issue
Assignees
Reporter wangtz0607
    ## Example

```cpp
#include <typeinfo>

int main() {
    bool b = typeid(int) != typeid(double);
    return 0;
}
```

## Expected Behavior

`<typeinfo>` should not be considered as unused.

## Actual Behavior

![2024-04-24_23-55](https://github.com/llvm/llvm-project/assets/25856391/6e9930b6-2d15-4f22-9709-fc83dbd33d7b)

## Environment

```sh
clangd version 18.1.2
Features: linux
Platform: x86_64-unknown-linux-gnu
```

```sh
LLVM (http://llvm.org/):
  LLVM version 18.1.2
  Optimized build.
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to