================ @@ -19493,7 +19493,11 @@ void Sema::ActOnFields(Scope *S, SourceLocation RecLoc, Decl *EnclosingDecl, CDecl->setIvarRBraceLoc(RBrac); } } - ProcessAPINotes(Record); + + // If this is a class template instantiation, its API Notes attributes were + // added to the class template itself. Make sure they are not added twice. + if (!CXXRecord || !CXXRecord->getDescribedClassTemplate()) ---------------- egorzhdan wrote:
The description was indeed confusing. I clarified it, and also made the change even simpler. https://github.com/llvm/llvm-project/pull/122516 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits