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

12

/external/clang/lib/Sema/
H A DSemaCodeComplete.cpp282 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
291 /// \param CurContext the context in which this result will be named.
292 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr);
299 /// \param CurContext the context in which this result will be named.
305 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
437 /// (\p CurContext) to the target context (\p TargetContext).
441 /// \param CurContext the context where an entity is being named, which is
451 const DeclContext *CurContext,
456 CommonAncestor && !CommonAncestor->Encloses(CurContext);
554 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, argument
450 getRequiredQualification(ASTContext &Context, const DeclContext *CurContext, const DeclContext *TargetContext) argument
813 MaybeAddResult(Result R, DeclContext *CurContext) argument
931 AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, bool InBaseClass = false) argument
1253 DeclContext *CurContext; member in class:__anon18021::CodeCompletionDeclConsumer
1256 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext) argument
3097 DeclContext *CurContext = S.CurContext; local
3456 AddObjCProperties(ObjCContainerDecl *Container, bool AllowCategories, bool AllowNullaryMethods, DeclContext *CurContext, AddedPropertiesSet &AddedProperties, ResultBuilder &Results) argument
3471 CurContext); local
3489 CurContext); local
4353 CurContext, nullptr, false); local
4797 AddObjCMethods(ObjCContainerDecl *Container, bool WantInstanceMethods, ObjCMethodKind WantKind, ArrayRef<IdentifierInfo *> SelIdents, DeclContext *CurContext, VisitedSelectorSet &Selectors, bool AllowSameLength, ResultBuilder &Results, bool InOriginalClass = true) argument
5692 AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, ResultBuilder &Results) argument
5702 CurContext, nullptr, false); local
5757 AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, bool OnlyUnimplemented, ResultBuilder &Results) argument
5769 CurContext, nullptr, false); local
5864 CurContext, nullptr, false); local
5901 CurContext, nullptr, false); local
6001 CurContext, nullptr, false); local
[all...]
H A DSemaLambda.cpp246 DeclContext *DC = CurContext;
311 !ActiveTemplateInstantiations.empty() || CurContext->isDependentContext();
318 isInInlineFunction(CurContext)) {
400 Method->setLexicalDeclContext(CurContext);
408 TemplateMethod->setLexicalDeclContext(CurContext);
809 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Loc,
1524 if (!CurContext->isDependentContext()) {
1581 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocation);
H A DSemaCXXScopeSpec.cpp30 DeclContext *CurContext) {
38 Record->isCurrentInstantiation(CurContext))
60 return ::getCurrentInstantiationOf(T, CurContext);
176 return ::getCurrentInstantiationOf(T, CurContext);
704 DeclContext *DC = LookupCtx ? LookupCtx : CurContext;
943 return CurContext->getRedeclContext()->isFileContext();
29 getCurrentInstantiationOf(QualType T, DeclContext *CurContext) argument
H A DSemaDeclObjC.cpp493 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName,
667 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl);
726 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
741 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
868 = ObjCProtocolDecl::Create(Context, CurContext, Ident,
908 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc,
911 CurContext->addDecl(CDecl);
935 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc,
938 CurContext->addDecl(CDecl);
967 CatIDecl = ObjCCategoryDecl::Create(Context, CurContext, AtCatImplLo
[all...]
H A DSemaDecl.cpp137 for (DeclContext *DC = S.CurContext; DC; DC = DC->getParent()) {
436 // Build a fake DependentNameType that will perform lookup into CurContext at
440 synthesizeCurrentNestedNameSpecifier(Context, CurContext);
496 if (CurContext->isRecord()) {
499 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext);
505 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope();
1024 assert(getContainingDC(DC) == CurContext &&
1026 CurContext = DC;
1031 assert(CurContext && "DeclContext imbalance!");
1033 CurContext
[all...]
H A DSemaDeclCXX.cpp1234 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
1255 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
1815 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
1817 CurContext->addHiddenDecl(ASDecl);
1945 assert(isa<CXXRecordDecl>(CurContext));
1950 if (cast<CXXRecordDecl>(CurContext)->isInterface()) {
2112 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D,
2118 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D,
2897 if (CurContext->isDependentContext())
3026 if (CurContext
7025 IsUsingDirectiveInToplevelContext(DeclContext *CurContext) argument
[all...]
H A DSemaTemplate.cpp897 SemanticContext = CurContext;
935 DeclContext *OutermostContext = CurContext;
974 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1026 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1093 NewClass->setLexicalDeclContext(CurContext);
1094 NewTemplate->setLexicalDeclContext(CurContext);
1118 if (!CurContext->isDependentContext()) {
1126 FriendDecl *Friend = FriendDecl::Create(Context, CurContext,
1131 CurContext->addDecl(Friend);
2083 // changes to CurContext do
6964 DeclContext *CurContext = S.CurContext->getRedeclContext(); local
[all...]
H A DSema.cpp84 CurContext(nullptr), OriginalLexicalContext(nullptr),
253 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext);
855 DeclContext *DC = CurContext;
1125 !CurBSI->TheDecl->Encloses(CurContext)) {
1140 !CurLSI->Lambda->Encloses(CurContext)) {
H A DSemaLookup.cpp3242 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc);
3252 if (Res && Res->getDeclContext() != CurContext)
3256 Res = LabelDecl::Create(Context, CurContext, Loc, II);
3344 Namespaces(SemaRef.Context, SemaRef.CurContext, SS),
3422 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
3743 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec)
3744 : Context(Context), CurContextChain(buildContextChain(CurContext)),
4018 if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
4019 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
4183 if (getLangOpts().MSVCCompat && CurContext
3742 NamespaceSpecifierSet( ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec) argument
[all...]
H A DSemaAccess.cpp1459 EffectiveContext EC(S.CurContext);
1670 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent();
1763 EffectiveContext EC(CurContext);
1865 EffectiveContext EC(CurContext);
H A DSemaStmt.cpp1830 SemaRef.CurContext->addHiddenDecl(Decl);
1865 DeclContext *DC = SemaRef.CurContext;
2618 if (!CurContext->isDependentContext())
2871 FunctionDecl *FD = cast<FunctionDecl>(CurContext);
3317 DeclContext *DC = CurContext;
3333 CD = CapturedDecl::Create(Context, CurContext, NumParams);
3385 CurContext = CD;
3437 CurContext = CD;
H A DSemaObjCProperty.cpp166 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext);
326 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext);
328 DeclContext *DC = CurContext;
804 dyn_cast<ObjCContainerDecl>(CurContext);
1124 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc,
H A DSemaExprCXX.cpp740 if (isGenericLambdaCallOperatorSpecialization(CurContext) &&
741 CurContext->getParent()->getParent()->isRecord()) {
747 cast<CXXRecordDecl>(CurContext->getParent()->getParent()));
5197 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext);
5835 assert(S.CurContext->isDependentContext());
5836 assert(CurrentLSI->CallOperator == S.CurContext &&
5837 "The current call operator must be synchronized with Sema's CurContext");
6001 // even if CurContext is not a lambda call operator. Refer to that Bug Report
6014 const bool IsInLambdaDeclContext = isLambdaCallOperator(CurContext);
H A DSemaOverload.cpp932 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() &&
1107 return FD->isUnavailable() && !cast<Decl>(CurContext)->isUnavailable();
5635 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext))
9034 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext);
9784 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext))
10305 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) {
10543 if (getLangOpts().MSVCCompat && CurContext->isDependentContext() &&
10544 (isa<FunctionDecl>(CurContext) || isa<CXXRecordDecl>(CurContext))) {
11537 if ((isa<CXXConstructorDecl>(CurContext) ||
[all...]
H A DSemaExpr.cpp69 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)
1637 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext))
1651 (CurContext != D->getDeclContext() &&
1745 ? CurContext : nullptr;
1754 // During a default argument instantiation the CurContext points
1760 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext);
1963 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext))
2377 if (CurContext->isClosure())
4090 S.getScopeForContext(S.CurContext), nullptr, CCC,
8474 DeclContext *DC = S.CurContext, *Pre
[all...]
H A DSemaExprMember.cpp929 DeclContext *EnclosingFunctionCtx = CurContext->getParent()->getParent();
938 } else if (CurContext->isDependentContext()) {
H A DSemaTemplateInstantiateDecl.cpp2292 SemaRef.LookupQualifiedName(Previous, SemaRef.CurContext);
4105 cast<CXXRecordDecl>(CurContext->getParent()));
4441 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
4477 DeclContext *DC = CurContext;
H A DSemaDeclAttr.cpp4677 DeclContext *SavedContext = CurContext;
4678 CurContext = Context.getTranslationUnitDecl();
4679 NewD->setDeclContext(CurContext);
4680 NewD->setLexicalDeclContext(CurContext);
4682 CurContext = SavedContext;
H A DSemaTemplateInstantiate.cpp922 Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs);
1673 // FIXME: OldParm may come from a FunctionProtoType, in which case CurContext
1675 NewParm->setDeclContext(CurContext);
H A DSemaExprObjC.cpp1216 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext);
1445 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor());
2665 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext);
/external/clang/lib/AST/
H A DCXXInheritance.cpp122 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const {
125 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent())
126 if (CurContext->Equals(this))
/external/clang/include/clang/Sema/
H A DTypoCorrection.h317 DeclContext *CurContext; member in class:clang::FunctionCallFilterCCC
H A DSema.h252 /// CurContext - This is the current declaration context of parsing.
253 DeclContext *CurContext; member in class:clang::Sema
556 : S(S), SavedContext(S.CurContext),
561 S.CurContext = ContextToPush;
568 S.CurContext = SavedContext;
8392 return OriginalLexicalContext ? OriginalLexicalContext : CurContext;
/external/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp109 ((Actions.CurContext->isDependentContext() ||
H A DParseTemplate.cpp1286 Sema::ContextRAII GlobalSavedContext(Actions, Actions.CurContext);

Completed in 580 milliseconds

12