[clang] [Clang] Add #pragma clang deprecated_header (PR #168041)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 9 00:23:58 PST 2025
https://github.com/cor3ntin commented:
I think we should keep it simple
- Yes it should be a pragma or a preprocessor features because headers don't past phase 4, at which point attributes don't yet exist
- We should emit the warning at each point of use so that each use is diagnosed and we can filter out unactionable inclusions with -Wno-system-headers as usual
(This would need a documentation and a release note)
https://github.com/llvm/llvm-project/pull/168041
More information about the cfe-commits
mailing list