• Home
  • Raw
  • Download

Lines Matching refs:LexicalDC

392         NamedDecl *D, DeclContext *&DC, DeclContext *&LexicalDC,
1600 NamedDecl *D, DeclContext *&DC, DeclContext *&LexicalDC, in ImportDeclParts() argument
1631 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in ImportDeclParts()
2216 DeclContext *DC, *LexicalDC; in VisitEmptyDecl() local
2217 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitEmptyDecl()
2229 ToD->setLexicalDeclContext(LexicalDC); in VisitEmptyDecl()
2230 LexicalDC->addDeclInternal(ToD); in VisitEmptyDecl()
2275 DeclContext *LexicalDC = DC; in VisitStaticAssertDecl() local
2291 ToD->setLexicalDeclContext(LexicalDC); in VisitStaticAssertDecl()
2292 LexicalDC->addDeclInternal(ToD); in VisitStaticAssertDecl()
2298 DeclContext *DC, *LexicalDC; in VisitNamespaceDecl() local
2302 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitNamespaceDecl()
2359 ToNamespace->setLexicalDeclContext(LexicalDC); in VisitNamespaceDecl()
2360 LexicalDC->addDeclInternal(ToNamespace); in VisitNamespaceDecl()
2381 DeclContext *DC, *LexicalDC; in VisitNamespaceAliasDecl() local
2385 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, LookupD, Loc)) in VisitNamespaceAliasDecl()
2409 ToD->setLexicalDeclContext(LexicalDC); in VisitNamespaceAliasDecl()
2410 LexicalDC->addDeclInternal(ToD); in VisitNamespaceAliasDecl()
2418 DeclContext *DC, *LexicalDC; in VisitTypedefNameDecl() local
2422 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitTypedefNameDecl()
2491 ToTypedef->setLexicalDeclContext(LexicalDC); in VisitTypedefNameDecl()
2496 LexicalDC->addDeclInternal(ToTypedef); in VisitTypedefNameDecl()
2512 DeclContext *DC, *LexicalDC; in VisitTypeAliasTemplateDecl() local
2516 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, FoundD, Loc)) in VisitTypeAliasTemplateDecl()
2560 ToAlias->setLexicalDeclContext(LexicalDC); in VisitTypeAliasTemplateDecl()
2561 LexicalDC->addDeclInternal(ToAlias); in VisitTypeAliasTemplateDecl()
2567 DeclContext *DC, *LexicalDC; in VisitLabelDecl() local
2571 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitLabelDecl()
2576 assert(LexicalDC->isFunctionOrMethod()); in VisitLabelDecl()
2599 ToLabel->setLexicalDeclContext(LexicalDC); in VisitLabelDecl()
2600 LexicalDC->addDeclInternal(ToLabel); in VisitLabelDecl()
2606 DeclContext *DC, *LexicalDC; in VisitEnumDecl() local
2610 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitEnumDecl()
2686 D2->setLexicalDeclContext(LexicalDC); in VisitEnumDecl()
2687 LexicalDC->addDeclInternal(D2); in VisitEnumDecl()
2707 DeclContext *DC = nullptr, *LexicalDC = nullptr; in VisitRecordDecl() local
2711 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitRecordDecl()
2845 D2->setLexicalDeclContext(LexicalDC); in VisitRecordDecl()
2911 D2->setLexicalDeclContext(LexicalDC); in VisitRecordDecl()
2936 DeclContext *DC, *LexicalDC; in VisitEnumConstantDecl() local
2940 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitEnumConstantDecl()
2947 if (!LexicalDC->isFunctionOrMethod()) { in VisitEnumConstantDecl()
2987 ToEnumerator->setLexicalDeclContext(LexicalDC); in VisitEnumConstantDecl()
2988 LexicalDC->addDeclInternal(ToEnumerator); in VisitEnumConstantDecl()
3181 DeclContext *DC, *LexicalDC; in VisitFunctionDecl() local
3185 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitFunctionDecl()
3211 else if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionDecl()
3428 ToFunction->setLexicalDeclContext(LexicalDC); in VisitFunctionDecl()
3539 DeclContext *DC, *LexicalDC; in VisitFieldDecl() local
3543 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitFieldDecl()
3610 ToField->setLexicalDeclContext(LexicalDC); in VisitFieldDecl()
3614 LexicalDC->addDeclInternal(ToField); in VisitFieldDecl()
3620 DeclContext *DC, *LexicalDC; in VisitIndirectFieldDecl() local
3624 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitIndirectFieldDecl()
3683 ToIndirectField->setLexicalDeclContext(LexicalDC); in VisitIndirectFieldDecl()
3684 LexicalDC->addDeclInternal(ToIndirectField); in VisitIndirectFieldDecl()
3738 DeclContext *DC, *LexicalDC; in VisitFriendDecl() local
3739 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitFriendDecl()
3816 FrD->setLexicalDeclContext(LexicalDC); in VisitFriendDecl()
3817 LexicalDC->addDeclInternal(FrD); in VisitFriendDecl()
3823 DeclContext *DC, *LexicalDC; in VisitObjCIvarDecl() local
3827 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCIvarDecl()
3867 ToIvar->setLexicalDeclContext(LexicalDC); in VisitObjCIvarDecl()
3868 LexicalDC->addDeclInternal(ToIvar); in VisitObjCIvarDecl()
3886 DeclContext *DC, *LexicalDC; in VisitVarDecl() local
3890 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitVarDecl()
3990 ToVar->setLexicalDeclContext(LexicalDC); in VisitVarDecl()
4106 DeclContext *DC, *LexicalDC; in VisitObjCMethodDecl() local
4110 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCMethodDecl()
4223 ToMethod->setLexicalDeclContext(LexicalDC); in VisitObjCMethodDecl()
4224 LexicalDC->addDeclInternal(ToMethod); in VisitObjCMethodDecl()
4238 DeclContext *DC, *LexicalDC; in VisitObjCTypeParamDecl() local
4242 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCTypeParamDecl()
4263 Result->setLexicalDeclContext(LexicalDC); in VisitObjCTypeParamDecl()
4269 DeclContext *DC, *LexicalDC; in VisitObjCCategoryDecl() local
4273 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCCategoryDecl()
4305 ToCategory->setLexicalDeclContext(LexicalDC); in VisitObjCCategoryDecl()
4306 LexicalDC->addDeclInternal(ToCategory); in VisitObjCCategoryDecl()
4416 DeclContext *DC, *LexicalDC; in VisitObjCProtocolDecl() local
4420 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCProtocolDecl()
4446 ToProto->setLexicalDeclContext(LexicalDC); in VisitObjCProtocolDecl()
4447 LexicalDC->addDeclInternal(ToProto); in VisitObjCProtocolDecl()
4460 DeclContext *DC, *LexicalDC; in VisitLinkageSpecDecl() local
4461 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitLinkageSpecDecl()
4487 ToLinkageSpec->setLexicalDeclContext(LexicalDC); in VisitLinkageSpecDecl()
4488 LexicalDC->addDeclInternal(ToLinkageSpec); in VisitLinkageSpecDecl()
4494 DeclContext *DC, *LexicalDC; in VisitUsingDecl() local
4498 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitUsingDecl()
4520 ToUsing->setLexicalDeclContext(LexicalDC); in VisitUsingDecl()
4521 LexicalDC->addDeclInternal(ToUsing); in VisitUsingDecl()
4544 DeclContext *DC, *LexicalDC; in VisitUsingShadowDecl() local
4548 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitUsingShadowDecl()
4566 ToShadow->setLexicalDeclContext(LexicalDC); in VisitUsingShadowDecl()
4580 LexicalDC->addDeclInternal(ToShadow); in VisitUsingShadowDecl()
4586 DeclContext *DC, *LexicalDC; in VisitUsingDirectiveDecl() local
4590 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitUsingDirectiveDecl()
4618 ToUsingDir->setLexicalDeclContext(LexicalDC); in VisitUsingDirectiveDecl()
4619 LexicalDC->addDeclInternal(ToUsingDir); in VisitUsingDirectiveDecl()
4626 DeclContext *DC, *LexicalDC; in VisitUnresolvedUsingValueDecl() local
4630 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitUnresolvedUsingValueDecl()
4654 ToUsingValue->setLexicalDeclContext(LexicalDC); in VisitUnresolvedUsingValueDecl()
4655 LexicalDC->addDeclInternal(ToUsingValue); in VisitUnresolvedUsingValueDecl()
4662 DeclContext *DC, *LexicalDC; in VisitUnresolvedUsingTypenameDecl() local
4666 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitUnresolvedUsingTypenameDecl()
4686 ToUsing->setLexicalDeclContext(LexicalDC); in VisitUnresolvedUsingTypenameDecl()
4687 LexicalDC->addDeclInternal(ToUsing); in VisitUnresolvedUsingTypenameDecl()
4847 DeclContext *DC, *LexicalDC; in VisitObjCInterfaceDecl() local
4851 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCInterfaceDecl()
4880 ToIface->setLexicalDeclContext(LexicalDC); in VisitObjCInterfaceDecl()
4881 LexicalDC->addDeclInternal(ToIface); in VisitObjCInterfaceDecl()
4907 DeclContext *DC, *LexicalDC; in VisitObjCCategoryImplDecl() local
4908 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitObjCCategoryImplDecl()
4924 ToImpl->setLexicalDeclContext(LexicalDC); in VisitObjCCategoryImplDecl()
4925 LexicalDC->addDeclInternal(ToImpl); in VisitObjCCategoryImplDecl()
4952 DeclContext *DC, *LexicalDC; in VisitObjCImplementationDecl() local
4953 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitObjCImplementationDecl()
4974 Impl->setLexicalDeclContext(LexicalDC); in VisitObjCImplementationDecl()
5021 DeclContext *DC, *LexicalDC; in VisitObjCPropertyDecl() local
5025 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitObjCPropertyDecl()
5080 ToProperty->setLexicalDeclContext(LexicalDC); in VisitObjCPropertyDecl()
5081 LexicalDC->addDeclInternal(ToProperty); in VisitObjCPropertyDecl()
5100 DeclContext *DC, *LexicalDC; in VisitObjCPropertyImplDecl() local
5101 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitObjCPropertyImplDecl()
5104 auto *InImpl = cast<ObjCImplDecl>(LexicalDC); in VisitObjCPropertyImplDecl()
5131 ToImpl->setLexicalDeclContext(LexicalDC); in VisitObjCPropertyImplDecl()
5132 LexicalDC->addDeclInternal(ToImpl); in VisitObjCPropertyImplDecl()
5316 DeclContext *DC, *LexicalDC; in VisitClassTemplateDecl() local
5320 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitClassTemplateDecl()
5388 D2->setLexicalDeclContext(LexicalDC); in VisitClassTemplateDecl()
5431 DeclContext *DC, *LexicalDC; in VisitClassTemplateSpecializationDecl() local
5432 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitClassTemplateSpecializationDecl()
5551 D2->setLexicalDeclContext(LexicalDC); in VisitClassTemplateSpecializationDecl()
5555 LexicalDC->addDeclInternal(D2); in VisitClassTemplateSpecializationDecl()
5604 DeclContext *DC, *LexicalDC; in VisitVarTemplateDecl() local
5608 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitVarTemplateDecl()
5681 ToVarTD->setLexicalDeclContext(LexicalDC); in VisitVarTemplateDecl()
5682 LexicalDC->addDeclInternal(ToVarTD); in VisitVarTemplateDecl()
5722 DeclContext *DC, *LexicalDC; in VisitVarTemplateSpecializationDecl() local
5723 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitVarTemplateSpecializationDecl()
5839 D2->setLexicalDeclContext(LexicalDC); in VisitVarTemplateSpecializationDecl()
5840 LexicalDC->addDeclInternal(D2); in VisitVarTemplateSpecializationDecl()
5853 DeclContext *DC, *LexicalDC; in VisitFunctionTemplateDecl() local
5858 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToD, Loc)) in VisitFunctionTemplateDecl()
5869 if (!LexicalDC->isFunctionOrMethod()) { in VisitFunctionTemplateDecl()
5909 ToFunc->setLexicalDeclContext(LexicalDC); in VisitFunctionTemplateDecl()
5910 LexicalDC->addDeclInternal(ToFunc); in VisitFunctionTemplateDecl()
7225 DeclContext *DC, *LexicalDC; in VisitLifetimeExtendedTemporaryDecl() local
7226 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitLifetimeExtendedTemporaryDecl()
7241 To->setLexicalDeclContext(LexicalDC); in VisitLifetimeExtendedTemporaryDecl()
7242 LexicalDC->addDeclInternal(To); in VisitLifetimeExtendedTemporaryDecl()