Home
last modified time | relevance | path

Searched refs:DeclContext (Results 1 – 25 of 174) 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
218 friend class DeclContext;
221 DeclContext *SemanticDC;
222 DeclContext *LexicalDC;
239 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx;
241 inline bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); } in isInSemaDC()
246 inline DeclContext *getSemanticDC() const { in getSemanticDC()
247 return DeclCtx.get<DeclContext*>(); in getSemanticDC()
321 DeclContext *Parent, std::size_t Extra = 0);
328 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl()
[all …]
DDecl.h79 class TranslationUnitDecl : public Decl, public DeclContext {
98 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext()
99 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext()
101 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
102 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
123 class ExternCContextDecl : public Decl, public DeclContext {
128 DeclContext(ExternCContext) {} in ExternCContextDecl()
135 static DeclContext *castToDeclContext(const ExternCContextDecl *D) { in castToDeclContext()
136 return static_cast<DeclContext *>(const_cast<ExternCContextDecl*>(D)); in castToDeclContext()
138 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
[all …]
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()
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()
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,
1415 bool isCurrentInstantiation(const DeclContext *CurContext) const;
2457 class LinkageSpecDecl : public Decl, public DeclContext {
2484 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc, in LinkageSpecDecl()
2486 : 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,
502 static DeclContext *castToDeclContext(const ObjCMethodDecl *D) { in castToDeclContext()
503 return static_cast<DeclContext *>(const_cast<ObjCMethodDecl*>(D)); in castToDeclContext()
505 static ObjCMethodDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
506 return static_cast<ObjCMethodDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
553 ObjCTypeParamDecl(ASTContext &ctx, DeclContext *dc, in ObjCTypeParamDecl()
564 static ObjCTypeParamDecl *Create(ASTContext &ctx, DeclContext *dc,
[all …]
DDeclTemplate.h337 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl()
344 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl()
350 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl()
708 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl()
863 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
970 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
1044 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
1054 static TemplateTypeParmDecl *Create(const ASTContext &C, DeclContext *DC,
1164 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1173 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
[all …]
DASTImporter.h27 class DeclContext; variable
134 DeclContext *ImportContext(DeclContext *FromDC);
241 DeclContext *DC,
/external/clang/lib/AST/
DDeclBase.cpp76 DeclContext *Parent, std::size_t Extra) { in operator new()
122 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
199 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod()
200 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
241 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
245 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
257 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
270 const DeclContext *LDC = getLexicalDeclContext(); in isLexicallyWithinFunctionOrMethod()
282 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace()
300 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
[all …]
DDeclTemplate.cpp114 DeclContext *Owner) { in AdoptTemplateParameterList()
256 DeclContext *DC, in Create()
261 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
333 DeclContext *DC, in Create()
339 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
492 TemplateTypeParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
539 NonTypeTemplateParmDecl::NonTypeTemplateParmDecl(DeclContext *DC, in NonTypeTemplateParmDecl()
563 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
573 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
626 DeclContext *DC, SourceLocation L, unsigned D, unsigned P, in TemplateTemplateParmDecl()
[all …]
/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;
26 def Tag : DDecl<Type, 1>, DeclContext;
43 def Function : DDecl<Declarator>, DeclContext;
65 def ObjCMethod : DDecl<Named>, DeclContext;
66 def ObjCContainer : DDecl<Named, 1>, DeclContext;
75 def LinkageSpec : Decl, DeclContext;
82 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.cpp61 const DeclContext *Nominated;
62 const DeclContext *CommonAncestor;
65 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
66 const DeclContext *CommonAncestor) in UnqualUsingEntry()
70 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
74 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
84 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
88 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
100 llvm::SmallPtrSet<DeclContext*, 8> visited;
110 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
[all …]
/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/clang/lib/Tooling/Core/
DLookup.cpp19 static bool isInsideDifferentNamespaceWithSameName(const DeclContext *DeclA, in isInsideDifferentNamespaceWithSameName()
20 const DeclContext *DeclB) { in isInsideDifferentNamespaceWithSameName()
49 static StringRef getBestNamespaceSubstr(const DeclContext *DeclA, in getBestNamespaceSubstr()
86 const DeclContext *UseContext, in replaceNestedName()
/external/clang/include/clang/Sema/
DSemaInternal.h113 DeclContext *MemberContext, in TypoCorrectionConsumer()
130 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
223 DeclContext* DeclCtx;
228 typedef SmallVector<DeclContext*, 4> DeclContextList;
241 static DeclContextList buildContextChain(DeclContext *Start);
247 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
252 void addNameSpecifier(DeclContext *Ctx);
322 DeclContext *MemberContext;
/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.h81 const DeclContext *getDefinitiveDeclContext(const DeclContext *DC);
92 template<typename Fn> void numberAnonymousDeclsWithin(const DeclContext *DC, in numberAnonymousDeclsWithin()
/external/clang/include/clang/Tooling/Core/
DLookup.h22 class DeclContext; variable
41 const DeclContext *UseContext,

1234567