Lines Matching refs:Previous

864   LookupResult Previous(*this, Name, NameLoc,  in CheckClassTemplate()  local
894 LookupQualifiedName(Previous, SemanticContext); in CheckClassTemplate()
897 LookupName(Previous, S); in CheckClassTemplate()
900 if (Previous.isAmbiguous()) in CheckClassTemplate()
904 if (Previous.begin() != Previous.end()) in CheckClassTemplate()
905 PrevDecl = (*Previous.begin())->getUnderlyingDecl(); in CheckClassTemplate()
951 LookupResult Previous(*this, Name, NameLoc, LookupOrdinaryName, in CheckClassTemplate() local
956 LookupQualifiedName(Previous, LookupContext); in CheckClassTemplate()
958 if (Previous.isAmbiguous()) in CheckClassTemplate()
961 if (Previous.begin() != Previous.end()) in CheckClassTemplate()
962 PrevDecl = (*Previous.begin())->getUnderlyingDecl(); in CheckClassTemplate()
6701 LookupResult &Previous) { in CheckDependentFunctionTemplateSpecialization() argument
6705 LookupResult::Filter F = Previous.makeFilter(); in CheckDependentFunctionTemplateSpecialization()
6716 if (Previous.empty()) return true; in CheckDependentFunctionTemplateSpecialization()
6718 FD->setDependentTemplateSpecialization(Context, Previous.asUnresolvedSet(), in CheckDependentFunctionTemplateSpecialization()
6743 LookupResult &Previous) { in CheckFunctionTemplateSpecialization() argument
6750 for (LookupResult::iterator I = Previous.begin(), E = Previous.end(); in CheckFunctionTemplateSpecialization()
6885 Previous.clear(); in CheckFunctionTemplateSpecialization()
6886 Previous.addDecl(Specialization); in CheckFunctionTemplateSpecialization()
6905 Sema::CheckMemberSpecialization(NamedDecl *Member, LookupResult &Previous) { in CheckMemberSpecialization() argument
6913 if (Previous.empty()) { in CheckMemberSpecialization()
6916 for (LookupResult::iterator I = Previous.begin(), E = Previous.end(); in CheckMemberSpecialization()
6933 if (Previous.isSingleResult() && in CheckMemberSpecialization()
6934 (PrevVar = dyn_cast<VarDecl>(Previous.getFoundDecl()))) in CheckMemberSpecialization()
6942 if (Previous.isSingleResult() && in CheckMemberSpecialization()
6943 (PrevRecord = dyn_cast<CXXRecordDecl>(Previous.getFoundDecl()))) { in CheckMemberSpecialization()
6950 if (Previous.isSingleResult() && in CheckMemberSpecialization()
6951 (PrevEnum = dyn_cast<EnumDecl>(Previous.getFoundDecl()))) { in CheckMemberSpecialization()
6979 Previous.clear(); in CheckMemberSpecialization()
6980 Previous.addDecl(Instantiation); in CheckMemberSpecialization()
7073 Previous.clear(); in CheckMemberSpecialization()
7074 Previous.addDecl(Instantiation); in CheckMemberSpecialization()
7564 LookupResult Previous(*this, NameInfo, LookupOrdinaryName); in ActOnExplicitInstantiation() local
7565 LookupParsedName(Previous, S, &D.getCXXScopeSpec()); in ActOnExplicitInstantiation()
7575 if (Previous.isAmbiguous()) in ActOnExplicitInstantiation()
7578 VarDecl *Prev = Previous.getAsSingle<VarDecl>(); in ActOnExplicitInstantiation()
7579 VarTemplateDecl *PrevTemplate = Previous.getAsSingle<VarTemplateDecl>(); in ActOnExplicitInstantiation()
7586 for (LookupResult::iterator P = Previous.begin(), PEnd = Previous.end(); in ActOnExplicitInstantiation()
7710 for (LookupResult::iterator P = Previous.begin(), PEnd = Previous.end(); in ActOnExplicitInstantiation()