Lines Matching refs:FoundDecls
2479 SmallVector<NamedDecl *, 2> FoundDecls; in VisitNamespaceDecl() local
2480 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitNamespaceDecl()
2481 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitNamespaceDecl()
2482 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Namespace)) in VisitNamespaceDecl()
2485 if (NamespaceDecl *FoundNS = dyn_cast<NamespaceDecl>(FoundDecls[I])) { in VisitNamespaceDecl()
2491 ConflictingDecls.push_back(FoundDecls[I]); in VisitNamespaceDecl()
2545 SmallVector<NamedDecl *, 2> FoundDecls; in VisitTypedefNameDecl() local
2546 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitTypedefNameDecl()
2547 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitTypedefNameDecl()
2548 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitTypedefNameDecl()
2551 dyn_cast<TypedefNameDecl>(FoundDecls[I])) { in VisitTypedefNameDecl()
2557 ConflictingDecls.push_back(FoundDecls[I]); in VisitTypedefNameDecl()
2661 SmallVector<NamedDecl *, 2> FoundDecls; in VisitEnumDecl() local
2662 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitEnumDecl()
2663 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitEnumDecl()
2664 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitEnumDecl()
2667 Decl *Found = FoundDecls[I]; in VisitEnumDecl()
2678 ConflictingDecls.push_back(FoundDecls[I]); in VisitEnumDecl()
2750 SmallVector<NamedDecl *, 2> FoundDecls; in VisitRecordDecl() local
2751 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitRecordDecl()
2752 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitRecordDecl()
2753 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitRecordDecl()
2756 Decl *Found = FoundDecls[I]; in VisitRecordDecl()
2814 ConflictingDecls.push_back(FoundDecls[I]); in VisitRecordDecl()
2899 SmallVector<NamedDecl *, 2> FoundDecls; in VisitEnumConstantDecl() local
2900 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitEnumConstantDecl()
2901 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitEnumConstantDecl()
2902 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitEnumConstantDecl()
2906 = dyn_cast<EnumConstantDecl>(FoundDecls[I])) { in VisitEnumConstantDecl()
2911 ConflictingDecls.push_back(FoundDecls[I]); in VisitEnumConstantDecl()
2954 SmallVector<NamedDecl *, 2> FoundDecls; in VisitFunctionDecl() local
2955 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitFunctionDecl()
2956 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitFunctionDecl()
2957 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitFunctionDecl()
2960 if (FunctionDecl *FoundFunction = dyn_cast<FunctionDecl>(FoundDecls[I])) { in VisitFunctionDecl()
2985 ConflictingDecls.push_back(FoundDecls[I]); in VisitFunctionDecl()
3184 SmallVector<NamedDecl *, 2> FoundDecls; in VisitFieldDecl() local
3185 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitFieldDecl()
3186 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitFieldDecl()
3187 if (FieldDecl *FoundField = dyn_cast<FieldDecl>(FoundDecls[I])) { in VisitFieldDecl()
3248 SmallVector<NamedDecl *, 2> FoundDecls; in VisitIndirectFieldDecl() local
3249 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitIndirectFieldDecl()
3250 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitIndirectFieldDecl()
3252 = dyn_cast<IndirectFieldDecl>(FoundDecls[I])) { in VisitIndirectFieldDecl()
3318 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCIvarDecl() local
3319 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCIvarDecl()
3320 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCIvarDecl()
3321 if (ObjCIvarDecl *FoundIvar = dyn_cast<ObjCIvarDecl>(FoundDecls[I])) { in VisitObjCIvarDecl()
3376 SmallVector<NamedDecl *, 2> FoundDecls; in VisitVarDecl() local
3377 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitVarDecl()
3378 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitVarDecl()
3379 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitVarDecl()
3382 if (VarDecl *FoundVar = dyn_cast<VarDecl>(FoundDecls[I])) { in VisitVarDecl()
3421 ConflictingDecls.push_back(FoundDecls[I]); in VisitVarDecl()
3557 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCMethodDecl() local
3558 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCMethodDecl()
3559 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCMethodDecl()
3560 if (ObjCMethodDecl *FoundMethod = dyn_cast<ObjCMethodDecl>(FoundDecls[I])) { in VisitObjCMethodDecl()
3833 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCProtocolDecl() local
3834 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCProtocolDecl()
3835 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCProtocolDecl()
3836 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_ObjCProtocol)) in VisitObjCProtocolDecl()
3839 if ((MergeWithProtocol = dyn_cast<ObjCProtocolDecl>(FoundDecls[I]))) in VisitObjCProtocolDecl()
4031 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCInterfaceDecl() local
4032 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCInterfaceDecl()
4033 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCInterfaceDecl()
4034 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Ordinary)) in VisitObjCInterfaceDecl()
4037 if ((MergeWithIface = dyn_cast<ObjCInterfaceDecl>(FoundDecls[I]))) in VisitObjCInterfaceDecl()
4193 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCPropertyDecl() local
4194 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCPropertyDecl()
4195 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCPropertyDecl()
4197 = dyn_cast<ObjCPropertyDecl>(FoundDecls[I])) { in VisitObjCPropertyDecl()
4431 SmallVector<NamedDecl *, 2> FoundDecls; in VisitClassTemplateDecl() local
4432 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitClassTemplateDecl()
4433 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitClassTemplateDecl()
4434 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Ordinary)) in VisitClassTemplateDecl()
4437 Decl *Found = FoundDecls[I]; in VisitClassTemplateDecl()
4450 ConflictingDecls.push_back(FoundDecls[I]); in VisitClassTemplateDecl()
4622 SmallVector<NamedDecl *, 2> FoundDecls; in VisitVarTemplateDecl() local
4623 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitVarTemplateDecl()
4624 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitVarTemplateDecl()
4625 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Ordinary)) in VisitVarTemplateDecl()
4628 Decl *Found = FoundDecls[I]; in VisitVarTemplateDecl()
4638 ConflictingDecls.push_back(FoundDecls[I]); in VisitVarTemplateDecl()