[clang] [analyzer] Fix [[clang::suppress]] for nested templates (PR #183727)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 16 13:57:40 PDT 2026


================
@@ -179,9 +227,8 @@ bool BugSuppression::isSuppressed(const BugReport &R) {
 // attribute.
 //
 // The function handles two cases:
-// 1. Instantiation from a class template - searches redeclarations to find
-//    the definition (not just a forward declaration).
-// 2. Instantiation from a partial specialization - returns it directly.
+// 1. Class template specializations.
+// 2. Class template partial specializations.
 //
 // For non-template-specialization decls, returns the input unchanged.
----------------
steakhal wrote:

Accepted in 35e373dd132644ebfff1b1dae70623302cf19e0c.

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


More information about the cfe-commits mailing list