================
@@ -182,6 +233,15 @@ bool BugSuppression::isSuppressed(const
PathDiagnosticLocation &Location,
// declaration that isn't TranslationUnitDecl, because we should respect
// attributes on the entire declaration chain.
while (true) {
+
+ // Template specializations (e.g., Wrapper<int>) should inherit
+ // suppression attributes from their primary template or partial
+ // specialization. Transform specializations to their template
definitions
+ // before checking for suppressions or walking up the lexical parent
+ // chain.
----------------
steakhal wrote:
This matches my understanding, yes.
https://github.com/llvm/llvm-project/pull/178441
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits