================ @@ -3096,6 +3096,29 @@ bool Type::isStdByteType() const { return false; } +TemplateDecl *Type::getSpecializedTemplateDecl() const { + const auto *DesugaredType = getUnqualifiedDesugaredType(); + if (auto *Specialization = DesugaredType->getAs<TemplateSpecializationType>()) + return Specialization->getTemplateName().getAsTemplateDecl(); + if (const auto *Record = DesugaredType->getAsCXXRecordDecl()) { + if (auto *CTS = dyn_cast<ClassTemplateSpecializationDecl>(Record)) ---------------- ojhunt wrote:
Code is gone after endless refactoring :D https://github.com/llvm/llvm-project/pull/113510 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits