Lines Matching refs:LexicalDC
84 DeclContext *&LexicalDC, DeclarationName &Name,
1999 DeclContext *&LexicalDC, in ImportDeclParts() argument
2008 LexicalDC = DC; in ImportDeclParts()
2010 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in ImportDeclParts()
2011 if (!LexicalDC) in ImportDeclParts()
2459 DeclContext *DC, *LexicalDC; in VisitNamespaceDecl() local
2463 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitNamespaceDecl()
2509 ToNamespace->setLexicalDeclContext(LexicalDC); in VisitNamespaceDecl()
2510 LexicalDC->addDeclInternal(ToNamespace); in VisitNamespaceDecl()
2530 DeclContext *DC, *LexicalDC; in VisitTypedefNameDecl() local
2534 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitTypedefNameDecl()
2590 ToTypedef->setLexicalDeclContext(LexicalDC); in VisitTypedefNameDecl()
2592 LexicalDC->addDeclInternal(ToTypedef); in VisitTypedefNameDecl()
2607 DeclContext *DC, *LexicalDC; in VisitLabelDecl() local
2611 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitLabelDecl()
2616 assert(LexicalDC->isFunctionOrMethod()); in VisitLabelDecl()
2633 ToLabel->setLexicalDeclContext(LexicalDC); in VisitLabelDecl()
2634 LexicalDC->addDeclInternal(ToLabel); in VisitLabelDecl()
2640 DeclContext *DC, *LexicalDC; in VisitEnumDecl() local
2644 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitEnumDecl()
2697 D2->setLexicalDeclContext(LexicalDC); in VisitEnumDecl()
2699 LexicalDC->addDeclInternal(D2); in VisitEnumDecl()
2728 DeclContext *DC, *LexicalDC; in VisitRecordDecl() local
2732 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitRecordDecl()
2865 D2->setLexicalDeclContext(LexicalDC); in VisitRecordDecl()
2866 LexicalDC->addDeclInternal(D2); in VisitRecordDecl()
2881 DeclContext *DC, *LexicalDC; in VisitEnumConstantDecl() local
2885 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitEnumConstantDecl()
2896 if (!LexicalDC->isFunctionOrMethod()) { in VisitEnumConstantDecl()
2932 ToEnumerator->setLexicalDeclContext(LexicalDC); in VisitEnumConstantDecl()
2934 LexicalDC->addDeclInternal(ToEnumerator); in VisitEnumConstantDecl()
2940 DeclContext *DC, *LexicalDC; in VisitFunctionDecl() local
2944 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitFunctionDecl()
2951 if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionDecl()
3103 ToFunction->setLexicalDeclContext(LexicalDC); in VisitFunctionDecl()
3134 LexicalDC->addDeclInternal(ToFunction); in VisitFunctionDecl()
3174 DeclContext *DC, *LexicalDC; in VisitFieldDecl() local
3178 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitFieldDecl()
3222 ToField->setLexicalDeclContext(LexicalDC); in VisitFieldDecl()
3232 LexicalDC->addDeclInternal(ToField); in VisitFieldDecl()
3238 DeclContext *DC, *LexicalDC; in VisitIndirectFieldDecl() local
3242 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitIndirectFieldDecl()
3300 ToIndirectField->setLexicalDeclContext(LexicalDC); in VisitIndirectFieldDecl()
3302 LexicalDC->addDeclInternal(ToIndirectField); in VisitIndirectFieldDecl()
3308 DeclContext *DC, *LexicalDC; in VisitObjCIvarDecl() local
3312 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCIvarDecl()
3352 ToIvar->setLexicalDeclContext(LexicalDC); in VisitObjCIvarDecl()
3354 LexicalDC->addDeclInternal(ToIvar); in VisitObjCIvarDecl()
3361 DeclContext *DC, *LexicalDC; in VisitVarDecl() local
3365 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitVarDecl()
3472 ToVar->setLexicalDeclContext(LexicalDC); in VisitVarDecl()
3474 LexicalDC->addDeclInternal(ToVar); in VisitVarDecl()
3548 DeclContext *DC, *LexicalDC; in VisitObjCMethodDecl() local
3552 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCMethodDecl()
3654 ToMethod->setLexicalDeclContext(LexicalDC); in VisitObjCMethodDecl()
3656 LexicalDC->addDeclInternal(ToMethod); in VisitObjCMethodDecl()
3662 DeclContext *DC, *LexicalDC; in VisitObjCTypeParamDecl() local
3666 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCTypeParamDecl()
3685 Result->setLexicalDeclContext(LexicalDC); in VisitObjCTypeParamDecl()
3691 DeclContext *DC, *LexicalDC; in VisitObjCCategoryDecl() local
3695 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCCategoryDecl()
3719 ToCategory->setLexicalDeclContext(LexicalDC); in VisitObjCCategoryDecl()
3720 LexicalDC->addDeclInternal(ToCategory); in VisitObjCCategoryDecl()
3823 DeclContext *DC, *LexicalDC; in VisitObjCProtocolDecl() local
3827 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCProtocolDecl()
3849 ToProto->setLexicalDeclContext(LexicalDC); in VisitObjCProtocolDecl()
3850 LexicalDC->addDeclInternal(ToProto); in VisitObjCProtocolDecl()
3863 DeclContext *LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitLinkageSpecDecl() local
3883 ToLinkageSpec->setLexicalDeclContext(LexicalDC); in VisitLinkageSpecDecl()
3884 LexicalDC->addDeclInternal(ToLinkageSpec); in VisitLinkageSpecDecl()
4020 DeclContext *DC, *LexicalDC; in VisitObjCInterfaceDecl() local
4024 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCInterfaceDecl()
4050 ToIface->setLexicalDeclContext(LexicalDC); in VisitObjCInterfaceDecl()
4051 LexicalDC->addDeclInternal(ToIface); in VisitObjCInterfaceDecl()
4085 DeclContext *LexicalDC = DC; in VisitObjCCategoryImplDecl() local
4087 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCCategoryImplDecl()
4088 if (!LexicalDC) in VisitObjCCategoryImplDecl()
4091 ToImpl->setLexicalDeclContext(LexicalDC); in VisitObjCCategoryImplDecl()
4094 LexicalDC->addDeclInternal(ToImpl); in VisitObjCCategoryImplDecl()
4133 DeclContext *LexicalDC in VisitObjCImplementationDecl() local
4135 if (!LexicalDC) in VisitObjCImplementationDecl()
4137 Impl->setLexicalDeclContext(LexicalDC); in VisitObjCImplementationDecl()
4183 DeclContext *DC, *LexicalDC; in VisitObjCPropertyDecl() local
4187 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCPropertyDecl()
4231 ToProperty->setLexicalDeclContext(LexicalDC); in VisitObjCPropertyDecl()
4232 LexicalDC->addDeclInternal(ToProperty); in VisitObjCPropertyDecl()
4259 DeclContext *LexicalDC = DC; in VisitObjCPropertyImplDecl() local
4261 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitObjCPropertyImplDecl()
4262 if (!LexicalDC) in VisitObjCPropertyImplDecl()
4266 ObjCImplDecl *InImpl = dyn_cast<ObjCImplDecl>(LexicalDC); in VisitObjCPropertyImplDecl()
4290 ToImpl->setLexicalDeclContext(LexicalDC); in VisitObjCPropertyImplDecl()
4292 LexicalDC->addDeclInternal(ToImpl); in VisitObjCPropertyImplDecl()
4419 DeclContext *DC, *LexicalDC; in VisitClassTemplateDecl() local
4423 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitClassTemplateDecl()
4489 D2->setLexicalDeclContext(LexicalDC); in VisitClassTemplateDecl()
4490 LexicalDC->addDeclInternal(D2); in VisitClassTemplateDecl()
4529 DeclContext *LexicalDC = DC; in VisitClassTemplateSpecializationDecl() local
4531 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitClassTemplateSpecializationDecl()
4532 if (!LexicalDC) in VisitClassTemplateSpecializationDecl()
4582 D2->setLexicalDeclContext(LexicalDC); in VisitClassTemplateSpecializationDecl()
4583 LexicalDC->addDeclInternal(D2); in VisitClassTemplateSpecializationDecl()
4609 DeclContext *DC, *LexicalDC; in VisitVarTemplateDecl() local
4613 if (ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitVarTemplateDecl()
4666 D2Templated->setLexicalDeclContext(LexicalDC); in VisitVarTemplateDecl()
4686 D2->setLexicalDeclContext(LexicalDC); in VisitVarTemplateDecl()
4687 LexicalDC->addDeclInternal(D2); in VisitVarTemplateDecl()
4725 DeclContext *LexicalDC = DC; in VisitVarTemplateSpecializationDecl() local
4727 LexicalDC = Importer.ImportContext(D->getLexicalDeclContext()); in VisitVarTemplateSpecializationDecl()
4728 if (!LexicalDC) in VisitVarTemplateSpecializationDecl()
4783 D2->setLexicalDeclContext(LexicalDC); in VisitVarTemplateSpecializationDecl()
4784 LexicalDC->addDeclInternal(D2); in VisitVarTemplateSpecializationDecl()