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

12

/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Sema/
H A DSemaLambda.h35 DeclContext *const CurContext, VarDecl *VD, Sema &S);
H A DSema.h249 /// CurContext - This is the current declaration context of parsing.
250 DeclContext *CurContext; member in class:clang::Sema
484 : S(S), SavedContext(S.CurContext),
489 S.CurContext = ContextToPush;
494 S.CurContext = SavedContext;
8000 return OriginalLexicalContext ? OriginalLexicalContext : CurContext;
/freebsd-10-stable/contrib/llvm/tools/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 = 0);
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
816 MaybeAddResult(Result R, DeclContext *CurContext) argument
933 AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, bool InBaseClass = false) argument
1254 DeclContext *CurContext; member in class:__anon3390::CodeCompletionDeclConsumer
1257 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext) argument
3101 DeclContext *CurContext = S.CurContext; local
3466 AddObjCProperties(ObjCContainerDecl *Container, bool AllowCategories, bool AllowNullaryMethods, DeclContext *CurContext, AddedPropertiesSet &AddedProperties, ResultBuilder &Results) argument
3505 CurContext); local
4402 CurContext, 0, false); local
4846 AddObjCMethods(ObjCContainerDecl *Container, bool WantInstanceMethods, ObjCMethodKind WantKind, ArrayRef<IdentifierInfo *> SelIdents, DeclContext *CurContext, VisitedSelectorSet &Selectors, bool AllowSameLength, ResultBuilder &Results, bool InOriginalClass = true) argument
5748 AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, ResultBuilder &Results) argument
5760 CurContext, 0, false); local
5815 AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, bool OnlyUnimplemented, ResultBuilder &Results) argument
5829 CurContext, 0, false); local
5929 CurContext, 0, false); local
6071 CurContext, 0, false); local
[all...]
H A DSemaLambda.cpp35 DeclContext *const CurContext, VarDecl *VD) {
37 DeclContext *EnclosingDC = CurContext;
100 DeclContext *const CurContext, VarDecl *VD,
104 GetScopeIndexOfNearestCaptureReadyLambda(FunctionScopes,CurContext, VD);
160 DeclContext *DC = CurContext;
225 !ActiveTemplateInstantiations.empty() || CurContext->isDependentContext();
232 isInInlineFunction(CurContext)) {
314 Method->setLexicalDeclContext(CurContext);
322 TemplateMethod->setLexicalDeclContext(CurContext);
722 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Lo
33 GetScopeIndexOfNearestCaptureReadyLambda( ArrayRef<clang::sema::FunctionScopeInfo*> FunctionScopes, DeclContext *const CurContext, VarDecl *VD) argument
97 GetInnermostEnclosingCapturableLambda( ArrayRef<sema::FunctionScopeInfo*> FunctionScopes, unsigned &FunctionScopeIndex, DeclContext *const CurContext, VarDecl *VD, Sema &S) argument
[all...]
H A DSemaCXXScopeSpec.cpp30 DeclContext *CurContext) {
38 Record->isCurrentInstantiation(CurContext))
60 return ::getCurrentInstantiationOf(T, CurContext);
176 return ::getCurrentInstantiationOf(T, CurContext);
650 DeclContext *DC = LookupCtx ? LookupCtx : CurContext;
884 return CurContext->getRedeclContext()->isFileContext();
29 getCurrentInstantiationOf(QualType T, DeclContext *CurContext) argument
H A DSemaDeclObjC.cpp480 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName,
655 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl);
714 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
729 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
838 = ObjCProtocolDecl::Create(Context, CurContext, Ident,
878 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc,
881 CurContext->addDecl(CDecl);
905 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc,
908 CurContext->addDecl(CDecl);
937 CatIDecl = ObjCCategoryDecl::Create(Context, CurContext, AtCatImplLo
[all...]
H A DSemaDecl.cpp380 if (CurContext->isRecord()) {
383 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext);
390 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope();
905 assert(getContainingDC(DC) == CurContext &&
907 CurContext = DC;
912 assert(CurContext && "DeclContext imbalance!");
914 CurContext = getContainingDC(CurContext);
915 assert(CurContext && "Popped translation unit!");
943 assert(Ancestor->getEntity() == CurContext
[all...]
H A DSemaDeclCXX.cpp1223 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
1244 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
1741 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
1743 CurContext->addHiddenDecl(ASDecl);
1871 assert(isa<CXXRecordDecl>(CurContext));
1876 if (cast<CXXRecordDecl>(CurContext)->isInterface()) {
2032 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D,
2038 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D,
2817 if (CurContext->isDependentContext())
2946 if (CurContext
6817 IsUsingDirectiveInToplevelContext(DeclContext *CurContext) argument
[all...]
H A DSemaTemplate.cpp902 SemanticContext = CurContext;
940 DeclContext *OutermostContext = CurContext;
978 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1030 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1096 NewClass->setLexicalDeclContext(CurContext);
1097 NewTemplate->setLexicalDeclContext(CurContext);
1121 if (!CurContext->isDependentContext()) {
1129 FriendDecl *Friend = FriendDecl::Create(Context, CurContext,
1134 CurContext->addDecl(Friend);
2038 // changes to CurContext do
6821 DeclContext *CurContext = S.CurContext->getRedeclContext(); local
[all...]
H A DSemaLookup.cpp3362 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc);
3372 if (Res && Res->getDeclContext() != CurContext)
3376 Res = LabelDecl::Create(Context, CurContext, Loc, II);
3609 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext, argument
3611 : Context(Context), CurContextChain(BuildContextChain(CurContext)),
3896 if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
3897 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
4067 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() &&
4068 isa<CXXMethodDecl>(CurContext))
4102 NamespaceSpecifierSet Namespaces(Context, CurContext, S
[all...]
H A DSema.cpp78 CurContext(0), OriginalLexicalContext(0),
219 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext);
816 DeclContext *DC = CurContext;
H A DSemaAccess.cpp1469 EffectiveContext EC(S.CurContext);
1681 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent();
1780 EffectiveContext EC(CurContext);
1882 EffectiveContext EC(CurContext);
H A DSemaStmt.cpp1764 SemaRef.CurContext->addHiddenDecl(Decl);
1799 DeclContext *DC = SemaRef.CurContext;
2541 if (!CurContext->isDependentContext())
2641 !CurContext->isDependentContext()))
2769 FunctionDecl *FD = cast<FunctionDecl>(CurContext);
2912 !CurContext->isDependentContext())
3191 DeclContext *DC = CurContext;
3205 CD = CapturedDecl::Create(Context, CurContext, NumParams);
3259 CurContext = CD;
H A DSemaObjCProperty.cpp170 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext);
352 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext);
354 DeclContext *DC = CurContext;
823 dyn_cast<ObjCContainerDecl>(CurContext);
1145 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc,
H A DSemaOverload.cpp930 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() &&
1098 return FD->isUnavailable() && !cast<Decl>(CurContext)->isUnavailable();
5543 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext))
8807 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext);
9527 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext))
10048 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) {
10283 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() &&
10284 (isa<FunctionDecl>(CurContext) || isa<CXXRecordDecl>(CurContext))) {
11291 if ((isa<CXXConstructorDecl>(CurContext) ||
[all...]
H A DSemaExpr.cpp69 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)
1615 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext))
1629 (CurContext != D->getDeclContext() &&
1727 ? CurContext : 0;
1736 // During a default argument instantiation the CurContext points
1742 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext);
2037 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(CurContext);
2292 if (CurContext->isClosure())
3989 S.getScopeForContext(S.CurContext), NULL, CCC)) {
8250 DeclContext *DC = S.CurContext, *Pre
[all...]
H A DSemaExprMember.cpp918 DeclContext *EnclosingFunctionCtx = CurContext->getParent()->getParent();
927 } else if (CurContext->isDependentContext()) {
H A DSemaTemplateInstantiateDecl.cpp2273 SemaRef.LookupQualifiedName(Previous, SemaRef.CurContext);
4050 cast<CXXRecordDecl>(CurContext->getParent()));
4386 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
4422 DeclContext *DC = CurContext;
H A DSemaExprCXX.cpp5225 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext);
5863 assert(S.CurContext->isDependentContext());
5885 S.CurContext, Var, S)) {
5918 S.CurContext, /*0 is 'this'*/ 0, S)) {
6008 // even if CurContext is not a lambda call operator. Refer to that Bug Report
6021 const bool IsInLambdaDeclContext = isLambdaCallOperator(CurContext);
H A DSemaTemplateInstantiate.cpp1016 Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs);
1769 // FIXME: OldParm may come from a FunctionProtoType, in which case CurContext
1771 NewParm->setDeclContext(CurContext);
H A DSemaOpenMP.cpp521 CurContext->addDecl(D);
H A DSemaExprObjC.cpp1156 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext);
1386 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor());
2572 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext);
/freebsd-10-stable/contrib/llvm/tools/clang/lib/AST/
H A DCXXInheritance.cpp126 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const {
129 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent())
130 if (CurContext->Equals(this))
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp121 ((Actions.CurContext->isDependentContext() ||
H A DParseTemplate.cpp1268 Sema::ContextRAII GlobalSavedContext(Actions, Actions.CurContext);

Completed in 329 milliseconds

12