/external/clang/lib/Sema/ |
D | SemaCodeComplete.cpp | 276 bool CheckHiddenResult(Result &R, DeclContext *CurContext, 286 void MaybeAddResult(Result R, DeclContext *CurContext = 0); 299 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, 445 DeclContext *CurContext, in getRequiredQualification() argument 450 CommonAncestor && !CommonAncestor->Encloses(CurContext); in getRequiredQualification() 549 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, in CheckHiddenResult() argument 572 CurContext, in CheckHiddenResult() 768 void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { in MaybeAddResult() argument 779 MaybeAddResult(Result(Using->getTargetDecl(), R.Qualifier), CurContext); in MaybeAddResult() 840 if (CheckHiddenResult(R, CurContext, I->first)) in MaybeAddResult() [all …]
|
D | SemaCXXScopeSpec.cpp | 30 DeclContext *CurContext) { in getCurrentInstantiationOf() argument 43 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent()) in getCurrentInstantiationOf() 44 if (CurContext->Equals(Record)) in getCurrentInstantiationOf() 66 return ::getCurrentInstantiationOf(T, CurContext); in computeDeclContext() 197 return ::getCurrentInstantiationOf(T, CurContext); in getCurrentInstantiationOf() 672 DeclContext *DC = LookupCtx ? LookupCtx : CurContext; in BuildCXXNestedNameSpecifier() 908 return CurContext->getRedeclContext()->isFileContext(); in ShouldEnterDeclaratorScope()
|
D | SemaDeclCXX.cpp | 1013 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext); in isCurrentClassName() 1415 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext, in ActOnAccessSpecifier() 1417 CurContext->addHiddenDecl(ASDecl); in ActOnAccessSpecifier() 1510 assert(isa<CXXRecordDecl>(CurContext)); in ActOnCXXMemberDeclarator() 1601 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, BitWidth, in ActOnCXXMemberDeclarator() 2249 if (CurContext->isDependentContext()) { in BuildMemberInitializer() 2320 if (CurContext->isDependentContext()) in BuildDelegatingInitializer() 2454 if (CurContext->isDependentContext()) in BuildBaseInitializer() 2645 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc, in BuildImplicitMemberInitializer() 5366 = CurContext->getRedeclContext()->lookup(II); in ActOnStartNamespaceDef() [all …]
|
D | SemaDecl.cpp | 389 if (CurContext->isRecord()) { in isMicrosoftMissingTypename() 392 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext); in isMicrosoftMissingTypename() 399 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope(); in isMicrosoftMissingTypename() 912 assert(getContainingDC(DC) == CurContext && in PushDeclContext() 914 CurContext = DC; in PushDeclContext() 919 assert(CurContext && "DeclContext imbalance!"); in PopDeclContext() 921 CurContext = getContainingDC(CurContext); in PopDeclContext() 922 assert(CurContext && "Popped translation unit!"); in PopDeclContext() 950 assert(Ancestor->getEntity() == CurContext && "ancestor context mismatch"); in EnterDeclaratorContext() 953 CurContext = DC; in EnterDeclaratorContext() [all …]
|
D | SemaDeclObjC.cpp | 447 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName, in ActOnStartClassInterface() 598 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias() 657 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 672 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName, in ActOnStartProtocolInterface() 779 = ObjCProtocolDecl::Create(Context, CurContext, Ident, in ActOnForwardProtocolDeclaration() 819 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 822 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 850 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 853 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 882 CatIDecl = ObjCCategoryDecl::Create(Context, CurContext, AtCatImplLoc, in ActOnStartCategoryImplementation() [all …]
|
D | SemaLambda.cpp | 26 DeclContext *DC = CurContext; in createLambdaClosureType() 85 Method->setLexicalDeclContext(CurContext); in startLambdaDefinition() 132 !ActiveTemplateInstantiations.empty() || CurContext->isDependentContext(); in startLambdaDefinition() 140 isInInlineFunction(CurContext)) in startLambdaDefinition() 866 if (!CurContext->isDependentContext()) { in ActOnLambdaExpr() 910 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocation); in BuildBlockForLambdaConversion()
|
D | SemaTemplate.cpp | 905 SemanticContext = CurContext; in CheckClassTemplate() 943 DeclContext *OutermostContext = CurContext; in CheckClassTemplate() 981 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate() 1033 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) && in CheckClassTemplate() 1098 NewClass->setLexicalDeclContext(CurContext); in CheckClassTemplate() 1099 NewTemplate->setLexicalDeclContext(CurContext); in CheckClassTemplate() 1124 if (!CurContext->isDependentContext()) { in CheckClassTemplate() 1132 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, in CheckClassTemplate() 1137 CurContext->addDecl(Friend); in CheckClassTemplate() 2049 for (DeclContext *Ctx = CurContext; Ctx; Ctx = Ctx->getLookupParent()) { in CheckTemplateIdType() [all …]
|
D | SemaLookup.cpp | 3112 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc); in LookupOrCreateLabel() 3122 if (Res && Res->getDeclContext() != CurContext) in LookupOrCreateLabel() 3126 Res = LabelDecl::Create(Context, CurContext, Loc, II); in LookupOrCreateLabel() 3351 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext, in NamespaceSpecifierSet() argument 3353 : Context(Context), CurContextChain(BuildContextChain(CurContext)), in NamespaceSpecifierSet() 3600 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer() 3601 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer() 3717 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() && in CorrectTypo() 3718 isa<CXXMethodDecl>(CurContext)) in CorrectTypo() 3736 NamespaceSpecifierSet Namespaces(Context, CurContext, SS); in CorrectTypo()
|
D | SemaAccess.cpp | 1417 EffectiveContext EC(S.CurContext); in CheckAccess() 1627 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent(); in CheckConstructorAccess() 1711 EffectiveContext EC(CurContext); in CheckFriendAccess() 1813 EffectiveContext EC(CurContext); in IsSimplyAccessible()
|
D | Sema.cpp | 91 CurContext(0), OriginalLexicalContext(0), in Sema() 215 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext); in makeUnavailableInSystemHeader() 754 DeclContext *DC = CurContext; in getFunctionLevelDeclContext()
|
D | SemaObjCProperty.cpp | 142 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext); in ActOnProperty() 266 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension() 268 DeclContext *DC = CurContext; in HandlePropertyInClassExtension() 715 dyn_cast<ObjCContainerDecl>(CurContext); in ActOnPropertyImplDecl() 1011 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc, in ActOnPropertyImplDecl() 1411 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(CurContext)) { in isPropertyReadonly()
|
D | SemaExpr.cpp | 63 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) in CanUseDecl() 1388 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in BuildDeclRefExpr() 1402 (CurContext != D->getDeclContext() && in BuildDeclRefExpr() 1477 ? CurContext : 0; in DiagnoseEmptyLookup() 1492 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseEmptyLookup() 1785 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() && in ActOnIdExpression() 1786 isa<CXXMethodDecl>(CurContext)) in ActOnIdExpression() 7499 DeclContext *DC = S.CurContext; in isReferenceToNonConstCapture() 9230 BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc); in ActOnBlockStart() 9232 CurContext->addDecl(Block); in ActOnBlockStart() [all …]
|
D | SemaStmt.cpp | 1587 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl() 1622 DeclContext *DC = SemaRef.CurContext; in BuildForRangeVarDecl() 2364 !CurContext->isDependentContext())) in ActOnCapScopeReturnStmt() 2524 !CurContext->isDependentContext()) in ActOnReturnStmt()
|
D | SemaOverload.cpp | 878 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord(); in CheckOverload() 1025 return FD->isUnavailable() && !cast<Decl>(CurContext)->isUnavailable(); in isFunctionConsideredUnavailable() 5300 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext)) in AddOverloadCandidate() 8405 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext); in DiagnoseBadTarget() 9015 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext)) in AddMatchingNonTemplateFunction() 9478 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { in DiagnoseTwoPhaseLookup() 9746 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() && in buildOverloadedCallSet() 9747 (isa<FunctionDecl>(CurContext) || isa<CXXRecordDecl>(CurContext))) { in buildOverloadedCallSet() 10757 if ((isa<CXXConstructorDecl>(CurContext) || in BuildCallToMemberFunction() 10758 isa<CXXDestructorDecl>(CurContext)) && in BuildCallToMemberFunction() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 2086 SemaRef.LookupQualifiedName(Previous, SemaRef.CurContext); in VisitClassScopeFunctionSpecializationDecl() 3063 cast<CXXRecordDecl>(CurContext->getParent())); in InstantiateMemInitializers() 3408 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); in FindInstantiatedDecl() 3430 DeclContext *DC = CurContext; in FindInstantiatedDecl()
|
D | SemaTemplateInstantiate.cpp | 911 Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs); in TransformDefinition() 1622 NewParm->setDeclContext(CurContext); in SubstParmVarDecl()
|
D | SemaInit.cpp | 5643 isa<CXXConstructorDecl>(S.CurContext)) { in Diagnose() 5649 = cast<CXXConstructorDecl>(S.CurContext); in Diagnose() 5719 isa<CXXConstructorDecl>(S.CurContext)) { in Diagnose() 5723 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(S.CurContext); in Diagnose()
|
D | SemaPseudoObject.cpp | 452 cast<ObjCMethodDecl>(S.CurContext->getNonClosureAncestor()); in LookupMethodInReceiverType()
|
D | SemaExprObjC.cpp | 1247 dyn_cast<ObjCMethodDecl>(CurContext->getNonClosureAncestor()); in isSelfExpr() 2430 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext); in BuildInstanceMessage()
|
D | SemaDeclAttr.cpp | 4663 DeclContext *SavedContext = CurContext; in DeclApplyPragmaWeak() 4664 CurContext = Context.getTranslationUnitDecl(); in DeclApplyPragmaWeak() 4666 CurContext = SavedContext; in DeclApplyPragmaWeak()
|
/external/clang/lib/Parse/ |
D | ParseCXXInlineMethods.cpp | 113 ((Actions.CurContext->isDependentContext() || in ParseCXXInlineMethodDef()
|
D | ParseTemplate.cpp | 1260 Sema::ContextRAII GlobalSavedContext(Actions, Actions.CurContext); in ParseLateTemplatedFuncDef()
|
D | Parser.cpp | 1009 Actions.CurContext->isTranslationUnit()) { in ParseFunctionDefinition()
|
D | ParseDecl.cpp | 4630 Actions.CurContext->isRecord())); in ParseFunctionDeclarator() 4632 dyn_cast<CXXRecordDecl>(Actions.CurContext), in ParseFunctionDeclarator()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 218 DeclContext *CurContext; variable 438 : S(S), SavedContext(S.CurContext), in ContextRAII() 443 S.CurContext = ContextToPush; in ContextRAII() 448 S.CurContext = SavedContext; in pop() 7244 return OriginalLexicalContext ? OriginalLexicalContext : CurContext; in getCurLexicalContext()
|