Home
last modified time | relevance | path

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

12

/external/clang/lib/Sema/
DSemaCodeComplete.cpp282 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
292 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr);
305 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
451 const DeclContext *CurContext, in getRequiredQualification() argument
456 CommonAncestor && !CommonAncestor->Encloses(CurContext); in getRequiredQualification()
553 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult() argument
577 CurContext, in CheckHiddenResult()
812 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult() argument
827 CurContext); in MaybeAddResult()
888 if (CheckHiddenResult(R, CurContext, I->first)) in MaybeAddResult()
[all …]
DSemaDeclCXX.cpp1281 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassName()
1302 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassNameTypo()
1863 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, in ActOnAccessSpecifier()
1865 CurContext->addHiddenDecl(ASDecl); in ActOnAccessSpecifier()
2017 assert(isa<CXXRecordDecl>(CurContext)); in ActOnCXXMemberDeclarator()
2022 if (cast<CXXRecordDecl>(CurContext)->isInterface()) { in ActOnCXXMemberDeclarator()
2184 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator()
2190 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator()
3181 if (CurContext->isDependentContext()) in BuildDelegatingInitializer()
3310 if (CurContext->isDependentContext()) in BuildBaseInitializer()
[all …]
DSemaDecl.cpp200 for (DeclContext *DC = S.CurContext; in recoverFromTypeInKnownDependentBase()
484 synthesizeCurrentNestedNameSpecifier(Context, CurContext); in ActOnDelayedDefaultTemplateArg()
540 if (CurContext->isRecord()) { in isMicrosoftMissingTypename()
546 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext); in isMicrosoftMissingTypename()
552 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename()
1071 assert(getContainingDC(DC) == CurContext && in PushDeclContext()
1073 CurContext = DC; in PushDeclContext()
1078 assert(CurContext && "DeclContext imbalance!"); in PopDeclContext()
1080 CurContext = getContainingDC(CurContext); in PopDeclContext()
1081 assert(CurContext && "Popped translation unit!"); in PopDeclContext()
[all …]
DSemaCXXScopeSpec.cpp30 DeclContext *CurContext) { in getCurrentInstantiationOf() argument
38 Record->isCurrentInstantiation(CurContext)) in getCurrentInstantiationOf()
60 return ::getCurrentInstantiationOf(T, CurContext); in computeDeclContext()
179 return ::getCurrentInstantiationOf(T, CurContext); in getCurrentInstantiationOf()
764 DeclContext *DC = LookupCtx ? LookupCtx : CurContext; in BuildCXXNestedNameSpecifier()
1008 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
DSemaLambda.cpp246 DeclContext *DC = CurContext; in createLambdaClosureType()
311 !ActiveTemplateInstantiations.empty() || CurContext->isDependentContext(); in getCurrentMangleNumberContext()
318 isInInlineFunction(CurContext)) { in getCurrentMangleNumberContext()
400 Method->setLexicalDeclContext(CurContext); in startLambdaDefinition()
408 TemplateMethod->setLexicalDeclContext(CurContext); in startLambdaDefinition()
775 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Loc, in createLambdaInitCaptureVarDecl()
1418 S.Context, S.CurContext, Loc, Loc, IterationVarName, SizeType, in performLambdaVarCaptureInitialization()
1598 if (!CurContext->isDependentContext()) { in BuildLambdaExpr()
1655 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocation); in BuildBlockForLambdaConversion()
DSemaDeclObjC.cpp689 return ObjCTypeParamDecl::Create(Context, CurContext, variance, varianceLoc, in actOnObjCTypeParam()
963 CurContext, in ActOnStartClassInterface()
982 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName, in ActOnStartClassInterface()
1088 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
1147 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1162 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1684 = ObjCProtocolDecl::Create(Context, CurContext, Ident, in ActOnForwardProtocolDeclaration()
1725 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1729 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1772 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
[all …]
DSemaTemplate.cpp897 SemanticContext = CurContext; in CheckClassTemplate()
945 DeclContext *OutermostContext = CurContext; in CheckClassTemplate()
999 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1064 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1131 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1132 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1160 if (!CurContext->isDependentContext()) { in CheckClassTemplate()
1169 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc); in CheckClassTemplate()
1171 CurContext->addDecl(Friend); in CheckClassTemplate()
2168 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) { in CheckTemplateIdType()
[all …]
DSema.cpp81 CurContext(nullptr), OriginalLexicalContext(nullptr), in Sema()
300 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader()
928 DeclContext *DC = CurContext; in getFunctionLevelDeclContext()
1198 !CurBSI->TheDecl->Encloses(CurContext)) { in getCurBlock()
1213 !CurLSI->Lambda->Encloses(CurContext)) { in getCurLambda()
DSemaOpenMP.cpp533 DeclContext *DC = SemaRef.CurContext; in buildVarDecl()
1114 CurContext->addDecl(D); in ActOnOpenMPThreadprivateDirective()
3505 if (ISC.Dependent() || SemaRef.CurContext->isDependentContext() || HasErrors) in CheckOpenMPIterationSpace()
3688 if (SemaRef.CurContext->isDependentContext()) in CheckOpenMPLoop()
4097 assert((CurContext->isDependentContext() || B.builtAll()) && in ActOnOpenMPSimdDirective()
4100 if (!CurContext->isDependentContext()) { in ActOnOpenMPSimdDirective()
4150 assert((CurContext->isDependentContext() || B.builtAll()) && in ActOnOpenMPForDirective()
4153 if (!CurContext->isDependentContext()) { in ActOnOpenMPForDirective()
4186 assert((CurContext->isDependentContext() || B.builtAll()) && in ActOnOpenMPForSimdDirective()
4189 if (!CurContext->isDependentContext()) { in ActOnOpenMPForSimdDirective()
[all …]
DSemaCoroutine.cpp113 auto *FD = dyn_cast<FunctionDecl>(S.CurContext); in checkCoroutineContext()
115 S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext) in checkCoroutineContext()
DSemaLookup.cpp3642 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3652 if (Res && Res->getDeclContext() != CurContext) in LookupOrCreateLabel()
3656 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
4057 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet() argument
4058 : Context(Context), CurContextChain(buildContextChain(CurContext)) { in NamespaceSpecifierSet()
4317 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer()
4318 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer()
4398 if (getLangOpts().MSVCCompat && CurContext->isDependentContext() && in makeTypoCorrectionConsumer()
4399 isa<CXXMethodDecl>(CurContext)) in makeTypoCorrectionConsumer()
4779 CurContext(SemaRef.CurContext), MemberFn(ME) { in FunctionCallFilterCCC()
[all …]
DSemaAccess.cpp1464 EffectiveContext EC(S.CurContext); in CheckAccess()
1675 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent(); in CheckConstructorAccess()
1768 EffectiveContext EC(CurContext); in CheckFriendAccess()
1870 EffectiveContext EC(CurContext); in IsSimplyAccessible()
DSemaStmt.cpp1865 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl()
1906 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl()
2854 if (!CurContext->isDependentContext()) in ActOnCapScopeReturnStmt()
3155 FunctionDecl *FD = cast<FunctionDecl>(CurContext); in BuildReturnStmt()
3680 DeclContext *DC = CurContext; in ActOnSEHTryBlock()
3763 DeclContext *DC = CurContext; in CreateCapturedStmtRecordDecl()
3780 CD = CapturedDecl::Create(Context, CurContext, NumParams); in CreateCapturedStmtRecordDecl()
3836 CurContext = CD; in ActOnCapturedRegionStart()
3888 CurContext = CD; in ActOnCapturedRegionStart()
DSemaObjCProperty.cpp198 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext); in ActOnProperty()
421 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension()
423 DeclContext *DC = CurContext; in HandlePropertyInClassExtension()
893 dyn_cast<ObjCContainerDecl>(CurContext); in ActOnPropertyImplDecl()
1220 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc, in ActOnPropertyImplDecl()
DSemaExprCXX.cpp842 if (isGenericLambdaCallOperatorSpecialization(CurContext) && in getCurrentThisType()
843 CurContext->getParent()->getParent()->isRecord()) { in getCurrentThisType()
849 cast<CXXRecordDecl>(CurContext->getParent()->getParent())); in getCurrentThisType()
2269 EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(CurContext), Matches); in FindUsualDeallocationFunction()
2303 EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(CurContext), Matches); in FindDeallocationFunction()
5673 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext); in ActOnStartCXXMemberReference()
6313 assert(S.CurContext->isDependentContext()); in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()
6314 assert(CurrentLSI->CallOperator == S.CurContext && in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()
6788 const bool IsInLambdaDeclContext = isLambdaCallOperator(CurContext); in ActOnFinishFullExpr()
DSemaOverload.cpp917 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() && in CheckOverload()
1119 return FD->isUnavailable() && !cast<Decl>(CurContext)->isUnavailable(); in isFunctionConsideredUnavailable()
5755 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddOverloadCandidate()
6150 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddMethodCandidate()
8594 FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext); in isBetterOverloadCandidate()
9463 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext); in DiagnoseBadTarget()
10304 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) in AddMatchingNonTemplateFunction()
10419 S.EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(S.CurContext), Matches); in EliminateSuboptimalCudaMatches()
10846 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { in DiagnoseTwoPhaseLookup()
11085 CurContext->isDependentContext() && !isSFINAEContext() && in buildOverloadedCallSet()
[all …]
DSemaStmtAsm.cpp80 FunctionDecl *Func = dyn_cast<FunctionDecl>(S.CurContext); in CheckNakedParmReference()
DSemaTemplateInstantiateDecl.cpp2447 SemaRef.LookupQualifiedName(Previous, SemaRef.CurContext); in VisitClassScopeFunctionSpecializationDecl()
4125 cast<CXXRecordDecl>(CurContext->getParent())); in InstantiateMemInitializers()
4477 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl()
4486 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl()
4522 DeclContext *DC = CurContext; in FindInstantiatedDecl()
DSemaExprMember.cpp968 DeclContext *EnclosingFunctionCtx = CurContext->getParent()->getParent(); in BuildMemberReferenceExpr()
977 } else if (CurContext->isDependentContext()) { in BuildMemberReferenceExpr()
DSemaExpr.cpp71 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) in CanUseDecl()
1677 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in BuildDeclRefExpr()
1816 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr; in DiagnoseEmptyLookup()
1831 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseEmptyLookup()
2013 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext)) in recoverFromMSUnqualifiedLookup()
2453 if (CurContext->isClosure()) in LookupInObjCMethod()
4401 S.getScopeForContext(S.CurContext), nullptr, in TryTypoCorrectionForCall()
9234 DeclContext *DC = S.CurContext, *Prev = nullptr; in isReferenceToNonConstCapture()
11401 BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc); in ActOnBlockStart()
11414 CurContext->addDecl(Block); in ActOnBlockStart()
[all …]
DSemaExceptionSpec.cpp43 auto *RD = dyn_cast<CXXRecordDecl>(CurContext); in isLibstdcxxEagerExceptionSpecHack()
/external/clang/lib/AST/
DCXXInheritance.cpp127 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const { in isCurrentInstantiation()
130 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in isCurrentInstantiation()
131 if (CurContext->Equals(this)) in isCurrentInstantiation()
/external/clang/include/clang/Sema/
DSemaInternal.h120 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), in TypoCorrectionConsumer()
247 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
DTypoCorrection.h338 DeclContext *CurContext; variable
/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp111 ((Actions.CurContext->isDependentContext() || in ParseCXXInlineMethodDef()

12