Lines Matching defs:TTP
192 HoverInfo::PrintedType printType(const TemplateTypeParmDecl *TTP) {
194 Result.Type = TTP->wasDeclaredWithTypename() ? "typename" : "class";
195 if (TTP->isParameterPack())
211 HoverInfo::PrintedType printType(const TemplateTemplateParmDecl *TTP,
217 for (const Decl *Param : *TTP->getTemplateParameters()) {
220 if (const auto *TTP = dyn_cast<TemplateTypeParmDecl>(Param))
221 OS << printType(TTP).Type;
241 if (const auto *TTP = dyn_cast<TemplateTypeParmDecl>(Param)) {
242 P.Type = printType(TTP);
244 if (!TTP->getName().empty())
245 P.Name = TTP->getNameAsString();
247 if (TTP->hasDefaultArgument()) {
250 TTP->getDefaultArgument().getArgument().print(PP, Out,
653 else if (const auto *TTP = dyn_cast<TemplateTypeParmDecl>(D))
654 HI.Type = TTP->wasDeclaredWithTypename() ? "typename" : "class";
655 else if (const auto *TTP = dyn_cast<TemplateTemplateParmDecl>(D))
656 HI.Type = printType(TTP, PP);