[clang] [Clang] handle [[warn_unused]] attribute for unused private fields (PR #120734)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 2 06:37:09 PST 2025


================
@@ -3307,6 +3307,29 @@ void Sema::CheckShadowInheritedFields(const SourceLocation &Loc,
   }
 }
 
+template <typename AttrType>
+inline static bool HasAttribute(const QualType &T) {
----------------
erichkeane wrote:

I would say that it should, if 'i' is.  I guess I'm not seeing how this is controversial, which makes me think I'm missing something though.  @AaronBallman might need to be poked for this when he gets back.

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


More information about the cfe-commits mailing list