Home
last modified time | relevance | path

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

12

/external/clang/lib/Sema/
DSemaCodeComplete.cpp281 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
291 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr);
304 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
450 const DeclContext *CurContext, in getRequiredQualification() argument
455 CommonAncestor && !CommonAncestor->Encloses(CurContext); in getRequiredQualification()
570 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult() argument
594 CurContext, in CheckHiddenResult()
829 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult() argument
844 CurContext); in MaybeAddResult()
905 if (CheckHiddenResult(R, CurContext, I->first)) in MaybeAddResult()
[all …]
DSemaDecl.cpp208 for (DeclContext *DC = S.CurContext; in recoverFromTypeInKnownDependentBase()
511 NNS = synthesizeCurrentNestedNameSpecifier(Context, CurContext); in ActOnMSVCUnknownTypeName()
514 findRecordWithDependentBasesOfEnclosingMethod(CurContext)) { in ActOnMSVCUnknownTypeName()
584 if (CurContext->isRecord()) { in isMicrosoftMissingTypename()
590 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext); in isMicrosoftMissingTypename()
596 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename()
1114 assert(getContainingDC(DC) == CurContext && in PushDeclContext()
1116 CurContext = DC; in PushDeclContext()
1121 assert(CurContext && "DeclContext imbalance!"); in PopDeclContext()
1123 CurContext = getContainingDC(CurContext); in PopDeclContext()
[all …]
DSemaDeclCXX.cpp1281 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassName()
1302 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassNameTypo()
1866 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, in ActOnAccessSpecifier()
1868 CurContext->addHiddenDecl(ASDecl); in ActOnAccessSpecifier()
2020 assert(isa<CXXRecordDecl>(CurContext)); in ActOnCXXMemberDeclarator()
2025 if (cast<CXXRecordDecl>(CurContext)->isInterface()) { in ActOnCXXMemberDeclarator()
2187 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator()
2193 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, in ActOnCXXMemberDeclarator()
3184 if (CurContext->isDependentContext()) in BuildDelegatingInitializer()
3313 if (CurContext->isDependentContext()) in BuildBaseInitializer()
[all …]
DSemaOpenMP.cpp620 DeclContext *DC = SemaRef.CurContext; in buildVarDecl()
1281 CurContext->addDecl(D); in ActOnOpenMPThreadprivateDirective()
1743 auto *CED = OMPCapturedExprDecl::Create(C, S.CurContext, Id, Ty); in buildCaptureDecl()
1746 S.CurContext->addHiddenDecl(CED); in buildCaptureDecl()
4175 if (Dependent() || SemaRef.CurContext->isDependentContext()) in CheckInit()
4258 if (Dependent() || SemaRef.CurContext->isDependentContext()) in CheckCond()
4289 if (Dependent() || SemaRef.CurContext->isDependentContext()) in CheckIncRHS()
4365 if (Dependent() || SemaRef.CurContext->isDependentContext()) in CheckInc()
4375 if (SemaRef.CurContext->isDependentContext()) in tryBuildCapture()
4731 if (ISC.Dependent() || SemaRef.CurContext->isDependentContext() || HasErrors) in CheckOpenMPIterationSpace()
[all …]
DSemaCXXScopeSpec.cpp30 DeclContext *CurContext) { in getCurrentInstantiationOf() argument
38 Record->isCurrentInstantiation(CurContext)) in getCurrentInstantiationOf()
60 return ::getCurrentInstantiationOf(T, CurContext); in computeDeclContext()
189 return ::getCurrentInstantiationOf(T, CurContext); in getCurrentInstantiationOf()
794 DeclContext *DC = LookupCtx ? LookupCtx : CurContext; in BuildCXXNestedNameSpecifier()
1038 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
DSemaLambda.cpp247 DeclContext *DC = CurContext; in createLambdaClosureType()
312 !ActiveTemplateInstantiations.empty() || CurContext->isDependentContext(); in getCurrentMangleNumberContext()
319 isInInlineFunction(CurContext)) { in getCurrentMangleNumberContext()
402 Method->setLexicalDeclContext(CurContext); in startLambdaDefinition()
410 TemplateMethod->setLexicalDeclContext(CurContext); in startLambdaDefinition()
778 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Loc, in createLambdaInitCaptureVarDecl()
1425 S.Context, S.CurContext, Loc, Loc, IterationVarName, SizeType, in performLambdaVarCaptureInitialization()
1614 if (!CurContext->isDependentContext()) { in BuildLambdaExpr()
1672 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocation); in BuildBlockForLambdaConversion()
DSemaDeclObjC.cpp688 return ObjCTypeParamDecl::Create(Context, CurContext, variance, varianceLoc, in actOnObjCTypeParam()
962 CurContext, in ActOnStartClassInterface()
981 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName, in ActOnStartClassInterface()
1087 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias()
1146 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1161 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface()
1692 = ObjCProtocolDecl::Create(Context, CurContext, Ident, in ActOnForwardProtocolDeclaration()
1733 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
1737 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface()
1780 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface()
[all …]
DSemaTemplate.cpp912 SemanticContext = CurContext; in CheckClassTemplate()
967 DeclContext *OutermostContext = CurContext; in CheckClassTemplate()
1021 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1081 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate()
1148 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1149 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate()
1177 if (!CurContext->isDependentContext()) { in CheckClassTemplate()
1186 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc); in CheckClassTemplate()
1188 CurContext->addDecl(Friend); in CheckClassTemplate()
2207 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) { in CheckTemplateIdType()
[all …]
DSema.cpp82 CurContext(nullptr), OriginalLexicalContext(nullptr), in Sema()
299 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader()
921 DeclContext *DC = CurContext; in getFunctionLevelDeclContext()
1191 !CurBSI->TheDecl->Encloses(CurContext)) { in getCurBlock()
1206 !CurLSI->Lambda->Encloses(CurContext)) { in getCurLambda()
DSemaCoroutine.cpp113 auto *FD = dyn_cast<FunctionDecl>(S.CurContext); in checkCoroutineContext()
115 S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext) in checkCoroutineContext()
DSemaLookup.cpp3728 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel()
3738 if (Res && Res->getDeclContext() != CurContext) in LookupOrCreateLabel()
3742 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel()
4143 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) in NamespaceSpecifierSet() argument
4144 : Context(Context), CurContextChain(buildContextChain(CurContext)) { in NamespaceSpecifierSet()
4399 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer()
4400 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer()
4480 if (getLangOpts().MSVCCompat && CurContext->isDependentContext() && in makeTypoCorrectionConsumer()
4481 isa<CXXMethodDecl>(CurContext)) in makeTypoCorrectionConsumer()
4870 CurContext(SemaRef.CurContext), MemberFn(ME) { in FunctionCallFilterCCC()
[all …]
DSemaAccess.cpp1459 EffectiveContext EC(S.CurContext); in CheckAccess()
1676 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent(); in CheckConstructorAccess()
1775 EffectiveContext EC(CurContext); in CheckFriendAccess()
1877 EffectiveContext EC(CurContext); in IsSimplyAccessible()
DSemaStmt.cpp1886 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl()
1927 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl()
2909 if (!CurContext->isDependentContext()) in ActOnCapScopeReturnStmt()
3228 FunctionDecl *FD = cast<FunctionDecl>(CurContext); in BuildReturnStmt()
3748 DeclContext *DC = CurContext; in ActOnSEHTryBlock()
3831 DeclContext *DC = CurContext; in CreateCapturedStmtRecordDecl()
3848 CD = CapturedDecl::Create(Context, CurContext, NumParams); in CreateCapturedStmtRecordDecl()
3904 CurContext = CD; in ActOnCapturedRegionStart()
3956 CurContext = CD; in ActOnCapturedRegionStart()
DSemaObjCProperty.cpp198 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext); in ActOnProperty()
422 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension()
424 DeclContext *DC = CurContext; in HandlePropertyInClassExtension()
904 dyn_cast<ObjCContainerDecl>(CurContext); in ActOnPropertyImplDecl()
1235 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc, in ActOnPropertyImplDecl()
DSemaExprCXX.cpp969 if (isGenericLambdaCallOperatorSpecialization(CurContext) && in getCurrentThisType()
970 CurContext->getParent()->getParent()->isRecord()) { in getCurrentThisType()
985 cast<CXXRecordDecl>(CurContext->getParent()->getParent())); in getCurrentThisType()
995 if (!ThisTy.isNull() && isLambdaCallOperator(CurContext)) in getCurrentThisType()
997 CurContext, Context); in getCurrentThisType()
2494 EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(CurContext), Matches); in FindUsualDeallocationFunction()
2528 EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(CurContext), Matches); in FindDeallocationFunction()
5949 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext); in ActOnStartCXXMemberReference()
6592 assert(S.CurContext->isDependentContext()); in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()
6593 assert(CurrentLSI->CallOperator == S.CurContext && in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()
[all …]
DSemaExprMember.cpp1008 DeclContext *EnclosingFunctionCtx = CurContext->getParent()->getParent(); in BuildMemberReferenceExpr()
1017 } else if (CurContext->isDependentContext()) { in BuildMemberReferenceExpr()
1824 !S.CurContext->isDependentContext() && in BuildFieldReferenceExpr()
DSemaOverload.cpp955 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() && in CheckOverload()
1164 Decl *C = cast<Decl>(CurContext); in isFunctionConsideredUnavailable()
5815 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddOverloadCandidate()
6196 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddMethodCandidate()
8676 FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext); in isBetterOverloadCandidate()
8781 const FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext); in BestViableFunction()
9609 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext); in DiagnoseBadTarget()
10470 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) in AddMatchingNonTemplateFunction()
10583 S.EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(S.CurContext), Matches); in EliminateSuboptimalCudaMatches()
11076 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { in DiagnoseTwoPhaseLookup()
[all …]
DSemaTemplateInstantiateDecl.cpp2369 if (auto *RD = dyn_cast<CXXRecordDecl>(SemaRef.CurContext)) in VisitUsingDecl()
2535 SemaRef.LookupQualifiedName(Previous, SemaRef.CurContext); in VisitClassScopeFunctionSpecializationDecl()
4335 cast<CXXRecordDecl>(CurContext->getParent())); in InstantiateMemInitializers()
4687 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl()
4696 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl()
4732 DeclContext *DC = CurContext; in FindInstantiatedDecl()
DSemaExpr.cpp71 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) in CanUseDecl()
375 auto *DRD = dyn_cast<OMPDeclareReductionDecl>(CurContext); in DiagnoseUseOfDecl()
376 if (LangOpts.OpenMP && DRD && !CurContext->containsDecl(D) && in DiagnoseUseOfDecl()
1739 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in BuildDeclRefExpr()
1879 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr; in DiagnoseEmptyLookup()
1894 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseEmptyLookup()
2076 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext)) in recoverFromMSUnqualifiedLookup()
2516 if (CurContext->isClosure()) in LookupInObjCMethod()
4649 S.getScopeForContext(S.CurContext), nullptr, in TryTypoCorrectionForCall()
9671 DeclContext *DC = S.CurContext, *Prev = nullptr; in isReferenceToNonConstCapture()
[all …]
DSemaStmtAsm.cpp80 FunctionDecl *Func = dyn_cast<FunctionDecl>(S.CurContext); in CheckNakedParmReference()
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.h121 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), in TypoCorrectionConsumer()
251 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
DTypoCorrection.h344 DeclContext *CurContext; variable
/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp118 ((Actions.CurContext->isDependentContext() || in ParseCXXInlineMethodDef()

12