Lines Matching refs:LexicalDC

83                          DeclContext *&LexicalDC, DeclarationName &Name, 
1831 DeclContext *&LexicalDC, in ImportDeclParts() argument
1839 LexicalDC = DC; in ImportDeclParts()
1841 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in ImportDeclParts()
1842 if (!LexicalDC) in ImportDeclParts()
2261 DeclContext *DC, *LexicalDC; in VisitNamespaceDecl() local
2264 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitNamespaceDecl()
2308 ToNamespace->setLexicalDeclContext(LexicalDC); in VisitNamespaceDecl()
2309 LexicalDC->addDeclInternal(ToNamespace); in VisitNamespaceDecl()
2329 DeclContext *DC, *LexicalDC; in VisitTypedefNameDecl() local
2332 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitTypedefNameDecl()
2386 ToTypedef->setLexicalDeclContext(LexicalDC); in VisitTypedefNameDecl()
2388 LexicalDC->addDeclInternal(ToTypedef); in VisitTypedefNameDecl()
2403 DeclContext *DC, *LexicalDC; in VisitEnumDecl() local
2406 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitEnumDecl()
2457 D2->setLexicalDeclContext(LexicalDC); in VisitEnumDecl()
2459 LexicalDC->addDeclInternal(D2); in VisitEnumDecl()
2488 DeclContext *DC, *LexicalDC; in VisitRecordDecl() local
2491 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitRecordDecl()
2598 D2->setLexicalDeclContext(LexicalDC); in VisitRecordDecl()
2599 LexicalDC->addDeclInternal(D2); in VisitRecordDecl()
2614 DeclContext *DC, *LexicalDC; in VisitEnumConstantDecl() local
2617 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitEnumConstantDecl()
2626 if (!LexicalDC->isFunctionOrMethod()) { in VisitEnumConstantDecl()
2662 ToEnumerator->setLexicalDeclContext(LexicalDC); in VisitEnumConstantDecl()
2664 LexicalDC->addDeclInternal(ToEnumerator); in VisitEnumConstantDecl()
2670 DeclContext *DC, *LexicalDC; in VisitFunctionDecl() local
2673 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitFunctionDecl()
2678 if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionDecl()
2813 ToFunction->setLexicalDeclContext(LexicalDC); in VisitFunctionDecl()
2837 LexicalDC->addDeclInternal(ToFunction); in VisitFunctionDecl()
2877 DeclContext *DC, *LexicalDC; in VisitFieldDecl() local
2880 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitFieldDecl()
2922 ToField->setLexicalDeclContext(LexicalDC); in VisitFieldDecl()
2927 LexicalDC->addDeclInternal(ToField); in VisitFieldDecl()
2933 DeclContext *DC, *LexicalDC; in VisitIndirectFieldDecl() local
2936 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitIndirectFieldDecl()
2992 ToIndirectField->setLexicalDeclContext(LexicalDC); in VisitIndirectFieldDecl()
2994 LexicalDC->addDeclInternal(ToIndirectField); in VisitIndirectFieldDecl()
3000 DeclContext *DC, *LexicalDC; in VisitObjCIvarDecl() local
3003 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitObjCIvarDecl()
3041 ToIvar->setLexicalDeclContext(LexicalDC); in VisitObjCIvarDecl()
3043 LexicalDC->addDeclInternal(ToIvar); in VisitObjCIvarDecl()
3050 DeclContext *DC, *LexicalDC; in VisitVarDecl() local
3053 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitVarDecl()
3158 ToVar->setLexicalDeclContext(LexicalDC); in VisitVarDecl()
3160 LexicalDC->addDeclInternal(ToVar); in VisitVarDecl()
3226 DeclContext *DC, *LexicalDC; in VisitObjCMethodDecl() local
3229 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitObjCMethodDecl()
3329 ToMethod->setLexicalDeclContext(LexicalDC); in VisitObjCMethodDecl()
3331 LexicalDC->addDeclInternal(ToMethod); in VisitObjCMethodDecl()
3337 DeclContext *DC, *LexicalDC; in VisitObjCCategoryDecl() local
3340 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitObjCCategoryDecl()
3361 ToCategory->setLexicalDeclContext(LexicalDC); in VisitObjCCategoryDecl()
3362 LexicalDC->addDeclInternal(ToCategory); in VisitObjCCategoryDecl()
3461 DeclContext *DC, *LexicalDC; in VisitObjCProtocolDecl() local
3464 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitObjCProtocolDecl()
3484 ToProto->setLexicalDeclContext(LexicalDC); in VisitObjCProtocolDecl()
3485 LexicalDC->addDeclInternal(ToProto); in VisitObjCProtocolDecl()
3498 DeclContext *LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitLinkageSpecDecl() local
3518 ToLinkageSpec->setLexicalDeclContext(LexicalDC); in VisitLinkageSpecDecl()
3519 LexicalDC->addDeclInternal(ToLinkageSpec); in VisitLinkageSpecDecl()
3636 DeclContext *DC, *LexicalDC; in VisitObjCInterfaceDecl() local
3639 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitObjCInterfaceDecl()
3662 ToIface->setLexicalDeclContext(LexicalDC); in VisitObjCInterfaceDecl()
3663 LexicalDC->addDeclInternal(ToIface); in VisitObjCInterfaceDecl()
3693 DeclContext *LexicalDC = DC; in VisitObjCCategoryImplDecl() local
3695 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCCategoryImplDecl()
3696 if (!LexicalDC) in VisitObjCCategoryImplDecl()
3699 ToImpl->setLexicalDeclContext(LexicalDC); in VisitObjCCategoryImplDecl()
3702 LexicalDC->addDeclInternal(ToImpl); in VisitObjCCategoryImplDecl()
3741 DeclContext *LexicalDC in VisitObjCImplementationDecl() local
3743 if (!LexicalDC) in VisitObjCImplementationDecl()
3745 Impl->setLexicalDeclContext(LexicalDC); in VisitObjCImplementationDecl()
3791 DeclContext *DC, *LexicalDC; in VisitObjCPropertyDecl() local
3794 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitObjCPropertyDecl()
3835 ToProperty->setLexicalDeclContext(LexicalDC); in VisitObjCPropertyDecl()
3836 LexicalDC->addDeclInternal(ToProperty); in VisitObjCPropertyDecl()
3863 DeclContext *LexicalDC = DC; in VisitObjCPropertyImplDecl() local
3865 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl()
3866 if (!LexicalDC) in VisitObjCPropertyImplDecl()
3870 ObjCImplDecl *InImpl = dyn_cast<ObjCImplDecl>(LexicalDC); in VisitObjCPropertyImplDecl()
3893 ToImpl->setLexicalDeclContext(LexicalDC); in VisitObjCPropertyImplDecl()
3895 LexicalDC->addDeclInternal(ToImpl); in VisitObjCPropertyImplDecl()
4022 DeclContext *DC, *LexicalDC; in VisitClassTemplateDecl() local
4025 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitClassTemplateDecl()
4074 D2Templated->setLexicalDeclContext(LexicalDC); in VisitClassTemplateDecl()
4089 D2->setLexicalDeclContext(LexicalDC); in VisitClassTemplateDecl()
4090 LexicalDC->addDeclInternal(D2); in VisitClassTemplateDecl()
4129 DeclContext *LexicalDC = DC; in VisitClassTemplateSpecializationDecl() local
4131 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitClassTemplateSpecializationDecl()
4132 if (!LexicalDC) in VisitClassTemplateSpecializationDecl()
4183 D2->setLexicalDeclContext(LexicalDC); in VisitClassTemplateSpecializationDecl()
4184 LexicalDC->addDeclInternal(D2); in VisitClassTemplateSpecializationDecl()
4210 DeclContext *DC, *LexicalDC; in VisitVarTemplateDecl() local
4213 if (ImportDeclParts(D, DC, LexicalDC, Name, Loc)) in VisitVarTemplateDecl()
4264 D2Templated->setLexicalDeclContext(LexicalDC); in VisitVarTemplateDecl()
4284 D2->setLexicalDeclContext(LexicalDC); in VisitVarTemplateDecl()
4285 LexicalDC->addDeclInternal(D2); in VisitVarTemplateDecl()
4323 DeclContext *LexicalDC = DC; in VisitVarTemplateSpecializationDecl() local
4325 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitVarTemplateSpecializationDecl()
4326 if (!LexicalDC) in VisitVarTemplateSpecializationDecl()
4381 D2->setLexicalDeclContext(LexicalDC); in VisitVarTemplateSpecializationDecl()
4382 LexicalDC->addDeclInternal(D2); in VisitVarTemplateSpecializationDecl()