Lines Matching defs:Template
1 //===- TemplateName.cpp - C++ Template Name Representation ----------------===//
68 TemplateName::TemplateName(TemplateDecl *Template) : Storage(Template) {}
84 return Template;
102 if (TemplateDecl *Template = Storage.dyn_cast<TemplateDecl *>())
103 return Template;
159 // Substituting a dependent template name: preserve it as written.
163 // If we have a template declaration, use the most recent non-friend
164 // declaration of that template.
168 assert(Decl && "all declarations of template are friends");
192 if (TemplateDecl *Template = getAsTemplateDecl()) {
193 if (auto *TTP = dyn_cast<TemplateTemplateParmDecl>(Template)) {
198 // FIXME: Hack, getDeclContext() can be null if Template is still
202 if (Template->getDeclContext() &&
203 Template->getDeclContext()->isDependentContext())
226 if (TemplateDecl *Template = Storage.dyn_cast<TemplateDecl *>())
227 OS << *Template;
232 OS << "template ";
237 OS << "template ";