[clang] Sema: suppress deprecated field warnings in implicit special-member functions Fixes: https://github.com/llvm/llvm-project/issues/147293 (PR #147400)

Shashi Shankar via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 8 03:34:00 PDT 2025


shashi1687 wrote:

Hello @zwuis/everyone,

Thank you again for your thorough review. I’ve incorporated all suggestions:

* Moved the suppression guard into the `case AR_Deprecated:` block
* Used `dyn_cast_if_present` with a single `isImplicit() && isDefaulted()` check
* Combined constructor & destructor detection via `isa<…>`
* Cleaned up the release notes entry

All Sema tests (`check-clang`) pass locally. Could you please take another look when you have a chance? I really appreciate your time and guidance on this.

Thanks so much! 😊


https://github.com/llvm/llvm-project/pull/147400


More information about the cfe-commits mailing list