| Issue |
172966
|
| Summary |
[clang] [diagnostics] Now the diagnostic message for std headers should mention std module too
|
| Labels |
good first issue,
clang:diagnostics
|
| Assignees |
|
| Reporter |
ChuanqiXu9
|
Reproducer:
```C++
class A {};
auto f() {
return typeid(A);
}
```
Now we get:
```
<source>:3:12: error: you need to include <typeinfo> before using the 'typeid' operator
3 | return typeid(A);
| ^
```
but I think we should say "or import std" too. As now both libc++, libstdc++ and MSSTL supports std module and clang is able to compile all of them.
There may be other similar examples.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs