Home
last modified time | relevance | path

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

123456789

/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DDeclBase.cpp94 DeclContext *Parent, std::size_t Extra) { in operator new()
155 const char *DeclContext::getDeclKindName() const { in getDeclKindName()
258 if (auto *AsDC = dyn_cast<DeclContext>(this)) in isTemplated()
266 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth()
281 const DeclContext *DC = in getTemplateDepth()
286 const DeclContext *Decl::getParentFunctionOrMethod() const { in getParentFunctionOrMethod()
287 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
327 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext()
331 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext()
355 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl()
[all …]
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()
201 if (auto *ToDC = dyn_cast<DeclContext>(To)) { in Imported()
207 << " from (DeclContext*)" << (void*)llvm::cast<DeclContext>(From) in Imported()
210 Source<DeclContext *> FromDC( in Imported()
[all …]
DASTImporterLookupTable.cpp89 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add()
95 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove()
104 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add()
106 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
113 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
115 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove()
120 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update()
134 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { in lookup()
147 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains()
151 void ASTImporterLookupTable::dump(DeclContext *DC) const { in dump()
[all …]
DDeclOpenMP.cpp29 DeclContext *DC, in Create()
57 OMPAllocateDecl *OMPAllocateDecl::Create(ASTContext &C, DeclContext *DC, in Create()
85 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC, in Create()
103 Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in OMPDeclareReductionDecl()
105 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr), in OMPDeclareReductionDecl()
113 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create()
143 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create()
174 OMPCapturedExprDecl *OMPCapturedExprDecl::Create(ASTContext &C, DeclContext *DC, in Create()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/DWARFLinker/
DDWARFLinkerDeclContext.h77 class DeclContext {
79 using Map = DenseSet<DeclContext *, DeclMapInfo>;
81 DeclContext() : DefinedInClangModule(0), Parent(*this) {} in DeclContext() function
83 DeclContext(unsigned Hash, uint32_t Line, uint32_t ByteSize, uint16_t Tag,
84 StringRef Name, StringRef File, const DeclContext &Parent,
112 const DeclContext &Parent;
134 PointerIntPair<DeclContext *, 1> getChildDeclContext(DeclContext &Context,
139 DeclContext &getRoot() { return Root; } in getRoot()
143 DeclContext Root;
144 DeclContext::Map Contexts;
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DDeclBase.h46 class DeclContext; variable
248 friend class DeclContext;
251 DeclContext *SemanticDC;
252 DeclContext *LexicalDC;
268 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx;
270 bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); } in isInSemaDC()
277 DeclContext *getSemanticDC() const { in getSemanticDC()
278 return DeclCtx.get<DeclContext*>(); in getSemanticDC()
352 DeclContext *Parent, std::size_t Extra = 0);
359 static ModuleOwnershipKind getModuleOwnershipKindForChildOf(DeclContext *DC) { in getModuleOwnershipKindForChildOf()
[all …]
DASTImporterLookupTable.h26 class DeclContext; variable
55 using DCMap = llvm::DenseMap<DeclContext *, NameMap>;
57 void add(DeclContext *DC, NamedDecl *ND);
58 void remove(DeclContext *DC, NamedDecl *ND);
77 void update(NamedDecl *ND, DeclContext *OldDC);
79 LookupResult lookup(DeclContext *DC, DeclarationName Name) const;
83 bool contains(DeclContext *DC, NamedDecl *ND) const;
84 void dump(DeclContext *DC) const;
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()
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);
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,
171 class OMPDeclareReductionDecl final : public ValueDecl, public DeclContext {
203 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L,
214 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 …]
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 …]
DASTLambda.h33 inline bool isLambdaCallOperator(const DeclContext *DC) { in isLambdaCallOperator()
62 inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) { in isGenericLambdaCallOperatorSpecialization()
68 DeclContext *DC) { in isGenericLambdaCallOperatorOrStaticInvokerSpecialization()
81 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { in getLambdaAwareParentOfDeclContext()
DDeclCXX.h91 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl()
119 DeclContext *DC, SourceLocation ASLoc, in Create()
262 friend class DeclContext; variable
483 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC,
544 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
549 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
1501 bool isCurrentInstantiation(const DeclContext *CurContext) const;
1854 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl()
1876 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
1926 class RequiresExprBodyDecl : public Decl, public DeclContext {
[all …]
DDependentDiagnostic.h41 DeclContext *Parent, in Create()
99 friend class DeclContext::ddiag_iterator;
107 DeclContext *Parent,
125 class DeclContext::ddiag_iterator {
175 inline DeclContext::ddiag_range DeclContext::ddiags() const { in ddiags()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/DWARFLinker/
DDWARFLinkerDeclContext.cpp30 bool DeclContext::setLastSeenDIE(CompileUnit &U, const DWARFDie &Die) { in setLastSeenDIE()
43 PointerIntPair<DeclContext *, 1>
44 DeclContextTree::getChildDeclContext(DeclContext &Context, const DWARFDie &DIE, in getChildDeclContext()
55 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext()
59 return PointerIntPair<DeclContext *, 1>(&Context); in getChildDeclContext()
65 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext()
79 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext()
101 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext()
140 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext()
160 DeclContext Key(Hash, Line, ByteSize, Tag, NameRef, FileRef, Context); in getChildDeclContext()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
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;
50 def Function : DeclNode<Declarator, "functions">, DeclContext;
81 def ObjCMethod : DeclNode<Named, "Objective-C methods">, DeclContext;
82 def ObjCContainer : DeclNode<Named, "Objective-C containers", 1>, DeclContext;
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
DPdbAstBuilder.h22 class DeclContext; variable
60 clang::DeclContext *GetOrCreateDeclContextForUid(PdbSymUid uid);
61 clang::DeclContext *GetParentDeclContext(PdbSymUid uid);
69 void ParseDeclsForContext(clang::DeclContext &context);
79 CompilerDeclContext ToCompilerDeclContext(clang::DeclContext &context);
81 clang::DeclContext *FromCompilerDeclContext(CompilerDeclContext context);
113 clang::DeclContext &scope);
114 clang::DeclContext *
118 clang::DeclContext &context);
121 void ParseDeclsForSimpleContext(clang::DeclContext &context);
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Index/
DIndexingContext.h28 class DeclContext; variable
76 const DeclContext *DC = nullptr);
80 const DeclContext *DC,
103 const DeclContext *DC = nullptr,
108 const DeclContext *DC = nullptr,
114 const DeclContext *DC = nullptr);
116 bool indexDeclContext(const DeclContext *DC);
119 const DeclContext *DC = nullptr);
135 const DeclContext *ContainerDC);
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DCxxModuleHandler.cpp52 static void makeScopes(Sema &sema, DeclContext *ctxt, in makeScopes()
70 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { in emulateLookupInCtxt()
101 MissingDeclContext(DeclContext *context, std::string error) in MissingDeclContext()
104 DeclContext *m_context;
122 static llvm::Expected<DeclContext *>
123 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) { in getEqualLocalDeclContext()
134 llvm::Expected<DeclContext *> parent = in getEqualLocalDeclContext()
146 if (DeclContext *DC = llvm::dyn_cast<DeclContext>(named_decl)) in getEqualLocalDeclContext()
206 llvm::Expected<DeclContext *> to_context = in tryInstantiateStdTemplate()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/
DLookup.cpp30 getAllNamedNamespaces(const DeclContext *Context) { in getAllNamedNamespaces()
32 auto GetNextNamedNamespace = [](const DeclContext *Context) { in getAllNamedNamespaces()
49 usingFromDifferentCanonicalNamespace(const DeclContext *FromContext, in usingFromDifferentCanonicalNamespace()
50 const DeclContext *UseContext) { in usingFromDifferentCanonicalNamespace()
85 static StringRef getBestNamespaceSubstr(const DeclContext *DeclA, in getBestNamespaceSubstr()
129 const DeclContext &UseContext, in disambiguateSpellingInScope()
187 const DeclContext *UseContext, in replaceNestedName()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
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-12-stable/contrib/llvm-project/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 ()()
98 llvm::SmallPtrSet<DeclContext*, 8> visited;
108 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
DDWARFASTParserClang.h77 typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::DeclContext *>
79 typedef std::multimap<const clang::DeclContext *, const DWARFDIE>
97 clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die);
120 ParseChildParameters(clang::DeclContext *containing_decl_ctx,
141 clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die);
143 clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die,
152 clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die);
154 void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
DTypeSystemClang.h186 static void DumpDeclContextHiearchy(clang::DeclContext *decl_ctx);
215 static clang::DeclContext *GetDeclContextForType(clang::QualType type);
217 static clang::DeclContext *GetDeclContextForType(const CompilerType &type);
253 clang::DeclContext *decl_context = nullptr) {
265 clang::DeclContext::lookup_result result = decl_context->lookup(myName);
312 CompilerType CreateRecordType(clang::DeclContext *decl_ctx,
341 clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
349 CreateClassTemplateDecl(clang::DeclContext *decl_ctx,
358 clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
366 static clang::DeclContext *
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
DSemaInternal.h96 DeclContext *MemberContext, in TypoCorrectionConsumer()
113 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
214 DeclContext* DeclCtx;
219 typedef SmallVector<DeclContext*, 4> DeclContextList;
232 static DeclContextList buildContextChain(DeclContext *Start);
238 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
243 void addNameSpecifier(DeclContext *Ctx);
313 DeclContext *MemberContext;

123456789