Home
last modified time | relevance | path

Searched refs:CurContext (Results 1 – 24 of 24) sorted by relevance

/external/clang/lib/Sema/
DSemaCodeComplete.cpp267 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
277 void MaybeAddResult(Result R, DeclContext *CurContext = 0);
290 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
435 DeclContext *CurContext, in getRequiredQualification() argument
440 CommonAncestor && !CommonAncestor->Encloses(CurContext); in getRequiredQualification()
547 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult() argument
570 CurContext, in CheckHiddenResult()
767 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult() argument
778 MaybeAddResult(Result(Using->getTargetDecl(), R.Qualifier), CurContext); in MaybeAddResult()
839 if (CheckHiddenResult(R, CurContext, I->first)) in MaybeAddResult()
[all …]
DSemaCXXScopeSpec.cpp29 DeclContext *CurContext) { in getCurrentInstantiationOf() argument
42 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in getCurrentInstantiationOf()
43 if (CurContext->Equals(Record)) in getCurrentInstantiationOf()
65 return ::getCurrentInstantiationOf(T, CurContext); in computeDeclContext()
198 return ::getCurrentInstantiationOf(T, CurContext); in getCurrentInstantiationOf()
824 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
DSema.cpp69 PushOnScopeChains(TypedefDecl::Create(Context, CurContext, in ActOnTranslationUnitScope()
76 PushOnScopeChains(TypedefDecl::Create(Context, CurContext, in ActOnTranslationUnitScope()
93 = TypedefDecl::Create(Context, CurContext, in ActOnTranslationUnitScope()
104 ObjCInterfaceDecl::Create(Context, CurContext, SourceLocation(), in ActOnTranslationUnitScope()
116 = TypedefDecl::Create(Context, CurContext, in ActOnTranslationUnitScope()
129 = TypedefDecl::Create(Context, CurContext, in ActOnTranslationUnitScope()
145 CurContext(0), PackContext(0), MSStructPragmaOn(false), VisContext(0), in Sema()
215 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader()
574 DeclContext *DC = CurContext; in getFunctionLevelDeclContext()
DSemaDeclCXX.cpp618 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassName()
1012 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, in ActOnAccessSpecifier()
1014 CurContext->addHiddenDecl(ASDecl); in ActOnAccessSpecifier()
1078 assert(isa<CXXRecordDecl>(CurContext)); in ActOnCXXMemberDeclarator()
1132 if ((DC = computeDeclContext(SS, false)) && DC->Equals(CurContext)) in ActOnCXXMemberDeclarator()
1144 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, BitWidth, in ActOnCXXMemberDeclarator()
1644 if (CurContext->isDependentContext()) in BuildMemberInitializer()
1703 assert(!CurContext->isDependentContext()); in BuildDelegatingInitializer()
1843 if (CurContext->isDependentContext()) { in BuildBaseInitializer()
2002 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc, in BuildImplicitMemberInitializer()
[all …]
DSemaDeclObjC.cpp249 return ::CheckObjCMethodOverrides(*this, NewMethod, CurContext); in CheckObjCMethodOverrides()
429 IDecl->setLexicalDeclContext(CurContext); in ActOnStartClassInterface()
430 CurContext->addDecl(IDecl); in ActOnStartClassInterface()
436 IDecl = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartClassInterface()
570 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatiblityAlias()
631 CurContext->addDecl(PDecl); in ActOnStartProtocolInterface()
635 PDecl = ObjCProtocolDecl::Create(Context, CurContext, in ActOnStartProtocolInterface()
736 PDecl = ObjCProtocolDecl::Create(Context, CurContext, in ActOnForwardProtocolDeclaration()
751 ObjCForwardProtocolDecl::Create(Context, CurContext, AtProtocolLoc, in ActOnForwardProtocolDeclaration()
754 CurContext->addDecl(PDecl); in ActOnForwardProtocolDeclaration()
[all …]
DSemaDecl.cpp273 if (CurContext->isRecord()) { in isMicrosoftMissingTypename()
276 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext); in isMicrosoftMissingTypename()
749 assert(getContainingDC(DC) == CurContext && in PushDeclContext()
751 CurContext = DC; in PushDeclContext()
756 assert(CurContext && "DeclContext imbalance!"); in PopDeclContext()
758 CurContext = getContainingDC(CurContext); in PopDeclContext()
759 assert(CurContext && "Popped translation unit!"); in PopDeclContext()
787 assert(Ancestor->getEntity() == CurContext && "ancestor context mismatch"); in EnterDeclaratorContext()
790 CurContext = DC; in EnterDeclaratorContext()
795 assert(S->getEntity() == CurContext && "Context imbalance!"); in ExitDeclaratorContext()
[all …]
DSemaTemplate.cpp849 SemanticContext = CurContext; in CheckClassTemplate()
887 DeclContext *OutermostContext = CurContext; in CheckClassTemplate()
904 if (CurContext->isDependentContext()) { in CheckClassTemplate()
979 !(TUK == TUK_Friend && CurContext->isDependentContext())) in CheckClassTemplate()
1018 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1019 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1039 if (!CurContext->isDependentContext()) { in CheckClassTemplate()
1047 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, in CheckClassTemplate()
1052 CurContext->addDecl(Friend); in CheckClassTemplate()
1953 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) { in CheckTemplateIdType()
[all …]
DSemaLookup.cpp2956 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
2966 if (Res && Res->getDeclContext() != CurContext) in LookupOrCreateLabel()
2970 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
3167 explicit NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext) in NamespaceSpecifierSet() argument
3168 : Context(Context), CurContextChain(BuildContextChain(CurContext)), in NamespaceSpecifierSet()
3415 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer()
3416 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer()
3531 NamespaceSpecifierSet Namespaces(Context, CurContext); in CorrectTypo()
DSemaStmt.cpp1049 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl()
1085 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl()
1706 !CurContext->isDependentContext()) in ActOnBlockReturnStmt()
1844 !CurContext->isDependentContext()) in ActOnReturnStmt()
DSemaExprObjC.cpp239 DeclContext *DC = CurContext; in tryCaptureObjCSelf()
449 DeclContext *DC = CurContext; in isSelfExpr()
1499 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext); in BuildInstanceMessage()
DSemaExpr.cpp107 if (cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) { in DiagnoseUseOfDecl()
1062 if (!S.CurContext->isFunctionOrMethod()) return CR_NoCapture; in diagnoseUncapturableValueReference()
1075 if (S.CurContext == var->getDeclContext()->getParent()) in diagnoseUncapturableValueReference()
1123 DeclContext *DC = S.CurContext; in shouldCaptureValueReference()
1338 for (DeclContext *DC = SS.isEmpty() ? CurContext : 0; in DiagnoseEmptyLookup()
1347 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseEmptyLookup()
8283 BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc); in ActOnBlockStart()
8285 CurContext->addDecl(Block); in ActOnBlockStart()
8289 CurContext = Block; in ActOnBlockStart()
8892 if (CurContext->isDependentContext()) in MarkDeclarationReferenced()
[all …]
DSemaDeclAttr.cpp3136 DeclContext *SavedContext = CurContext; in DeclApplyPragmaWeak()
3137 CurContext = Context.getTranslationUnitDecl(); in DeclApplyPragmaWeak()
3139 CurContext = SavedContext; in DeclApplyPragmaWeak()
3319 if (isDeclDeprecated(cast<Decl>(CurContext))) in EmitDeprecationWarning()
DSemaObjCProperty.cpp734 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc, in ActOnPropertyImplDecl()
1092 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(CurContext)) { in isPropertyReadonly()
DSemaTemplateInstantiate.cpp861 Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs); in TransformDefinition()
1524 NewParm->setDeclContext(CurContext); in SubstParmVarDecl()
DSemaInit.cpp4679 isa<CXXConstructorDecl>(S.CurContext)) { in Diagnose()
4685 = cast<CXXConstructorDecl>(S.CurContext); in Diagnose()
4744 isa<CXXConstructorDecl>(S.CurContext)) { in Diagnose()
4748 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(S.CurContext); in Diagnose()
DSemaAccess.cpp1324 EffectiveContext EC(S.CurContext); in CheckAccess()
DSemaOverload.cpp600 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord(); in CheckOverload()
747 return FD->isUnavailable() && !cast<Decl>(CurContext)->isUnavailable(); in isFunctionConsideredUnavailable()
8167 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { in DiagnoseTwoPhaseLookup()
9290 if ((isa<CXXConstructorDecl>(CurContext) || in BuildCallToMemberFunction()
9291 isa<CXXDestructorDecl>(CurContext)) && in BuildCallToMemberFunction()
9298 << MD->getDeclName() << isa<CXXDestructorDecl>(CurContext) in BuildCallToMemberFunction()
DSemaTemplateInstantiateDecl.cpp3066 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl()
3125 for (DeclContext *DC = CurContext; !DC->isFileContext(); in FindInstantiatedDecl()
DSemaExprMember.cpp195 if (CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(SemaRef.CurContext)) { in DiagnoseInstanceReference()
DSemaType.cpp1757 switch (cast<TagDecl>(SemaRef.CurContext)->getTagKind()) { in GetDeclSpecTypeForDeclarator()
DSemaExprCXX.cpp638 DeclContext *DC = CurContext; in getAndCaptureCurrentThisType()
DTreeTransform.h1234 getSema().CurContext->addDecl(Var); in RebuildExceptionDecl()
/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp91 ((Actions.CurContext->isDependentContext() || in ParseCXXInlineMethodDef()
/external/clang/include/clang/Sema/
DSema.h206 DeclContext *CurContext; variable
412 : S(S), SavedContext(S.CurContext), in ContextRAII()
416 S.CurContext = ContextToPush; in ContextRAII()
421 S.CurContext = SavedContext; in pop()