Lines Matching refs:DC

82     bool ImportDeclParts(NamedDecl *D, DeclContext *&DC, 
1690 bool ASTNodeImporter::ImportDeclParts(NamedDecl *D, DeclContext *&DC,
1695 DC = Importer.ImportContext(D->getDeclContext());
1696 if (!DC)
1699 LexicalDC = DC;
2062 DeclContext *DC, *LexicalDC;
2065 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2073 if (TranslationUnitDecl *TU = dyn_cast<TranslationUnitDecl>(DC))
2076 MergeWithNamespace = cast<NamespaceDecl>(DC)->getAnonymousNamespace();
2080 DC->localUncachedLookup(Name, FoundDecls);
2095 Name = Importer.HandleNameConflict(Name, DC, Decl::IDNS_Namespace,
2104 ToNamespace = NamespaceDecl::Create(Importer.getToContext(), DC,
2115 if (TranslationUnitDecl *TU = dyn_cast<TranslationUnitDecl>(DC))
2118 cast<NamespaceDecl>(DC)->setAnonymousNamespace(ToNamespace);
2130 DeclContext *DC, *LexicalDC;
2133 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2139 if (!DC->isFunctionOrMethod()) {
2143 DC->localUncachedLookup(Name, FoundDecls);
2158 Name = Importer.HandleNameConflict(Name, DC, IDNS,
2176 ToTypedef = TypeAliasDecl::Create(Importer.getToContext(), DC,
2181 ToTypedef = TypedefDecl::Create(Importer.getToContext(), DC,
2204 DeclContext *DC, *LexicalDC;
2207 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2220 if (!DC->isFunctionOrMethod() && SearchName) {
2223 DC->localUncachedLookup(SearchName, FoundDecls);
2243 Name = Importer.HandleNameConflict(Name, DC, IDNS,
2250 EnumDecl *D2 = EnumDecl::Create(Importer.getToContext(), DC,
2289 DeclContext *DC, *LexicalDC;
2292 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2306 if (!DC->isFunctionOrMethod()) {
2309 DC->localUncachedLookup(SearchName, FoundDecls);
2347 Name = Importer.HandleNameConflict(Name, DC, IDNS,
2360 DC, StartLoc, Loc,
2366 DC, StartLoc, Loc, Name.getAsIdentifierInfo());
2386 DeclContext *DC, *LexicalDC;
2389 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2402 DC->localUncachedLookup(Name, FoundDecls);
2411 Name = Importer.HandleNameConflict(Name, DC, IDNS,
2424 = EnumConstantDecl::Create(Importer.getToContext(), cast<EnumDecl>(DC), Loc,
2436 DeclContext *DC, *LexicalDC;
2439 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2448 DC->localUncachedLookup(Name, FoundDecls);
2482 Name = Importer.HandleNameConflict(Name, DC, IDNS,
2515 cast<CXXRecordDecl>(DC),
2524 cast<CXXRecordDecl>(DC),
2532 cast<CXXRecordDecl>(DC),
2541 cast<CXXRecordDecl>(DC),
2550 ToFunction = FunctionDecl::Create(Importer.getToContext(), DC,
2601 DeclContext *DC, *LexicalDC;
2604 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2609 DC->localUncachedLookup(Name, FoundDecls);
2636 FieldDecl *ToField = FieldDecl::Create(Importer.getToContext(), DC,
2652 DeclContext *DC, *LexicalDC;
2655 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2660 DC->localUncachedLookup(Name, FoundDecls);
2701 Importer.getToContext(), DC,
2713 DeclContext *DC, *LexicalDC;
2716 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2721 DC->localUncachedLookup(Name, FoundDecls);
2749 cast<ObjCContainerDecl>(DC),
2763 DeclContext *DC, *LexicalDC;
2766 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2776 DC->localUncachedLookup(Name, FoundDecls);
2849 Name = Importer.HandleNameConflict(Name, DC, IDNS,
2864 VarDecl *ToVar = VarDecl::Create(Importer.getToContext(), DC,
2890 DeclContext *DC = Importer.getToContext().getTranslationUnitDecl();
2907 = ImplicitParamDecl::Create(Importer.getToContext(), DC,
2916 DeclContext *DC = Importer.getToContext().getTranslationUnitDecl();
2933 ParmVarDecl *ToParm = ParmVarDecl::Create(Importer.getToContext(), DC,
2945 DeclContext *DC, *LexicalDC;
2948 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
2952 DC->localUncachedLookup(Name, FoundDecls);
3025 ResultTy, ResultTInfo, DC,
3067 DeclContext *DC, *LexicalDC;
3070 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
3083 ToCategory = ObjCCategoryDecl::Create(Importer.getToContext(), DC,
3191 DeclContext *DC, *LexicalDC;
3194 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
3199 DC->localUncachedLookup(Name, FoundDecls);
3210 ToProto = ObjCProtocolDecl::Create(Importer.getToContext(), DC,
3337 DeclContext *DC, *LexicalDC;
3340 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
3346 DC->localUncachedLookup(Name, FoundDecls);
3358 ToIface = ObjCInterfaceDecl::Create(Importer.getToContext(), DC,
3382 DeclContext *DC = Importer.ImportContext(D->getDeclContext());
3383 if (!DC)
3387 ToImpl = ObjCCategoryImplDecl::Create(Importer.getToContext(), DC,
3394 DeclContext *LexicalDC = DC;
3490 DeclContext *DC, *LexicalDC;
3493 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
3498 DC->localUncachedLookup(Name, FoundDecls);
3527 = ObjCPropertyDecl::Create(Importer.getToContext(), DC, Loc,
3557 DeclContext *DC = Importer.ImportContext(D->getDeclContext());
3558 if (!DC)
3562 DeclContext *LexicalDC = DC;
3585 ToImpl = ObjCPropertyImplDecl::Create(Importer.getToContext(), DC,
3721 DeclContext *DC, *LexicalDC;
3724 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc))
3728 if (!DC->isFunctionOrMethod()) {
3731 DC->localUncachedLookup(Name, FoundDecls);
3753 Name = Importer.HandleNameConflict(Name, DC, Decl::IDNS_Ordinary,
3769 DC, StartLoc, IdLoc,
3781 ClassTemplateDecl *D2 = ClassTemplateDecl::Create(Importer.getToContext(), DC,
3824 DeclContext *DC = ClassTemplate->getDeclContext();
3825 if (!DC)
3828 DeclContext *LexicalDC = DC;
3868 D->getTagKind(), DC,
4609 DeclContext *DC,