ecnelises wrote:

I'm also not sure if this handles system headers specially. As typical cases, 
`stdatomic.h` and `math.h` exist in both C++ stdlib headers and C stdlib 
headers (due to some standard incompatibility). Should these warnings be also 
treated as expected?

```
$ find . -name math.h
./sysroot/usr/include/math.h
./include/c++/xxx/tr1/math.h
./include/c++/xxx/math.h
./lib/clang/xxx/include/openmp_wrappers/math.h

$ find . -name stdatomic.h
./include/c++/xxx/stdatomic.h
./lib/clang/xx/include/stdatomic.h
./lib/gcc/x86_64-linux-gnu/xxx/include/stdatomic.h
```

https://github.com/llvm/llvm-project/pull/162491
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to