[clang] [clang] Fix deprecation attribute being ignored when used inside other attributes that are already applied to a deprecated symbol (PR #222094)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 9 06:16:55 PDT 2026


https://github.com/erichkeane commented:

IS this really a bug?  We are intentionally skipping diagnosing a deprecated thing inside of other deprecated things.  An attribute on a Decl is ALSO a part of that decl, so it makes sense to have it skipped by the same logic?  

THIS will also cause us to skip if something ABOVE it is deprecated as well, which is part of the point?  

I'm not convinced this is a bug, nor something that needs fixed.

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


More information about the cfe-commits mailing list