Home
last modified time | relevance | path

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

12345678

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclBase.h45 class DeclContext; variable
243 friend class DeclContext;
246 DeclContext *SemanticDC;
247 DeclContext *LexicalDC;
1150 void setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC,
1262 class DeclContext {
1743 ~DeclContext();
2467 const ::clang::DeclContext,const ::clang::DeclContext> {
2474 struct cast_convert_val<ToTy, ::clang::DeclContext, ::clang::DeclContext> {
2482 const ::clang::DeclContext*, const ::clang::DeclContext*> {
[all …]
H A DExternalASTMerger.h53 DeclContext *DC;
57 typedef std::map<const DeclContext *, DCOrigin> OriginMap;
116 bool FindExternalVisibleDeclsByName(const DeclContext *DC,
121 FindExternalLexicalDecls(const DeclContext *DC,
132 bool CanComplete(DeclContext *DC);
136 void MaybeRecordOrigin(const DeclContext *ToDC, DCOrigin Origin);
139 void ForceRecordOrigin(const DeclContext *ToDC, DCOrigin Origin);
158 void RecordOriginImpl(const DeclContext *ToDC, DCOrigin Origin,
164 void ForEachMatchingDC(const DeclContext *DC, CallbackType Callback);
H A DDeclLookups.h29 class DeclContext::all_lookups_iterator {
76 inline DeclContext::lookups_range DeclContext::lookups() const { in lookups()
77 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
89 inline DeclContext::lookups_range
90 DeclContext::noload_lookups(bool PreserveInternalState) const { in noload_lookups()
91 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
H A DASTImporterLookupTable.h27 class DeclContext; variable
56 using DCMap = llvm::DenseMap<DeclContext *, NameMap>;
58 void add(DeclContext *DC, NamedDecl *ND);
59 void remove(DeclContext *DC, NamedDecl *ND);
68 LookupResult lookup(DeclContext *DC, DeclarationName Name) const;
69 void dump(DeclContext *DC) const;
H A DDecl.h225 DeclContext(ExternCContext) {} in ExternCContextDecl()
347 const DeclContext *DC = getDeclContext(); in isCXXClassMember()
643 ValueDecl(Kind DK, DeclContext *DC, SourceLocation L, in ValueDecl()
1009 static VarDecl *Create(ASTContext &C, DeclContext *DC,
1739 public DeclContext,
2791 EnumConstantDecl(DeclContext *DC, SourceLocation L, in EnumConstantDecl()
3065 public DeclContext,
3597 friend class DeclContext;
3858 class BlockDecl : public Decl, public DeclContext {
3925 BlockDecl(DeclContext *DC, SourceLocation CaretLoc);
[all …]
H A DDeclOpenMP.h50 OMPThreadPrivateDecl(Kind DK, DeclContext *DC, SourceLocation L) : in OMPThreadPrivateDecl()
64 static OMPThreadPrivateDecl *Create(ASTContext &C, DeclContext *DC,
103 class OMPDeclareReductionDecl final : public ValueDecl, public DeclContext {
135 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L,
201 static DeclContext *castToDeclContext(const OMPDeclareReductionDecl *D) { in castToDeclContext()
204 static OMPDeclareReductionDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
206 const_cast<DeclContext *>(DC)); in castFromDeclContext()
221 OMPCapturedExprDecl(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, in OMPCapturedExprDecl()
230 static OMPCapturedExprDecl *Create(ASTContext &C, DeclContext *DC,
261 OMPRequiresDecl(Kind DK, DeclContext *DC, SourceLocation L) in OMPRequiresDecl()
[all …]
H A DDependentDiagnostic.h42 DeclContext *Parent, in Create()
100 friend class DeclContext::ddiag_iterator;
108 DeclContext *Parent,
126 class DeclContext::ddiag_iterator {
176 inline DeclContext::ddiag_range DeclContext::ddiags() const { in ddiags()
H A 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()
H A DDeclCXX.h136 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC,
307 friend class DeclContext;
2826 class LinkageSpecDecl : public Decl, public DeclContext {
2849 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc,
2931 DeclContext *CommonAncestor;
2938 DeclContext *CommonAncestor)
2957 friend class DeclContext;
3039 NamespaceAliasDecl(ASTContext &C, DeclContext *DC,
3370 UsingDecl(DeclContext *DC, SourceLocation UL,
3471 static UsingDecl *Create(ASTContext &C, DeclContext *DC,
[all …]
H A DDeclContextInternals.h145 DeclContext::lookup_result getLookupResult() { in getLookupResult()
147 return DeclContext::lookup_result(); in getLookupResult()
154 return DeclContext::lookup_result(ND); in getLookupResult()
161 return DeclContext::lookup_result(Vector); in getLookupResult()
247 friend class DeclContext; variable
257 friend class DeclContext; // iterates over diagnostics
H A DDeclTemplate.h843 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl()
1173 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
1467 TemplateTemplateParmDecl(DeclContext *DC, SourceLocation L,
1473 TemplateTemplateParmDecl(DeclContext *DC, SourceLocation L,
1612 BuiltinTemplateDecl(const ASTContext &C, DeclContext *DC,
1710 Create(ASTContext &Context, TagKind TK, DeclContext *DC,
1916 DeclContext *DC,
1936 Create(ASTContext &Context, TagKind TK, DeclContext *DC,
2115 static ClassTemplateDecl *Create(ASTContext &C, DeclContext *DC,
2272 FriendTemplateDecl(DeclContext *DC, SourceLocation Loc,
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDeclBase.cpp323 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
1011 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext
1039 DeclContext::~DeclContext() = default;
1047 DeclContext *DeclContext::getLookupParent() { in getLookupParent()
1148 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses()
1158 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext()
1371 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin()
1566 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl()
1730 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext()
1748 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext()
[all …]
H A DExternalASTMerger.cpp39 const DeclContext *CanonicalizeDC(const DeclContext *DC) { in CanonicalizeDC()
45 Source<const DeclContext *>
52 Source<const DeclContext *> SourceParentDC = in LookupSameContext()
61 DeclContext::lookup_result SearchResult = in LookupSameContext()
77 if (isa<DeclContext>(SearchResultDecl) && in LookupSameContext()
115 if (auto *ToDC = dyn_cast<DeclContext>(To)) { in Imported()
124 Source<DeclContext *> FromDC( in Imported()
125 cast<DeclContext>(From)->getPrimaryContext()); in Imported()
273 bool IsSameDC(const DeclContext *D1, const DeclContext *D2) { in IsSameDC()
288 Source<const DeclContext *> FoundFromDC = in MaybeRecordOrigin()
[all …]
H A DASTImporterLookupTable.cpp59 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add()
65 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove()
74 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()
76 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
83 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
85 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()
91 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { in lookup()
104 void ASTImporterLookupTable::dump(DeclContext *DC) const { in dump()
122 DeclContext *DC = Entry.first; in dump()
H A DDeclOpenMP.cpp30 DeclContext *DC, in Create()
62 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC, in Create()
93 Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in OMPDeclareReductionDecl()
95 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr), in OMPDeclareReductionDecl()
103 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create()
132 OMPCapturedExprDecl *OMPCapturedExprDecl::Create(ASTContext &C, DeclContext *DC, in Create()
H A DDeclTemplate.cpp131 DeclContext *Owner) { in AdoptTemplateParameterList()
245 DeclContext *DC, in Create()
250 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
344 DeclContext *DC, in Create()
350 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
487 TemplateTypeParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
613 DeclContext *DC, SourceLocation L, unsigned D, unsigned P, in TemplateTemplateParmDecl()
741 DeclContext *DC, in Create()
834 DeclContext *DC, in ClassTemplatePartialSpecializationDecl()
853 Create(ASTContext &Context, TagKind TK,DeclContext *DC, in Create()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h23 class DeclContext; variable
59 clang::DeclContext &GetTranslationUnitDecl();
62 clang::DeclContext *GetOrCreateDeclContextForUid(PdbSymUid uid);
63 clang::DeclContext *GetParentDeclContext(PdbSymUid uid);
73 void ParseDeclsForContext(clang::DeclContext &context);
83 CompilerDeclContext ToCompilerDeclContext(clang::DeclContext &context);
115 clang::DeclContext &scope);
116 clang::DeclContext *
120 void ParseDeclsForSimpleContext(clang::DeclContext &context);
124 std::pair<clang::DeclContext *, std::string>
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DDeclNodes.td13 class DeclContext {}
15 def TranslationUnit : Decl, DeclContext;
18 def ExternCContext : Decl, DeclContext;
20 def Namespace : DDecl<Named, "namespaces">, DeclContext;
30 def Tag : DDecl<Type, "tag types", 1>, DeclContext;
43 def OMPDeclareReduction : DDecl<Value>, DeclContext;
49 def Function : DDecl<Declarator, "functions">, DeclContext;
87 def LinkageSpec : Decl, DeclContext;
88 def Export : Decl, DeclContext;
95 def Block : Decl<"blocks">, DeclContext;
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Index/
H A DIndexingContext.h29 class DeclContext; variable
73 const DeclContext *DC = nullptr);
77 const DeclContext *DC,
100 const DeclContext *DC = nullptr,
105 const DeclContext *DC = nullptr,
111 const DeclContext *DC = nullptr);
113 bool indexDeclContext(const DeclContext *DC);
116 const DeclContext *DC = nullptr);
130 const DeclContext *ContainerDC);
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.h69 clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die);
96 clang::DeclContext *containing_decl_ctx,
113 clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die);
115 clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die,
123 clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die);
125 void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
138 typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::DeclContext *>
142 typedef std::multimap<const clang::DeclContext *, const DWARFDIE>
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Core/
H A DLookup.cpp27 getAllNamedNamespaces(const DeclContext *Context) { in getAllNamedNamespaces()
29 auto GetNextNamedNamespace = [](const DeclContext *Context) { in getAllNamedNamespaces()
46 usingFromDifferentCanonicalNamespace(const DeclContext *FromContext, in usingFromDifferentCanonicalNamespace()
47 const DeclContext *UseContext) { in usingFromDifferentCanonicalNamespace()
82 static StringRef getBestNamespaceSubstr(const DeclContext *DeclA, in getBestNamespaceSubstr()
124 const DeclContext &UseContext) { in isAmbiguousNameInScope()
150 const DeclContext *UseContext, in replaceNestedName()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/PDB/
H A DPDBASTParser.h54 clang::DeclContext *
56 clang::DeclContext *
59 void ParseDeclsForDeclContext(const clang::DeclContext *decl_context);
61 clang::NamespaceDecl *FindNamespaceDecl(const clang::DeclContext *parent,
73 typedef llvm::DenseMap<clang::DeclContext *, NamespacesSet>
75 typedef llvm::DenseMap<clang::DeclContext *, lldb::user_id_t>
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Symbol/
H A DClangASTContext.h198 clang::DeclContext *GetTranslationUnitDecl() { in GetTranslationUnitDecl()
232 clang::DeclContext::lookup_result result =
276 CompilerType CreateRecordType(clang::DeclContext *decl_ctx,
299 CreateFunctionTemplateDecl(clang::DeclContext *decl_ctx,
308 CreateClassTemplateDecl(clang::DeclContext *decl_ctx,
316 clang::DeclContext *decl_ctx,
324 static clang::DeclContext *
327 static clang::DeclContext *
364 clang::DeclContext *decl_ctx);
518 static clang::DeclContext *
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaLookup.cpp55 const DeclContext *Nominated;
56 const DeclContext *CommonAncestor;
131 void visit(DeclContext *DC, DeclContext *EffectiveDC) { in visit()
153 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { in addUsingDirectives()
968 DeclContext *Lexical = nullptr; in findOuterContext()
1013 DeclContext *Semantic = DC; in findOuterContext()
1156 DeclContext *OuterCtx; in CppLookupName()
1299 DeclContext *OuterCtx; in CppLookupName()
2029 DeclContext *Context; in LookupQualifiedName()
3700 DeclContext *Entity = nullptr; in LookupVisibleDecls()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTSource.h67 void MaterializeVisibleDecls(const clang::DeclContext *DC) { return; } in MaterializeVisibleDecls()
95 bool FindExternalVisibleDeclsByName(const clang::DeclContext *DC,
112 const clang::DeclContext *DC,
242 bool FindExternalVisibleDeclsByName(const clang::DeclContext *DC, in FindExternalVisibleDeclsByName()
248 const clang::DeclContext *DC, in FindExternalLexicalDecls()
492 const clang::DeclContext
527 clang::DeclarationName &name, const clang::DeclContext *dc) in NameSearchContext()

12345678