Home
last modified time | relevance | path

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

12345678

/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A 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 …]
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()
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 …]
H A 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()
121 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { in lookup()
134 void ASTImporterLookupTable::dump(DeclContext *DC) const { in dump()
152 DeclContext *DC = Entry.first; in dump()
H A 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()
H A DDeclTemplate.cpp168 DeclContext *Owner) { in AdoptTemplateParameterList()
221 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl()
342 DeclContext *DC, in Create()
347 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
441 DeclContext *DC, in Create()
446 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl)); in Create()
617 TemplateTypeParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
698 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl()
715 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
731 const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A 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 …]
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 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 …]
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 DDecl.h82 class TranslationUnitDecl : public Decl, public DeclContext {
104 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext()
105 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext()
107 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
108 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
196 class ExternCContextDecl : public Decl, public DeclContext {
199 DeclContext(ExternCContext) {} in ExternCContextDecl()
210 static DeclContext *castToDeclContext(const ExternCContextDecl *D) { in castToDeclContext()
211 return static_cast<DeclContext *>(const_cast<ExternCContextDecl*>(D)); in castToDeclContext()
213 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
[all …]
H A 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);
67 LookupResult lookup(DeclContext *DC, DeclarationName Name) const;
68 void dump(DeclContext *DC) const;
H A 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()
H A 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()
H A DDeclCXX.h90 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl()
118 DeclContext *DC, SourceLocation ASLoc, in Create()
261 friend class DeclContext; variable
482 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC,
543 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
548 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
1500 bool isCurrentInstantiation(const DeclContext *CurContext) const;
1852 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl()
1874 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
1924 class RequiresExprBodyDecl : public Decl, public DeclContext {
[all …]
H A DDeclObjC.h139 class ObjCMethodDecl : public NamedDecl, public DeclContext {
174 DeclContext *contextDecl, bool isInstance = true,
235 DeclContext *contextDecl, bool isInstance = true,
544 static DeclContext *castToDeclContext(const ObjCMethodDecl *D) { in castToDeclContext()
545 return static_cast<DeclContext *>(const_cast<ObjCMethodDecl*>(D)); in castToDeclContext()
548 static ObjCMethodDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext()
549 return static_cast<ObjCMethodDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
593 ObjCTypeParamDecl(ASTContext &ctx, DeclContext *dc, in ObjCTypeParamDecl()
609 static ObjCTypeParamDecl *Create(ASTContext &ctx, DeclContext *dc,
772 ObjCPropertyDecl(DeclContext *DC, SourceLocation L, IdentifierInfo *Id, in ObjCPropertyDecl()
[all …]
H A DDeclTemplate.h404 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
409 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl()
848 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl()
997 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
1117 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
1208 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
1218 static TemplateTypeParmDecl *Create(const ASTContext &C, DeclContext *DC,
1413 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1420 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1429 Create(const ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DWARFLinker/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DWARFLinker/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/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;
50 def Function : DeclNode<Declarator, "functions">, DeclContext;
78 def ObjCMethod : DeclNode<Named, "Objective-C methods">, DeclContext;
79 def ObjCContainer : DeclNode<Named, "Objective-C containers", 1>, DeclContext;
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Index/
H A 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);
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
H A 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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A 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;
H A DScope.h33 class DeclContext; variable
205 DeclContext *Entity;
343 DeclContext *getEntity() const { in getEntity()
349 DeclContext *getLookupEntity() const { return Entity; } in getLookupEntity()
351 void setEntity(DeclContext *E) { in setEntity()
356 void setLookupEntity(DeclContext *E) { Entity = E; } in setLookupEntity()
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCXIndexDataConsumer.h61 const DeclContext *DC;
283 typedef llvm::DenseMap<const DeclContext *, CXIdxClientContainer>
403 const DeclContext *LexicalDC);
415 const DeclContext *DC,
425 CXIdxClientContainer getClientContainerForDC(const DeclContext *DC) const;
426 void addContainerInMap(const DeclContext *DC, CXIdxClientContainer container);
447 const DeclContext *LexicalDC = nullptr,
448 const DeclContext *SemaDC = nullptr);
460 const DeclContext *getEntityContainer(const Decl *D) const;
470 void getContainerInfo(const DeclContext *DC, ContainerInfo &ContInfo);

12345678