Searched defs:CurContext (Results 1 - 6 of 6) sorted by relevance

/external/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp30 DeclContext *CurContext) {
43 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent())
44 if (CurContext->Equals(Record))
66 return ::getCurrentInstantiationOf(T, CurContext);
197 return ::getCurrentInstantiationOf(T, CurContext);
672 DeclContext *DC = LookupCtx ? LookupCtx : CurContext;
908 return CurContext->getRedeclContext()->isFileContext();
29 getCurrentInstantiationOf(QualType T, DeclContext *CurContext) argument
H A DSemaCodeComplete.cpp276 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
285 /// \param CurContext the context in which this result will be named.
286 void MaybeAddResult(Result R, DeclContext *CurContext = 0);
293 /// \param CurContext the context in which this result will be named.
299 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
431 /// (\p CurContext) to the target context (\p TargetContext).
435 /// \param CurContext the context where an entity is being named, which is
445 DeclContext *CurContext,
450 CommonAncestor && !CommonAncestor->Encloses(CurContext);
549 bool ResultBuilder::CheckHiddenResult(Result &R, DeclContext *CurContext, argument
444 getRequiredQualification(ASTContext &Context, DeclContext *CurContext, DeclContext *TargetContext) argument
768 MaybeAddResult(Result R, DeclContext *CurContext) argument
881 AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, bool InBaseClass = false) argument
1197 DeclContext *CurContext; member in class:__anon184::CodeCompletionDeclConsumer
1200 CodeCompletionDeclConsumer(ResultBuilder &Results, DeclContext *CurContext) argument
3014 DeclContext *CurContext = S.CurContext; local
3381 AddObjCProperties(ObjCContainerDecl *Container, bool AllowCategories, bool AllowNullaryMethods, DeclContext *CurContext, AddedPropertiesSet &AddedProperties, ResultBuilder &Results) argument
3419 CurContext); local
4311 Results.AddResult(CodeCompletionResult(Var), CurContext, 0, false); local
4748 AddObjCMethods(ObjCContainerDecl *Container, bool WantInstanceMethods, ObjCMethodKind WantKind, IdentifierInfo **SelIdents, unsigned NumSelIdents, DeclContext *CurContext, VisitedSelectorSet &Selectors, bool AllowSameLength, ResultBuilder &Results, bool InOriginalClass = true) argument
5648 AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, ResultBuilder &Results) argument
5659 Results.AddResult(Result(Proto, 0), CurContext, 0, false); local
5714 AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, bool OnlyUnimplemented, ResultBuilder &Results) argument
5727 Results.AddResult(Result(Class, 0), CurContext, 0, false); local
5822 Results.AddResult(Result(Category, 0), CurContext, 0, false); local
5859 Results.AddResult(Result(Category, 0), CurContext, 0, false); local
5959 Results.AddResult(Result(Ivar, 0), CurContext, 0, false); local
[all...]
H A DSemaLookup.cpp3112 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc);
3122 if (Res && Res->getDeclContext() != CurContext)
3126 Res = LabelDecl::Create(Context, CurContext, Loc, II);
3351 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext, argument
3353 : Context(Context), CurContextChain(BuildContextChain(CurContext)),
3600 if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
3601 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
3717 if (getLangOpts().MicrosoftMode && CurContext->isDependentContext() &&
3718 isa<CXXMethodDecl>(CurContext))
3736 NamespaceSpecifierSet Namespaces(Context, CurContext, S
[all...]
H A DSemaTemplate.cpp905 SemanticContext = CurContext;
943 DeclContext *OutermostContext = CurContext;
981 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1033 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1098 NewClass->setLexicalDeclContext(CurContext);
1099 NewTemplate->setLexicalDeclContext(CurContext);
1124 if (!CurContext->isDependentContext()) {
1132 FriendDecl *Friend = FriendDecl::Create(Context, CurContext,
1137 CurContext->addDecl(Friend);
2046 // changes to CurContext do
6236 DeclContext *CurContext = S.CurContext->getRedeclContext(); local
[all...]
H A DSemaDeclCXX.cpp1013 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
1415 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
1417 CurContext->addHiddenDecl(ASDecl);
1510 assert(isa<CXXRecordDecl>(CurContext));
1601 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, BitWidth,
2249 if (CurContext->isDependentContext()) {
2320 if (CurContext->isDependentContext())
2454 if (CurContext->isDependentContext())
2645 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc,
5366 = CurContext
5678 IsUsingDirectiveInToplevelContext(DeclContext *CurContext) argument
[all...]
/external/clang/include/clang/Sema/
H A DSema.h217 /// CurContext - This is the current declaration context of parsing.
218 DeclContext *CurContext; member in class:clang::Sema
438 : S(S), SavedContext(S.CurContext),
443 S.CurContext = ContextToPush;
448 S.CurContext = SavedContext;
7244 return OriginalLexicalContext ? OriginalLexicalContext : CurContext;

Completed in 854 milliseconds