Home
last modified time | relevance | path

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

12

/freebsd-9-stable/contrib/llvm/tools/clang/lib/Sema/
DSemaCodeComplete.cpp282 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()
554 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult() argument
578 CurContext, in CheckHiddenResult()
816 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult() argument
831 CurContext); in MaybeAddResult()
892 if (CheckHiddenResult(R, CurContext, I->first)) in MaybeAddResult()
[all …]
DSemaLambda.cpp35 DeclContext *const CurContext, VarDecl *VD) { in GetScopeIndexOfNearestCaptureReadyLambda() argument
37 DeclContext *EnclosingDC = CurContext; in GetScopeIndexOfNearestCaptureReadyLambda()
100 DeclContext *const CurContext, VarDecl *VD, in GetInnermostEnclosingCapturableLambda() argument
104 GetScopeIndexOfNearestCaptureReadyLambda(FunctionScopes,CurContext, VD); in GetInnermostEnclosingCapturableLambda()
160 DeclContext *DC = CurContext; in createLambdaClosureType()
225 !ActiveTemplateInstantiations.empty() || CurContext->isDependentContext(); in getCurrentMangleNumberContext()
232 isInInlineFunction(CurContext)) { in getCurrentMangleNumberContext()
314 Method->setLexicalDeclContext(CurContext); in startLambdaDefinition()
322 TemplateMethod->setLexicalDeclContext(CurContext); in startLambdaDefinition()
722 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Loc, in createLambdaInitCaptureVarDecl()
[all …]
DSemaDeclCXX.cpp1223 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassName()
1244 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassNameTypo()
1741 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, in ActOnAccessSpecifier()
1743 CurContext->addHiddenDecl(ASDecl); in ActOnAccessSpecifier()
1871 assert(isa<CXXRecordDecl>(CurContext)); in ActOnCXXMemberDeclarator()
1876 if (cast<CXXRecordDecl>(CurContext)->isInterface()) { in ActOnCXXMemberDeclarator()
2032 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator()
2038 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator()
2817 if (CurContext->isDependentContext()) in BuildDelegatingInitializer()
2946 if (CurContext->isDependentContext()) in BuildBaseInitializer()
[all …]
DSemaDecl.cpp380 if (CurContext->isRecord()) { in isMicrosoftMissingTypename()
383 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext); in isMicrosoftMissingTypename()
390 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename()
905 assert(getContainingDC(DC) == CurContext && in PushDeclContext()
907 CurContext = DC; in PushDeclContext()
912 assert(CurContext && "DeclContext imbalance!"); in PopDeclContext()
914 CurContext = getContainingDC(CurContext); in PopDeclContext()
915 assert(CurContext && "Popped translation unit!"); in PopDeclContext()
943 assert(Ancestor->getEntity() == CurContext && "ancestor context mismatch"); in EnterDeclaratorContext()
946 CurContext = DC; in EnterDeclaratorContext()
[all …]
DSemaCXXScopeSpec.cpp30 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()
650 DeclContext *DC = LookupCtx ? LookupCtx : CurContext; in BuildCXXNestedNameSpecifier()
884 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
DSemaDeclObjC.cpp480 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName, in ActOnStartClassInterface()
655 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
714 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
729 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
838 = ObjCProtocolDecl::Create(Context, CurContext, Ident, in ActOnForwardProtocolDeclaration()
878 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
881 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
905 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
908 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
937 CatIDecl = ObjCCategoryDecl::Create(Context, CurContext, AtCatImplLoc, in ActOnStartCategoryImplementation()
[all …]
DSemaTemplate.cpp902 SemanticContext = CurContext; in CheckClassTemplate()
940 DeclContext *OutermostContext = CurContext; in CheckClassTemplate()
978 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1030 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1096 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1097 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1121 if (!CurContext->isDependentContext()) { in CheckClassTemplate()
1129 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, in CheckClassTemplate()
1134 CurContext->addDecl(Friend); in CheckClassTemplate()
2041 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) { in CheckTemplateIdType()
[all …]
DSemaStmt.cpp1764 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl()
1799 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl()
2541 if (!CurContext->isDependentContext()) in ActOnCapScopeReturnStmt()
2641 !CurContext->isDependentContext())) in ActOnCapScopeReturnStmt()
2769 FunctionDecl *FD = cast<FunctionDecl>(CurContext); in ActOnReturnStmt()
2912 !CurContext->isDependentContext()) in ActOnReturnStmt()
3191 DeclContext *DC = CurContext; in CreateCapturedStmtRecordDecl()
3205 CD = CapturedDecl::Create(Context, CurContext, NumParams); in CreateCapturedStmtRecordDecl()
3259 CurContext = CD; in ActOnCapturedRegionStart()
DSemaLookup.cpp3362 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3372 if (Res && Res->getDeclContext() != CurContext) in LookupOrCreateLabel()
3376 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
3609 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext, in NamespaceSpecifierSet() argument
3611 : Context(Context), CurContextChain(BuildContextChain(CurContext)), in NamespaceSpecifierSet()
3896 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer()
3897 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer()
4067 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() && in CorrectTypo()
4068 isa<CXXMethodDecl>(CurContext)) in CorrectTypo()
4102 NamespaceSpecifierSet Namespaces(Context, CurContext, SS); in CorrectTypo()
DSemaAccess.cpp1469 EffectiveContext EC(S.CurContext); in CheckAccess()
1681 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent(); in CheckConstructorAccess()
1780 EffectiveContext EC(CurContext); in CheckFriendAccess()
1882 EffectiveContext EC(CurContext); in IsSimplyAccessible()
DSema.cpp78 CurContext(0), OriginalLexicalContext(0), in Sema()
219 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader()
816 DeclContext *DC = CurContext; in getFunctionLevelDeclContext()
DSemaObjCProperty.cpp170 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext); in ActOnProperty()
352 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension()
354 DeclContext *DC = CurContext; in HandlePropertyInClassExtension()
823 dyn_cast<ObjCContainerDecl>(CurContext); in ActOnPropertyImplDecl()
1145 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc, in ActOnPropertyImplDecl()
DSemaExpr.cpp69 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) in CanUseDecl()
1615 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in BuildDeclRefExpr()
1629 (CurContext != D->getDeclContext() && in BuildDeclRefExpr()
1727 ? CurContext : 0; in DiagnoseEmptyLookup()
1742 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseEmptyLookup()
2037 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(CurContext); in ActOnIdExpression()
2292 if (CurContext->isClosure()) in LookupInObjCMethod()
3989 S.getScopeForContext(S.CurContext), NULL, CCC)) { in TryTypoCorrectionForCall()
8250 DeclContext *DC = S.CurContext, *Prev = 0; in isReferenceToNonConstCapture()
10179 BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc); in ActOnBlockStart()
[all …]
DSemaExprMember.cpp918 DeclContext *EnclosingFunctionCtx = CurContext->getParent()->getParent(); in BuildMemberReferenceExpr()
927 } else if (CurContext->isDependentContext()) { in BuildMemberReferenceExpr()
DSemaOverload.cpp930 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() && in CheckOverload()
1098 return FD->isUnavailable() && !cast<Decl>(CurContext)->isUnavailable(); in isFunctionConsideredUnavailable()
5543 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddOverloadCandidate()
8807 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext); in DiagnoseBadTarget()
9527 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) in AddMatchingNonTemplateFunction()
10048 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { in DiagnoseTwoPhaseLookup()
10283 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() && in buildOverloadedCallSet()
10284 (isa<FunctionDecl>(CurContext) || isa<CXXRecordDecl>(CurContext))) { in buildOverloadedCallSet()
11291 if ((isa<CXXConstructorDecl>(CurContext) || in BuildCallToMemberFunction()
11292 isa<CXXDestructorDecl>(CurContext)) && in BuildCallToMemberFunction()
[all …]
DSemaTemplateInstantiateDecl.cpp2273 SemaRef.LookupQualifiedName(Previous, SemaRef.CurContext); in VisitClassScopeFunctionSpecializationDecl()
4050 cast<CXXRecordDecl>(CurContext->getParent())); in InstantiateMemInitializers()
4386 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl()
4422 DeclContext *DC = CurContext; in FindInstantiatedDecl()
DSemaExprCXX.cpp5225 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext); in ActOnStartCXXMemberReference()
5863 assert(S.CurContext->isDependentContext()); in CheckLambdaCaptures()
5885 S.CurContext, Var, S)) { in CheckLambdaCaptures()
5918 S.CurContext, /*0 is 'this'*/ 0, S)) { in CheckLambdaCaptures()
6021 const bool IsInLambdaDeclContext = isLambdaCallOperator(CurContext); in ActOnFinishFullExpr()
DSemaExprObjC.cpp1156 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext); in EmitRelatedResultTypeNoteForReturn()
1386 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor()); in isSelfExpr()
2572 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext); in BuildInstanceMessage()
DSemaOpenMP.cpp521 CurContext->addDecl(D); in ActOnOpenMPThreadprivateDirective()
DSemaTemplateInstantiate.cpp1016 Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs); in TransformDefinition()
1771 NewParm->setDeclContext(CurContext); in SubstParmVarDecl()
/freebsd-9-stable/contrib/llvm/tools/clang/lib/AST/
DCXXInheritance.cpp126 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const { in isCurrentInstantiation()
129 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in isCurrentInstantiation()
130 if (CurContext->Equals(this)) in isCurrentInstantiation()
/freebsd-9-stable/contrib/llvm/tools/clang/include/clang/Sema/
DSemaLambda.h35 DeclContext *const CurContext, VarDecl *VD, Sema &S);
DSema.h250 DeclContext *CurContext; variable
484 : S(S), SavedContext(S.CurContext), in ContextRAII()
489 S.CurContext = ContextToPush; in ContextRAII()
494 S.CurContext = SavedContext; in pop()
8000 return OriginalLexicalContext ? OriginalLexicalContext : CurContext; in getCurLexicalContext()
/freebsd-9-stable/contrib/llvm/tools/clang/lib/Parse/
DParseCXXInlineMethods.cpp121 ((Actions.CurContext->isDependentContext() || in ParseCXXInlineMethodDef()
DParseTemplate.cpp1268 Sema::ContextRAII GlobalSavedContext(Actions, Actions.CurContext); in ParseLateTemplatedFuncDef()

12