Lines Matching defs:Pattern
271 const FunctionDecl *Pattern, bool RelativeToPrimary,
321 (!Pattern || !Pattern->getLexicalDeclContext()->isFileContext())) {
467 const FunctionDecl *Pattern, bool ForConstraintInstantiation,
509 R = HandleFunction(*this, Function, Result, Pattern, RelativeToPrimary,
3299 CXXRecordDecl *Pattern,
3303 for (const auto &Base : Pattern->bases()) {
3413 CXXRecordDecl *Instantiation, CXXRecordDecl *Pattern,
3418 = cast_or_null<CXXRecordDecl>(Pattern->getDefinition());
3421 Pattern, PatternDef, TSK, Complain))
3437 Pattern = PatternDef;
3476 InstantiateAttrs(TemplateArgs, Pattern, Instantiation);
3486 Instantiation->setTagKind(Pattern->getTagKind());
3489 if (SubstBaseSpecifiers(Instantiation, Pattern, TemplateArgs))
3500 for (auto *Member : Pattern->decls()) {
3510 if (Member->getDeclContext() != Pattern)
3604 Instantiation->setLocation(Pattern->getLocation());
3605 Instantiation->setLocStart(Pattern->getInnerLocStart());
3606 Instantiation->setBraceRange(Pattern->getBraceRange());
3611 if (Pattern->isDependentContext())
3612 PerformDependentDiagnostics(Pattern, TemplateArgs);
3662 EnumDecl *Instantiation, EnumDecl *Pattern,
3665 EnumDecl *PatternDef = Pattern->getDefinition();
3668 Pattern, PatternDef, TSK,/*Complain*/true))
3670 Pattern = PatternDef;
3700 InstantiateAttrs(TemplateArgs, Pattern, Instantiation);
3703 Instantiator.InstantiateEnumDefinition(Instantiation, Pattern);
3713 FieldDecl *Pattern, const MultiLevelTemplateArgumentList &TemplateArgs) {
3715 if (!Pattern->hasInClassInitializer())
3719 Pattern->getInClassInitStyle() &&
3724 Expr *OldInit = Pattern->getInClassInitializer();
3726 RecordDecl *PatternRD = Pattern->getParent();
3730 << OutermostClass << Pattern;
3731 Diag(Pattern->getEndLoc(),
3927 CXXRecordDecl *Pattern = nullptr;
3940 Pattern = PartialSpec;
3951 Pattern = Template->getTemplatedDecl();
3954 return Pattern;
3967 ActionResult<CXXRecordDecl *> Pattern =
3970 if (!Pattern.isUsable())
3971 return Pattern.isInvalid();
3974 PointOfInstantiation, ClassTemplateSpec, Pattern.get(),
3994 if (FunctionDecl *Pattern =
4032 if (TSK == TSK_ExplicitInstantiationDefinition && !Pattern->isDefined())
4125 CXXRecordDecl *Pattern = Record->getInstantiatedFromMemberClass();
4126 assert(Pattern && "Missing instantiated-from-template information");
4129 if (!Pattern->getDefinition()) {
4144 InstantiateClass(PointOfInstantiation, Record, Pattern,
4156 Pattern = cast_or_null<CXXRecordDecl>(Record->getDefinition());
4157 if (Pattern)
4158 InstantiateClassMembers(PointOfInstantiation, Pattern, TemplateArgs,
4178 EnumDecl *Pattern = Enum->getTemplateInstantiationPattern();
4179 assert(Pattern && "Missing instantiated-from-template information");
4182 if (!Pattern->getDefinition())
4185 InstantiateEnum(PointOfInstantiation, Enum, Pattern, TemplateArgs, TSK);
4198 FieldDecl *Pattern = Lookup.find_first<FieldDecl>();
4199 assert(Pattern);
4200 InstantiateInClassInitializer(PointOfInstantiation, Field, Pattern,