Lines Matching defs:Pattern

896 void Sema::updateAttrsForLateParsedTemplate(const Decl *Pattern, Decl *Inst) {
897 for (const auto *Attr : Pattern->attrs()) {
1110 TypeAliasDecl *Pattern = D->getTemplatedDecl();
1122 if (getPreviousDeclForInstantiation<TypedefNameDecl>(Pattern)) {
1123 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName());
1130 InstantiateTypedefNameDecl(Pattern, /*IsTypeAlias=*/true));
1581 EnumDecl *Enum, EnumDecl *Pattern) {
1585 Enum->setLocation(Pattern->getLocation());
1590 for (auto *EC : Pattern->enumerators()) {
1627 if (Pattern->getDeclContext()->isFunctionOrMethod() &&
1660 CXXRecordDecl *Pattern = D->getTemplatedDecl();
1665 NestedNameSpecifierLoc QualifierLoc = Pattern->getQualifierLoc();
1676 if (!isFriend && getPreviousDeclForInstantiation(Pattern)) {
1677 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName());
1697 DC = SemaRef.FindInstantiatedContext(Pattern->getLocation(),
1698 Pattern->getDeclContext(),
1704 LookupResult R(SemaRef, Pattern->getDeclName(), Pattern->getLocation(),
1716 SemaRef.Diag(Pattern->getLocation(), diag::err_not_tag_in_scope)
1718 << Pattern->getDeclName() << DC << QualifierLoc.getSourceRange();
1724 SemaRef.Context, Pattern->getTagKind(), DC, Pattern->getBeginLoc(),
1725 Pattern->getLocation(), Pattern->getIdentifier(), PrevDecl,
1730 SemaRef.InstantiateAttrsForDecl(TemplateArgs, Pattern, RecordInst, LateAttrs,
1848 VarDecl *Pattern = D->getTemplatedDecl();
1851 if (getPreviousDeclForInstantiation(Pattern)) {
1852 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName());
1858 cast_or_null<VarDecl>(VisitVarDecl(Pattern,
3012 TypeLoc Pattern = Expansion.getPatternLoc();
3014 SemaRef.collectUnexpandedParameterPacks(Pattern, Unexpanded);
3024 Pattern.getSourceRange(),
3034 TypeSourceInfo *NewDI = SemaRef.SubstType(Pattern, TemplateArgs,
3059 TypeSourceInfo *NewPattern = SemaRef.SubstType(Pattern, TemplateArgs,
4647 // FIXME: Pass in a correct Pattern argument, otherwise
4920 Stmt *Pattern = nullptr;
4922 Pattern = PatternDef->getBody(PatternDef);
4992 if (!Pattern && PatternDecl->isLateTemplateParsed() &&
5002 Pattern = PatternDecl->getBody(PatternDecl);
5007 assert((Pattern || PatternDecl->isDefaulted() ||
5186 Body = SubstStmt(Pattern, TemplateArgs);
5855 static bool isInstantiationOf(ClassTemplateDecl *Pattern,
5857 Pattern = Pattern->getCanonicalDecl();
5861 if (Pattern == Instance) return true;
5868 static bool isInstantiationOf(FunctionTemplateDecl *Pattern,
5870 Pattern = Pattern->getCanonicalDecl();
5874 if (Pattern == Instance) return true;
5882 isInstantiationOf(ClassTemplatePartialSpecializationDecl *Pattern,
5884 Pattern
5885 = cast<ClassTemplatePartialSpecializationDecl>(Pattern->getCanonicalDecl());
5889 if (Pattern == Instance)
5897 static bool isInstantiationOf(CXXRecordDecl *Pattern,
5899 Pattern = Pattern->getCanonicalDecl();
5903 if (Pattern == Instance) return true;
5910 static bool isInstantiationOf(FunctionDecl *Pattern,
5912 Pattern = Pattern->getCanonicalDecl();
5916 if (Pattern == Instance) return true;
5923 static bool isInstantiationOf(EnumDecl *Pattern,
5925 Pattern = Pattern->getCanonicalDecl();
5929 if (Pattern == Instance) return true;
5936 static bool isInstantiationOf(UsingShadowDecl *Pattern,
5940 Pattern);
5943 static bool isInstantiationOf(UsingDecl *Pattern, UsingDecl *Instance,
5945 return declaresSameEntity(C.getInstantiatedFromUsingDecl(Instance), Pattern);
5949 static bool isInstantiationOfUnresolvedUsingDecl(T *Pattern, Decl *Other,
5971 return Pattern->isPackExpansion() == OtherIsPackExpansion &&
5972 declaresSameEntity(OtherFrom, Pattern);
5975 static bool isInstantiationOfStaticDataMember(VarDecl *Pattern,
5979 Pattern = Pattern->getCanonicalDecl();
5983 if (Pattern == Instance) return true;
6468 void Sema::PerformDependentDiagnostics(const DeclContext *Pattern,
6470 for (auto *DD : Pattern->ddiags()) {