/external/clang/lib/Sema/ |
D | SemaCodeComplete.cpp | 282 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 …]
|
D | SemaDeclCXX.cpp | 1281 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 …]
|
D | SemaDecl.cpp | 200 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 …]
|
D | SemaCXXScopeSpec.cpp | 30 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()
|
D | SemaLambda.cpp | 246 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()
|
D | SemaDeclObjC.cpp | 689 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 …]
|
D | SemaTemplate.cpp | 897 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 …]
|
D | Sema.cpp | 81 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()
|
D | SemaOpenMP.cpp | 533 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 …]
|
D | SemaCoroutine.cpp | 113 auto *FD = dyn_cast<FunctionDecl>(S.CurContext); in checkCoroutineContext() 115 S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext) in checkCoroutineContext()
|
D | SemaLookup.cpp | 3642 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 …]
|
D | SemaAccess.cpp | 1464 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()
|
D | SemaStmt.cpp | 1865 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()
|
D | SemaObjCProperty.cpp | 198 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()
|
D | SemaExprCXX.cpp | 842 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()
|
D | SemaOverload.cpp | 917 (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 …]
|
D | SemaStmtAsm.cpp | 80 FunctionDecl *Func = dyn_cast<FunctionDecl>(S.CurContext); in CheckNakedParmReference()
|
D | SemaTemplateInstantiateDecl.cpp | 2447 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()
|
D | SemaExprMember.cpp | 968 DeclContext *EnclosingFunctionCtx = CurContext->getParent()->getParent(); in BuildMemberReferenceExpr() 977 } else if (CurContext->isDependentContext()) { in BuildMemberReferenceExpr()
|
D | SemaExpr.cpp | 71 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 …]
|
D | SemaExceptionSpec.cpp | 43 auto *RD = dyn_cast<CXXRecordDecl>(CurContext); in isLibstdcxxEagerExceptionSpecHack()
|
/external/clang/lib/AST/ |
D | CXXInheritance.cpp | 127 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/ |
D | SemaInternal.h | 120 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), in TypoCorrectionConsumer() 247 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
|
D | TypoCorrection.h | 338 DeclContext *CurContext; variable
|
/external/clang/lib/Parse/ |
D | ParseCXXInlineMethods.cpp | 111 ((Actions.CurContext->isDependentContext() || in ParseCXXInlineMethodDef()
|