/external/clang/lib/Sema/ |
D | SemaCodeComplete.cpp | 282 bool CheckHiddenResult(Result &R, DeclContext *CurContext, 292 void MaybeAddResult(Result R, DeclContext *CurContext = 0); 305 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, 451 const DeclContext *CurContext, in getRequiredQualification() argument 456 CommonAncestor && !CommonAncestor->Encloses(CurContext); in getRequiredQualification() 555 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult() argument 579 CurContext, in CheckHiddenResult() 815 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult() argument 830 CurContext); in MaybeAddResult() 891 if (CheckHiddenResult(R, CurContext, I->first)) in MaybeAddResult() [all …]
|
D | SemaCXXScopeSpec.cpp | 30 DeclContext *CurContext) { in getCurrentInstantiationOf() argument 38 Record->isCurrentInstantiation(CurContext)) in getCurrentInstantiationOf() 60 return ::getCurrentInstantiationOf(T, CurContext); in computeDeclContext() 176 return ::getCurrentInstantiationOf(T, CurContext); in getCurrentInstantiationOf() 656 DeclContext *DC = LookupCtx ? LookupCtx : CurContext; in BuildCXXNestedNameSpecifier() 890 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
|
D | SemaDecl.cpp | 388 if (CurContext->isRecord()) { in isMicrosoftMissingTypename() 391 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext); in isMicrosoftMissingTypename() 398 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename() 924 assert(getContainingDC(DC) == CurContext && in PushDeclContext() 926 CurContext = DC; in PushDeclContext() 931 assert(CurContext && "DeclContext imbalance!"); in PopDeclContext() 933 CurContext = getContainingDC(CurContext); in PopDeclContext() 934 assert(CurContext && "Popped translation unit!"); in PopDeclContext() 962 assert(Ancestor->getEntity() == CurContext && "ancestor context mismatch"); in EnterDeclaratorContext() 965 CurContext = DC; in EnterDeclaratorContext() [all …]
|
D | SemaDeclCXX.cpp | 1217 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassName() 1697 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, in ActOnAccessSpecifier() 1699 CurContext->addHiddenDecl(ASDecl); in ActOnAccessSpecifier() 1799 assert(isa<CXXRecordDecl>(CurContext)); in ActOnCXXMemberDeclarator() 1804 if (cast<CXXRecordDecl>(CurContext)->isInterface()) { in ActOnCXXMemberDeclarator() 1960 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator() 1966 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator() 2664 if (CurContext->isDependentContext()) in BuildDelegatingInitializer() 2793 if (CurContext->isDependentContext()) in BuildBaseInitializer() 3012 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc, in BuildImplicitMemberInitializer() [all …]
|
D | SemaDeclObjC.cpp | 482 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName, in ActOnStartClassInterface() 636 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias() 695 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 710 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 822 = ObjCProtocolDecl::Create(Context, CurContext, Ident, in ActOnForwardProtocolDeclaration() 862 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 865 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 889 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 892 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 921 CatIDecl = ObjCCategoryDecl::Create(Context, CurContext, AtCatImplLoc, in ActOnStartCategoryImplementation() [all …]
|
D | SemaLambda.cpp | 28 DeclContext *DC = CurContext; in createLambdaClosureType() 90 !ActiveTemplateInstantiations.empty() || CurContext->isDependentContext(); in getCurrentMangleNumberContext() 97 isInInlineFunction(CurContext)) { in getCurrentMangleNumberContext() 154 Method->setLexicalDeclContext(CurContext); in startLambdaDefinition() 504 if (CurContext->isDependentContext()) { in checkInitCapture() 1064 if (!CurContext->isDependentContext()) { in ActOnLambdaExpr() 1109 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocation); in BuildBlockForLambdaConversion()
|
D | SemaTemplate.cpp | 909 SemanticContext = CurContext; in CheckClassTemplate() 947 DeclContext *OutermostContext = CurContext; in CheckClassTemplate() 985 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate() 1037 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate() 1103 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate() 1104 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate() 1128 if (!CurContext->isDependentContext()) { in CheckClassTemplate() 1136 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, in CheckClassTemplate() 1141 CurContext->addDecl(Friend); in CheckClassTemplate() 2048 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) { in CheckTemplateIdType() [all …]
|
D | SemaStmt.cpp | 1764 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl() 1799 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl() 2478 if (!CurContext->isDependentContext()) { in ActOnCapScopeReturnStmt() 2508 if (CurContext->isDependentContext()) { in ActOnCapScopeReturnStmt() 2598 !CurContext->isDependentContext())) in ActOnCapScopeReturnStmt() 2702 FunctionDecl *FD = cast<FunctionDecl>(CurContext); in ActOnReturnStmt() 2703 if (CurContext->isDependentContext()) in ActOnReturnStmt() 2845 !CurContext->isDependentContext()) in ActOnReturnStmt() 3127 DeclContext *DC = CurContext; in CreateCapturedStmtRecordDecl() 3141 CD = CapturedDecl::Create(Context, CurContext, NumParams); in CreateCapturedStmtRecordDecl() [all …]
|
D | SemaLookup.cpp | 3259 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel() 3269 if (Res && Res->getDeclContext() != CurContext) in LookupOrCreateLabel() 3273 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel() 3498 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext, in NamespaceSpecifierSet() argument 3500 : Context(Context), CurContextChain(BuildContextChain(CurContext)), in NamespaceSpecifierSet() 3755 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer() 3756 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer() 3872 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() && in CorrectTypo() 3873 isa<CXXMethodDecl>(CurContext)) in CorrectTypo() 3895 NamespaceSpecifierSet Namespaces(Context, CurContext, SS); in CorrectTypo()
|
D | Sema.cpp | 78 CurContext(0), OriginalLexicalContext(0), in Sema() 207 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader() 790 DeclContext *DC = CurContext; in getFunctionLevelDeclContext()
|
D | SemaAccess.cpp | 1470 EffectiveContext EC(S.CurContext); in CheckAccess() 1680 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent(); in CheckConstructorAccess() 1779 EffectiveContext EC(CurContext); in CheckFriendAccess() 1881 EffectiveContext EC(CurContext); in IsSimplyAccessible()
|
D | SemaObjCProperty.cpp | 170 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext); in ActOnProperty() 337 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension() 339 DeclContext *DC = CurContext; in HandlePropertyInClassExtension() 859 dyn_cast<ObjCContainerDecl>(CurContext); in ActOnPropertyImplDecl() 1183 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc, in ActOnPropertyImplDecl()
|
D | SemaOpenMP.cpp | 147 CurContext->addDecl(D); in ActOnOpenMPThreadprivateDirective()
|
D | SemaExpr.cpp | 68 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) in CanUseDecl() 1565 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in BuildDeclRefExpr() 1579 (CurContext != D->getDeclContext() && in BuildDeclRefExpr() 1675 ? CurContext : 0; in DiagnoseEmptyLookup() 1690 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseEmptyLookup() 1993 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(CurContext); in ActOnIdExpression() 2232 if (CurContext->isClosure()) in LookupInObjCMethod() 3907 S.getScopeForContext(S.CurContext), NULL, CCC)) { in TryTypoCorrectionForCall() 8078 DeclContext *DC = S.CurContext; in isReferenceToNonConstCapture() 9986 BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc); in ActOnBlockStart() [all …]
|
D | SemaOverload.cpp | 926 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() && in CheckOverload() 1085 return FD->isUnavailable() && !cast<Decl>(CurContext)->isUnavailable(); in isFunctionConsideredUnavailable() 5496 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddOverloadCandidate() 8700 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext); in DiagnoseBadTarget() 9421 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) in AddMatchingNonTemplateFunction() 9928 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { in DiagnoseTwoPhaseLookup() 10163 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() && in buildOverloadedCallSet() 10164 (isa<FunctionDecl>(CurContext) || isa<CXXRecordDecl>(CurContext))) { in buildOverloadedCallSet() 11166 if ((isa<CXXConstructorDecl>(CurContext) || in BuildCallToMemberFunction() 11167 isa<CXXDestructorDecl>(CurContext)) && in BuildCallToMemberFunction() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 2227 SemaRef.LookupQualifiedName(Previous, SemaRef.CurContext); in VisitClassScopeFunctionSpecializationDecl() 3744 cast<CXXRecordDecl>(CurContext->getParent())); in InstantiateMemInitializers() 4058 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl() 4094 DeclContext *DC = CurContext; in FindInstantiatedDecl()
|
D | SemaExprObjC.cpp | 1139 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext); in EmitRelatedResultTypeNoteForReturn() 1370 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor()); in isSelfExpr() 2562 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext); in BuildInstanceMessage()
|
D | SemaTemplateInstantiate.cpp | 984 Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs); in TransformDefinition() 1757 NewParm->setDeclContext(CurContext); in SubstParmVarDecl()
|
D | SemaInit.cpp | 6440 isa<CXXConstructorDecl>(S.CurContext)) { in Diagnose() 6446 = cast<CXXConstructorDecl>(S.CurContext); in Diagnose() 6517 isa<CXXConstructorDecl>(S.CurContext)) { in Diagnose() 6521 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(S.CurContext); in Diagnose()
|
/external/clang/lib/AST/ |
D | CXXInheritance.cpp | 126 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const { in isCurrentInstantiation() 129 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in isCurrentInstantiation() 130 if (CurContext->Equals(this)) in isCurrentInstantiation()
|
/external/clang/lib/Parse/ |
D | ParseCXXInlineMethods.cpp | 119 ((Actions.CurContext->isDependentContext() || in ParseCXXInlineMethodDef()
|
D | ParseTemplate.cpp | 1272 Sema::ContextRAII GlobalSavedContext(Actions, Actions.CurContext); in ParseLateTemplatedFuncDef()
|
D | Parser.cpp | 1034 Actions.CurContext->isTranslationUnit()) { in ParseFunctionDefinition()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 250 DeclContext *CurContext; variable 479 : S(S), SavedContext(S.CurContext), in ContextRAII() 484 S.CurContext = ContextToPush; in ContextRAII() 489 S.CurContext = SavedContext; in pop() 7786 return OriginalLexicalContext ? OriginalLexicalContext : CurContext; in getCurLexicalContext()
|
/external/clang/include/clang/AST/ |
D | DeclCXX.h | 1328 bool isCurrentInstantiation(const DeclContext *CurContext) const;
|