Lines Matching refs:Other
4273 // Other is the prospective instantiation
4275 static bool isInstantiationOf(ASTContext &Ctx, NamedDecl *D, Decl *Other) {
4276 if (D->getKind() != Other->getKind()) {
4279 if (UsingDecl *UD = dyn_cast<UsingDecl>(Other)) {
4286 if (UsingDecl *UD = dyn_cast<UsingDecl>(Other)) {
4294 if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(Other))
4297 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(Other))
4300 if (EnumDecl *Enum = dyn_cast<EnumDecl>(Other))
4303 if (VarDecl *Var = dyn_cast<VarDecl>(Other))
4307 if (ClassTemplateDecl *Temp = dyn_cast<ClassTemplateDecl>(Other))
4310 if (FunctionTemplateDecl *Temp = dyn_cast<FunctionTemplateDecl>(Other))
4314 = dyn_cast<ClassTemplatePartialSpecializationDecl>(Other))
4318 if (FieldDecl *Field = dyn_cast<FieldDecl>(Other)) {
4326 if (UsingDecl *Using = dyn_cast<UsingDecl>(Other))
4329 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(Other))
4332 return D->getDeclName() && isa<NamedDecl>(Other) &&
4333 D->getDeclName() == cast<NamedDecl>(Other)->getDeclName();