Lines Matching refs:FoundDecls
2333 SmallVector<NamedDecl *, 2> FoundDecls; in VisitNamespaceDecl() local
2334 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitNamespaceDecl()
2335 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitNamespaceDecl()
2336 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Namespace)) in VisitNamespaceDecl()
2339 if (NamespaceDecl *FoundNS = dyn_cast<NamespaceDecl>(FoundDecls[I])) { in VisitNamespaceDecl()
2345 ConflictingDecls.push_back(FoundDecls[I]); in VisitNamespaceDecl()
2399 SmallVector<NamedDecl *, 2> FoundDecls; in VisitTypedefNameDecl() local
2400 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitTypedefNameDecl()
2401 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitTypedefNameDecl()
2402 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitTypedefNameDecl()
2405 dyn_cast<TypedefNameDecl>(FoundDecls[I])) { in VisitTypedefNameDecl()
2411 ConflictingDecls.push_back(FoundDecls[I]); in VisitTypedefNameDecl()
2482 SmallVector<NamedDecl *, 2> FoundDecls; in VisitEnumDecl() local
2483 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitEnumDecl()
2484 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitEnumDecl()
2485 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitEnumDecl()
2488 Decl *Found = FoundDecls[I]; in VisitEnumDecl()
2499 ConflictingDecls.push_back(FoundDecls[I]); in VisitEnumDecl()
2571 SmallVector<NamedDecl *, 2> FoundDecls; in VisitRecordDecl() local
2572 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitRecordDecl()
2573 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitRecordDecl()
2574 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitRecordDecl()
2577 Decl *Found = FoundDecls[I]; in VisitRecordDecl()
2635 ConflictingDecls.push_back(FoundDecls[I]); in VisitRecordDecl()
2696 SmallVector<NamedDecl *, 2> FoundDecls; in VisitEnumConstantDecl() local
2697 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitEnumConstantDecl()
2698 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitEnumConstantDecl()
2699 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitEnumConstantDecl()
2703 = dyn_cast<EnumConstantDecl>(FoundDecls[I])) { in VisitEnumConstantDecl()
2708 ConflictingDecls.push_back(FoundDecls[I]); in VisitEnumConstantDecl()
2751 SmallVector<NamedDecl *, 2> FoundDecls; in VisitFunctionDecl() local
2752 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitFunctionDecl()
2753 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitFunctionDecl()
2754 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitFunctionDecl()
2757 if (FunctionDecl *FoundFunction = dyn_cast<FunctionDecl>(FoundDecls[I])) { in VisitFunctionDecl()
2782 ConflictingDecls.push_back(FoundDecls[I]); in VisitFunctionDecl()
2965 SmallVector<NamedDecl *, 2> FoundDecls; in VisitFieldDecl() local
2966 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitFieldDecl()
2967 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitFieldDecl()
2968 if (FieldDecl *FoundField = dyn_cast<FieldDecl>(FoundDecls[I])) { in VisitFieldDecl()
3024 SmallVector<NamedDecl *, 2> FoundDecls; in VisitIndirectFieldDecl() local
3025 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitIndirectFieldDecl()
3026 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitIndirectFieldDecl()
3028 = dyn_cast<IndirectFieldDecl>(FoundDecls[I])) { in VisitIndirectFieldDecl()
3094 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCIvarDecl() local
3095 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCIvarDecl()
3096 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCIvarDecl()
3097 if (ObjCIvarDecl *FoundIvar = dyn_cast<ObjCIvarDecl>(FoundDecls[I])) { in VisitObjCIvarDecl()
3152 SmallVector<NamedDecl *, 2> FoundDecls; in VisitVarDecl() local
3153 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitVarDecl()
3154 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitVarDecl()
3155 if (!FoundDecls[I]->isInIdentifierNamespace(IDNS)) in VisitVarDecl()
3158 if (VarDecl *FoundVar = dyn_cast<VarDecl>(FoundDecls[I])) { in VisitVarDecl()
3197 ConflictingDecls.push_back(FoundDecls[I]); in VisitVarDecl()
3333 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCMethodDecl() local
3334 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCMethodDecl()
3335 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCMethodDecl()
3336 if (ObjCMethodDecl *FoundMethod = dyn_cast<ObjCMethodDecl>(FoundDecls[I])) { in VisitObjCMethodDecl()
3609 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCProtocolDecl() local
3610 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCProtocolDecl()
3611 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCProtocolDecl()
3612 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_ObjCProtocol)) in VisitObjCProtocolDecl()
3615 if ((MergeWithProtocol = dyn_cast<ObjCProtocolDecl>(FoundDecls[I]))) in VisitObjCProtocolDecl()
3807 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCInterfaceDecl() local
3808 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCInterfaceDecl()
3809 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCInterfaceDecl()
3810 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Ordinary)) in VisitObjCInterfaceDecl()
3813 if ((MergeWithIface = dyn_cast<ObjCInterfaceDecl>(FoundDecls[I]))) in VisitObjCInterfaceDecl()
3969 SmallVector<NamedDecl *, 2> FoundDecls; in VisitObjCPropertyDecl() local
3970 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitObjCPropertyDecl()
3971 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitObjCPropertyDecl()
3973 = dyn_cast<ObjCPropertyDecl>(FoundDecls[I])) { in VisitObjCPropertyDecl()
4206 SmallVector<NamedDecl *, 2> FoundDecls; in VisitClassTemplateDecl() local
4207 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitClassTemplateDecl()
4208 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitClassTemplateDecl()
4209 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Ordinary)) in VisitClassTemplateDecl()
4212 Decl *Found = FoundDecls[I]; in VisitClassTemplateDecl()
4225 ConflictingDecls.push_back(FoundDecls[I]); in VisitClassTemplateDecl()
4398 SmallVector<NamedDecl *, 2> FoundDecls; in VisitVarTemplateDecl() local
4399 DC->getRedeclContext()->localUncachedLookup(Name, FoundDecls); in VisitVarTemplateDecl()
4400 for (unsigned I = 0, N = FoundDecls.size(); I != N; ++I) { in VisitVarTemplateDecl()
4401 if (!FoundDecls[I]->isInIdentifierNamespace(Decl::IDNS_Ordinary)) in VisitVarTemplateDecl()
4404 Decl *Found = FoundDecls[I]; in VisitVarTemplateDecl()
4414 ConflictingDecls.push_back(FoundDecls[I]); in VisitVarTemplateDecl()