ldionne added a comment.

We've started having several internal user complaints because their system 
headers are suddenly triggering a warning for using `<stdbool.h>`. This seems 
to be caused by the fact that `#warning` is surfaced to users even when the 
`#warning` is present in a system header (which makes sense, because otherwise 
there would be no way to issue a `#warning` from a system header). This ends up 
causing problems because users have no way to suppress the warning in the 
system headers they use without also disabling deprecation warnings in their 
own code. Is this intended? Instead, it seems to me like what we'd want is some 
way to mark the header as deprecated such that Clang will not flag uses of 
`<stdbool.h>` from within system headers, but will flag them from user code. 
This would be consistent with how the deprecated attributes work for classes 
and functions.

Thoughts?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120244/new/

https://reviews.llvm.org/D120244

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to