Home
last modified time | relevance | path

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

123456789

/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/
H A DDWARFLinkerDeclContext.h
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp93 DeclContext *Parent, std::size_t Extra) { in operator new()
177 bool DeclContext::hasValidDeclKind() const { in hasValidDeclKind()
186 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
288 if (auto *AsDC = dyn_cast<DeclContext>(this)) in isTemplated()
297 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth()
312 const DeclContext *DC = in getTemplateDepth()
317 const DeclContext *Decl::getParentFunctionOrMethod(bool LexicalParent) const { in getParentFunctionOrMethod()
318 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod()
358 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
362 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
[all …]
H A DExternalASTMerger.cpp38 const DeclContext *CanonicalizeDC(const DeclContext *DC) { in CanonicalizeDC()
44 Source<const DeclContext *>
45 LookupSameContext(Source<TranslationUnitDecl *> SourceTU, const DeclContext *DC, in LookupSameContext()
51 Source<const DeclContext *> SourceParentDC = in LookupSameContext()
65 DeclContext::lookup_result SearchResult = in LookupSameContext()
79 if (isa<DeclContext>(SearchResultDecl) && in LookupSameContext()
81 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext(); in LookupSameContext()
198 if (auto *ToDC = dyn_cast<DeclContext>(To)) { in Imported()
204 << " from (DeclContext*)" << (void*)llvm::cast<DeclContext>(From) in Imported()
207 Source<DeclContext *> FromDC( in Imported()
[all …]
H A DASTImporterLookupTable.cpp104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add()
110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove()
128 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()
130 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
137 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
139 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()
144 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update()
157 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced()
163 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { in lookup()
176 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains()
[all …]
H A DDeclOpenMP.cpp29 DeclContext *DC, in Create()
57 OMPAllocateDecl *OMPAllocateDecl::Create(ASTContext &C, DeclContext *DC, in Create()
86 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC, in Create()
105 Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in OMPDeclareReductionDecl()
107 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr), in OMPDeclareReductionDecl()
115 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create()
145 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create()
176 OMPCapturedExprDecl *OMPCapturedExprDecl::Create(ASTContext &C, DeclContext *DC, in Create()
H A DASTDumper.cpp26 void ASTDumper::dumpInvalidDeclContext(const DeclContext *DC) { in dumpInvalidDeclContext()
53 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) { in dumpLookups()
58 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
244 LLVM_DUMP_METHOD void DeclContext::dumpAsDecl() const { in dumpAsDecl()
248 LLVM_DUMP_METHOD void DeclContext::dumpAsDecl(const ASTContext *Ctx) const { in dumpAsDecl()
269 LLVM_DUMP_METHOD void DeclContext::dumpLookups() const { in dumpLookups()
273 LLVM_DUMP_METHOD void DeclContext::dumpLookups(raw_ostream &OS, in dumpLookups()
276 const DeclContext *DC = this; in dumpLookups()
H A DDeclTemplate.cpp203 DeclContext *Owner) { in AdoptTemplateParameterList()
263 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl()
411 FunctionTemplateDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, in Create()
414 bool Invalid = AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
494 ClassTemplateDecl *ClassTemplateDecl::Create(ASTContext &C, DeclContext *DC, in Create()
499 bool Invalid = AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
642 const ASTContext &C, DeclContext *DC, SourceLocation KeyLoc, in Create()
726 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl()
743 const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create()
757 const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h49 class DeclContext; variable
252 friend class DeclContext;
255 DeclContext *SemanticDC;
256 DeclContext *LexicalDC;
272 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx;
274 bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); } in isInSemaDC()
281 DeclContext *getSemanticDC() const { in getSemanticDC()
282 return DeclCtx.get<DeclContext*>(); in getSemanticDC()
367 DeclContext *Parent, std::size_t Extra = 0);
374 static ModuleOwnershipKind getModuleOwnershipKindForChildOf(DeclContext *DC) { in getModuleOwnershipKindForChildOf()
[all …]
H A DASTImporterLookupTable.h25 class DeclContext; variable
54 using DCMap = llvm::DenseMap<DeclContext *, NameMap>;
56 void add(DeclContext *DC, NamedDecl *ND);
57 void remove(DeclContext *DC, NamedDecl *ND);
76 void update(NamedDecl *ND, DeclContext *OldDC);
80 void updateForced(NamedDecl *ND, DeclContext *OldDC);
82 LookupResult lookup(DeclContext *DC, DeclarationName Name) const;
86 bool contains(DeclContext *DC, NamedDecl *ND) const;
87 void dump(DeclContext *DC) const;
H A DDeclLookups.h28 class DeclContext::all_lookups_iterator {
75 inline DeclContext::lookups_range DeclContext::lookups() const { in lookups()
76 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in lookups()
88 inline DeclContext::lookups_range
89 DeclContext::noload_lookups(bool PreserveInternalState) const { in noload_lookups()
90 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); in noload_lookups()
H A DExternalASTMerger.h53 DeclContext *DC;
57 typedef std::map<const DeclContext *, DCOrigin> OriginMap;
143 bool FindExternalVisibleDeclsByName(const DeclContext *DC,
148 FindExternalLexicalDecls(const DeclContext *DC,
159 bool CanComplete(DeclContext *DC);
163 void MaybeRecordOrigin(const DeclContext *ToDC, DCOrigin Origin);
166 void ForceRecordOrigin(const DeclContext *ToDC, DCOrigin Origin);
185 void RecordOriginImpl(const DeclContext *ToDC, DCOrigin Origin,
191 void ForEachMatchingDC(const DeclContext *DC, CallbackType Callback);
H A DDeclOpenMP.h50 static T *createDirective(const ASTContext &C, DeclContext *DC, in createDirective()
115 OMPThreadPrivateDecl(DeclContext *DC = nullptr,
132 static OMPThreadPrivateDecl *Create(ASTContext &C, DeclContext *DC,
177 class OMPDeclareReductionDecl final : public ValueDecl, public DeclContext {
202 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L,
213 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name,
269 static DeclContext *castToDeclContext(const OMPDeclareReductionDecl *D) { in castToDeclContext()
270 return static_cast<DeclContext *>(const_cast<OMPDeclareReductionDecl *>(D)); in castToDeclContext()
272 static OMPDeclareReductionDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
274 const_cast<DeclContext *>(DC)); in castFromDeclContext()
[all …]
H A DDecl.h83 public DeclContext,
130 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext()
131 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext()
133 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
134 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
222 class ExternCContextDecl : public Decl, public DeclContext {
225 DeclContext(ExternCContext) {} in ExternCContextDecl()
236 static DeclContext *castToDeclContext(const ExternCContextDecl *D) { in castToDeclContext()
237 return static_cast<DeclContext *>(const_cast<ExternCContextDecl*>(D)); in castToDeclContext()
239 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
[all …]
H A DDeclCXX.h90 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl()
118 DeclContext *DC, SourceLocation ASLoc, in Create()
265 friend class DeclContext; variable
512 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC,
573 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
578 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
1569 bool isCurrentInstantiation(const DeclContext *CurContext) const;
1963 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl()
1985 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
2036 class RequiresExprBodyDecl : public Decl, public DeclContext {
[all …]
H A DDeclTemplate.h399 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
404 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl()
823 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl()
971 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
1082 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
1191 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
1202 Create(const ASTContext &C, DeclContext *DC, SourceLocation KeyLoc,
1386 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1393 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1402 Create(const ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFLinkerDeclContext.cpp
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DDeclNodes.td10 class DeclContext {}
13 def TranslationUnit : DeclNode<Decl>, DeclContext;
16 def ExternCContext : DeclNode<Decl>, DeclContext;
18 def Namespace : DeclNode<Named, "namespaces">, DeclContext;
28 def Tag : DeclNode<Type, "tag types", 1>, DeclContext;
41 def OMPDeclareReduction : DeclNode<Value>, DeclContext;
42 def OMPDeclareMapper : DeclNode<Value>, DeclContext;
51 def Function : DeclNode<Declarator, "functions">, DeclContext;
82 def ObjCMethod : DeclNode<Named, "Objective-C methods">, DeclContext;
83 def ObjCContainer : DeclNode<Named, "Objective-C containers", 1>, DeclContext;
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h24 class DeclContext; variable
62 clang::DeclContext *GetOrCreateDeclContextForUid(PdbSymUid uid);
63 clang::DeclContext *GetParentDeclContext(PdbSymUid uid);
73 void ParseDeclsForContext(clang::DeclContext &context);
83 CompilerDeclContext ToCompilerDeclContext(clang::DeclContext &context);
85 clang::DeclContext *FromCompilerDeclContext(CompilerDeclContext context);
117 clang::DeclContext &scope);
119 clang::DeclContext &context);
126 bool is_inline, clang::DeclContext *parent);
127 void ParseNamespace(clang::DeclContext &parent);
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp54 static void makeScopes(Sema &sema, DeclContext *ctxt, in makeScopes()
72 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { in emulateLookupInCtxt()
103 MissingDeclContext(DeclContext *context, std::string error) in MissingDeclContext()
106 DeclContext *m_context;
124 static llvm::Expected<DeclContext *>
125 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) { in getEqualLocalDeclContext()
136 llvm::Expected<DeclContext *> parent = in getEqualLocalDeclContext()
148 if (DeclContext *DC = llvm::dyn_cast<DeclContext>(named_decl)) in getEqualLocalDeclContext()
208 llvm::Expected<DeclContext *> to_context = in tryInstantiateStdTemplate()
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
H A DPDBASTParser.h53 clang::DeclContext *
55 clang::DeclContext *
58 void ParseDeclsForDeclContext(const clang::DeclContext *decl_context);
60 clang::NamespaceDecl *FindNamespaceDecl(const clang::DeclContext *parent,
72 typedef llvm::DenseMap<clang::DeclContext *, NamespacesSet>
74 typedef llvm::DenseMap<clang::DeclContext *, lldb::user_id_t>
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreterUtils.cpp47 const DeclContext *Within) { in LookupNamespace()
60 S.LookupQualifiedName(R, const_cast<DeclContext *>(Within)); in LookupNamespace()
72 const DeclContext *Within) { in LookupNamed()
82 const DeclContext *PrimaryWithin = nullptr; in LookupNamed()
84 PrimaryWithin = llvm::dyn_cast_or_null<DeclContext>(TD->getDefinition()); in LookupNamed()
92 S.LookupQualifiedName(R, const_cast<DeclContext *>(PrimaryWithin)); in LookupNamed()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp62 const DeclContext *Nominated;
63 const DeclContext *CommonAncestor;
66 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry()
67 const DeclContext *CommonAncestor) in UnqualUsingEntry()
71 const DeclContext *getCommonAncestor() const { in getCommonAncestor()
75 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace()
85 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()()
89 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()()
103 llvm::SmallPtrSet<DeclContext*, 8> visited;
113 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h92 DeclContext *MemberContext, in TypoCorrectionConsumer()
109 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
210 DeclContext* DeclCtx;
215 typedef SmallVector<DeclContext*, 4> DeclContextList;
228 static DeclContextList buildContextChain(DeclContext *Start);
234 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
239 void addNameSpecifier(DeclContext *Ctx);
309 DeclContext *MemberContext;
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h187 static void DumpDeclContextHiearchy(clang::DeclContext *decl_ctx);
219 static clang::DeclContext *GetDeclContextForType(clang::QualType type);
221 static clang::DeclContext *GetDeclContextForType(const CompilerType &type);
262 clang::DeclContext *decl_context = nullptr) {
274 clang::DeclContext::lookup_result result = decl_context->lookup(myName);
328 CompilerType CreateRecordType(clang::DeclContext *decl_ctx,
421 clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
429 clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
437 clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
445 static clang::DeclContext *
[all …]
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.h61 const DeclContext *getDefinitiveDeclContext(const DeclContext *DC);
72 template<typename Fn> void numberAnonymousDeclsWithin(const DeclContext *DC, in numberAnonymousDeclsWithin()

123456789