Home
last modified time | relevance | path

Searched refs:DeclContext (Results 1 – 25 of 167) sorted by relevance

1234567

/external/clang/include/clang/AST/
DDeclLookups.h26 class DeclContext::all_lookups_iterator {
71 inline DeclContext::lookups_range DeclContext::lookups() const { in lookups()
72 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
84 inline DeclContext::all_lookups_iterator DeclContext::lookups_begin() const { in lookups_begin()
88 inline DeclContext::all_lookups_iterator DeclContext::lookups_end() const { in lookups_end()
92 inline DeclContext::lookups_range DeclContext::noload_lookups() const { in noload_lookups()
93 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
104 DeclContext::all_lookups_iterator DeclContext::noload_lookups_begin() const { in noload_lookups_begin()
109 DeclContext::all_lookups_iterator DeclContext::noload_lookups_end() const { in noload_lookups_end()
DDeclBase.h31 class DeclContext; variable
206 friend class DeclContext;
209 DeclContext *SemanticDC;
210 DeclContext *LexicalDC;
227 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx;
229 inline bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); } in isInSemaDC()
234 inline DeclContext *getSemanticDC() const { in getSemanticDC()
235 return DeclCtx.get<DeclContext*>(); in getSemanticDC()
309 DeclContext *Parent, std::size_t Extra = 0);
316 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl()
[all …]
DDecl.h77 class TranslationUnitDecl : public Decl, public DeclContext {
87 DeclContext(TranslationUnit), in TranslationUnitDecl()
99 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext()
100 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext()
102 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
103 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
124 class ExternCContextDecl : public Decl, public DeclContext {
129 DeclContext(ExternCContext) {} in ExternCContextDecl()
136 static DeclContext *castToDeclContext(const ExternCContextDecl *D) { in castToDeclContext()
137 return static_cast<DeclContext *>(const_cast<ExternCContextDecl*>(D)); in castToDeclContext()
[all …]
DDependentDiagnostic.h39 DeclContext *Parent, in Create()
102 DeclContext *Parent,
106 friend class DeclContext::ddiag_iterator;
124 class DeclContext::ddiag_iterator {
174 inline DeclContext::ddiag_range DeclContext::ddiags() const { in ddiags()
DASTLambda.h34 inline bool isLambdaCallOperator(const DeclContext *DC) { in isLambdaCallOperator()
63 inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) { in isGenericLambdaCallOperatorSpecialization()
71 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { in getLambdaAwareParentOfDeclContext()
DDeclContextInternals.h143 DeclContext::lookup_result getLookupResult() { in getLookupResult()
145 return DeclContext::lookup_result(); in getLookupResult()
152 return DeclContext::lookup_result(ND); in getLookupResult()
159 return DeclContext::lookup_result(Vector); in getLookupResult()
247 friend class DeclContext; variable
257 friend class DeclContext; // iterates over diagnostics variable
DDeclCXX.h106 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl()
129 DeclContext *DC, SourceLocation ASLoc, in Create()
616 friend class DeclContext; variable
640 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC,
682 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
687 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
1411 bool isCurrentInstantiation(const DeclContext *CurContext) const;
2463 class LinkageSpecDecl : public Decl, public DeclContext {
2490 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc, in LinkageSpecDecl()
2492 : Decl(LinkageSpec, DC, LangLoc), DeclContext(LinkageSpec), in LinkageSpecDecl()
[all …]
DDeclObjC.h113 class ObjCMethodDecl : public NamedDecl, public DeclContext {
228 DeclContext *contextDecl, bool isInstance = true,
234 DeclContext(ObjCMethod), Family(InvalidObjCMethodFamily), in NamedDecl()
256 DeclContext *contextDecl, bool isInstance = true,
493 static DeclContext *castToDeclContext(const ObjCMethodDecl *D) { in castToDeclContext()
494 return static_cast<DeclContext *>(const_cast<ObjCMethodDecl*>(D)); in castToDeclContext()
496 static ObjCMethodDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
497 return static_cast<ObjCMethodDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
508 class ObjCContainerDecl : public NamedDecl, public DeclContext {
518 ObjCContainerDecl(Kind DK, DeclContext *DC, in ObjCContainerDecl()
[all …]
DDeclTemplate.h233 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl()
240 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl()
246 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl()
614 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl()
769 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
876 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
952 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
962 static TemplateTypeParmDecl *Create(const ASTContext &C, DeclContext *DC,
1053 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1063 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
[all …]
DASTImporter.h27 class DeclContext; variable
129 DeclContext *ImportContext(DeclContext *FromDC);
236 DeclContext *DC,
/external/clang/lib/AST/
DDeclBase.cpp67 DeclContext *Parent, std::size_t Extra) { in operator new()
97 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
174 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod()
175 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
216 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
220 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
231 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
244 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace()
262 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
643 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
[all …]
DDeclTemplate.cpp116 DeclContext *Owner) { in AdoptTemplateParameterList()
252 DeclContext *DC, in Create()
257 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
329 DeclContext *DC, in Create()
335 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
488 TemplateTypeParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
535 NonTypeTemplateParmDecl::NonTypeTemplateParmDecl(DeclContext *DC, in NonTypeTemplateParmDecl()
560 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
570 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
620 DeclContext *DC, SourceLocation L, unsigned D, unsigned P, in TemplateTemplateParmDecl()
[all …]
DExternalASTSource.cpp80 ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC, in FindExternalVisibleDeclsByName()
85 void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) { in completeVisibleDeclsMap()
89 ExternalASTSource::FindExternalLexicalDecls(const DeclContext *DC, in FindExternalLexicalDecls()
/external/clang/include/clang/Basic/
DDeclNodes.td11 class DeclContext { }
13 def TranslationUnit : Decl, DeclContext;
14 def ExternCContext : Decl, DeclContext;
16 def Namespace : DDecl<Named>, DeclContext;
25 def Tag : DDecl<Type, 1>, DeclContext;
42 def Function : DDecl<Declarator>, DeclContext;
63 def ObjCMethod : DDecl<Named>, DeclContext;
64 def ObjCContainer : DDecl<Named, 1>, DeclContext;
73 def LinkageSpec : Decl, DeclContext;
80 def Block : Decl, DeclContext;
[all …]
/external/lldb/include/lldb/Symbol/
DClangASTContext.h181 static clang::DeclContext *
184 clang::DeclContext *
191 GetClassMethodInfoForDeclContext (clang::DeclContext *decl_ctx,
236 CreateRecordType (clang::DeclContext *decl_ctx,
267 CreateFunctionTemplateDecl (clang::DeclContext *decl_ctx,
278 CreateClassTemplateDecl (clang::DeclContext *decl_ctx,
285 CreateClassTemplateSpecializationDecl (clang::DeclContext *decl_ctx,
293 static clang::DeclContext *
296 static clang::DeclContext *
319 clang::DeclContext *decl_ctx,
[all …]
DClangExternalASTSourceCallbacks.h36 …typedef void (*FindExternalVisibleDeclsByNameCallback)(void *baton, const clang::DeclContext *DC, …
100 MaterializeVisibleDecls (const clang::DeclContext *decl_ctx) in MaterializeVisibleDecls()
106 FindExternalLexicalDecls (const clang::DeclContext *decl_ctx, in FindExternalLexicalDecls()
116 FindExternalVisibleDeclsByName (const clang::DeclContext *decl_ctx,
/external/clang/lib/Frontend/
DASTConsumers.cpp82 if (DeclContext *DC = dyn_cast<DeclContext>(D)) { in print()
193 void PrintDeclContext(const DeclContext* DC, unsigned Indentation);
197 void DeclContextPrinter::PrintDeclContext(const DeclContext* DC, in PrintDeclContext()
304 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
305 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
334 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
335 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
350 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
351 const DeclContext* LexicalDC = D->getLexicalDeclContext(); in PrintDeclContext()
366 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
[all …]
/external/clang/tools/libclang/
DIndexingContext.h62 const DeclContext *DC;
284 typedef llvm::DenseMap<const DeclContext *, CXIdxClientContainer>
382 const DeclContext *DC = nullptr);
385 const DeclContext *DC = nullptr);
389 const DeclContext *DC = nullptr);
391 void indexDeclContext(const DeclContext *DC);
394 const DeclContext *DC = nullptr);
424 const DeclContext *LexicalDC);
436 const DeclContext *DC,
442 const DeclContext *DC,
[all …]
DIndexTypeSourceInfo.cpp21 const DeclContext *ParentDC;
25 const DeclContext *DC) in TypeIndexer()
98 const DeclContext *DC) { in indexTypeSourceInfo()
107 const DeclContext *DC) { in indexTypeLoc()
118 const DeclContext *DC) { in indexNestedNameSpecifierLoc()
/external/clang/lib/Sema/
DSemaLookup.cpp57 const DeclContext *Nominated;
58 const DeclContext *CommonAncestor;
61 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
62 const DeclContext *CommonAncestor) in UnqualUsingEntry()
66 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
70 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
80 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
84 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
96 llvm::SmallPtrSet<DeclContext*, 8> visited;
106 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
[all …]
/external/clang/include/clang/Sema/
DMultiplexExternalSemaSource.h95 bool FindExternalVisibleDeclsByName(const DeclContext *DC,
100 void completeVisibleDeclsMap(const DeclContext *DC) override;
110 ExternalLoadResult FindExternalLexicalDecls(const DeclContext *DC,
118 ExternalLoadResult FindExternalLexicalDecls(const DeclContext *DC, in FindExternalLexicalDecls()
124 ExternalLoadResult FindExternalLexicalDeclsBy(const DeclContext *DC, in FindExternalLexicalDeclsBy()
342 DeclContext *MemberContext,
DSemaInternal.h101 DeclContext *MemberContext, in TypoCorrectionConsumer()
118 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
211 DeclContext* DeclCtx;
216 typedef SmallVector<DeclContext*, 4> DeclContextList;
229 static DeclContextList buildContextChain(DeclContext *Start);
235 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
240 void addNameSpecifier(DeclContext *Ctx);
310 DeclContext *MemberContext;
/external/lldb/include/lldb/Expression/
DClangASTSource.h72 void MaterializeVisibleDecls (const clang::DeclContext *DC) in MaterializeVisibleDecls()
104 FindExternalVisibleDeclsByName (const clang::DeclContext *DC,
121 FindExternalLexicalDecls (const clang::DeclContext *DC,
254 FindExternalVisibleDeclsByName (const clang::DeclContext *DC, in FindExternalVisibleDeclsByName()
261 FindExternalLexicalDecls (const clang::DeclContext *DC, in FindExternalLexicalDecls()
434 …const clang::DeclContext *m_decl_context; ///< The DeclContext to put declaratio…
464 const clang::DeclContext *dc) : in NameSearchContext()
/external/lldb/source/Plugins/SymbolFile/DWARF/
DSymbolFileDWARF.h113 virtual clang::DeclContext* GetClangDeclContextContainingTypeUID (lldb::user_id_t type_uid);
114 …virtual clang::DeclContext* GetClangDeclContextForTypeUID (const lldb_private::SymbolContext &sc, …
149 const clang::DeclContext *DC,
233 clang::DeclContext *
243 clang::DeclContext *
246 clang::DeclContext *
249 clang::DeclContext *
254 clang::DeclContext *
261 SearchDeclContext (const clang::DeclContext *decl_context,
362 clang::DeclContext *containing_decl_ctx,
[all …]
/external/clang/lib/Serialization/
DASTCommon.h82 const DeclContext *getDefinitiveDeclContext(const DeclContext *DC);
93 template<typename Fn> void numberAnonymousDeclsWithin(const DeclContext *DC, in numberAnonymousDeclsWithin()

1234567