Searched refs:DeclContext (Results 26 - 50 of 199) sorted by relevance

12345678

/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExternalASTSourceCallbacks.cpp39 const clang::DeclContext *decl_ctx,
44 const_cast<clang::DeclContext *>(decl_ctx));
51 const clang::DeclContext *DC, clang::DeclarationName Name) {
H A DNameSearchContext.cpp31 ast, const_cast<DeclContext *>(m_decl_context), SourceLocation(),
63 clang::DeclContext *context = const_cast<DeclContext *>(m_decl_context);
100 ParmVarDecl::Create(ast, const_cast<DeclContext *>(context),
H A DClangExternalASTSourceCallbacks.h29 const clang::DeclContext *DC,
33 bool FindExternalVisibleDeclsByName(const clang::DeclContext *DC,
H A DClangASTSource.h62 void MaterializeVisibleDecls(const clang::DeclContext *DC) { return; }
79 /// The DeclContext to register the found Decls in.
86 bool FindExternalVisibleDeclsByName(const clang::DeclContext *DC,
92 /// The DeclContext being searched.
101 const clang::DeclContext *DC,
214 bool FindExternalVisibleDeclsByName(const clang::DeclContext *DC,
220 const clang::DeclContext *DC,
366 /// \param namespace_decl The DeclContext in which to search for namespaces.
H A DClangASTImporter.cpp109 clang::DeclContext *decl_context;
110 clang::DeclContext *lexical_decl_context;
127 clang::Decl *decl, clang::DeclContext *base,
128 clang::DeclContext *(clang::Decl::*contextFromDecl)(),
129 clang::DeclContext *(clang::DeclContext::*contextFromContext)()) {
130 for (DeclContext *decl_ctx = (decl->*contextFromDecl)(); decl_ctx;
141 clang::DeclContext *base = nullptr) {
143 // decl's DeclContext chains must pass through base.
146 &clang::DeclContext
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DASTDumper.h35 void dumpLookups(const DeclContext *DC, bool DumpDecls);
H A DDeclContextInternals.h1 //===- DeclContextInternals.h - DeclContext Representation ------*- C++ -*-===//
10 // of DeclContext.
143 DeclContext::lookup_result getLookupResult() {
145 return DeclContext::lookup_result();
152 return DeclContext::lookup_result(ND);
159 return DeclContext::lookup_result(Vector);
245 friend class DeclContext;
255 friend class DeclContext; // iterates over diagnostics
H A DDecl.h82 class TranslationUnitDecl : public Decl, public DeclContext {
104 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) {
105 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D));
107 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) {
108 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC));
196 class ExternCContextDecl : public Decl, public DeclContext {
199 DeclContext(ExternCContext) {}
210 static DeclContext *castToDeclContext(const ExternCContextDecl *D) {
211 return static_cast<DeclContext *>(const_cast<ExternCContextDecl*>(D));
213 static ExternCContextDecl *castFromDeclContext(const DeclContext *D
[all...]
H A DDeclCXX.h90 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC,
118 DeclContext *DC, SourceLocation ASLoc,
261 friend class DeclContext;
399 /// actual DeclContext does not suffice. This is used for lambdas that
465 /// members have been added. It will be invoked by DeclContext::addDecl()
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,
1485 bool isCurrentInstantiation(const DeclContext *CurContext) const;
1792 /// default arguments will have as their DeclContext th
[all...]
H A DASTMutationListener.h23 class DeclContext;
53 /// A new declaration with name has been added to a DeclContext.
54 virtual void AddedVisibleDecl(const DeclContext *DC, const Decl *D) {}
H A DODRHash.h92 static bool isDeclToBeProcessed(const Decl* D, const DeclContext *Parent);
H A DASTImporter.h42 class DeclContext;
289 FoundDeclsTy findDeclsInToCtx(DeclContext *DC, DeclarationName Name);
415 llvm::Expected<DeclContext *> ImportContext(DeclContext *FromDC);
538 HandleNameConflict(DeclarationName Name, DeclContext *DC, unsigned IDNS,
H A DDeclTemplate.h407 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
412 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
851 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC,
1000 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
1120 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
1211 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
1221 static TemplateTypeParmDecl *Create(const ASTContext &C, DeclContext *DC,
1416 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1423 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1432 Create(const ASTContext &C, DeclContext *D
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DMultiplexExternalSemaSource.h98 bool FindExternalVisibleDeclsByName(const DeclContext *DC,
103 void completeVisibleDeclsMap(const DeclContext *DC) override;
106 /// DeclContext, after applying an optional filter predicate.
111 FindExternalLexicalDecls(const DeclContext *DC,
349 DeclContext *MemberContext,
H A DSemaInternal.h96 DeclContext *MemberContext,
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,
241 /// Add the DeclContext (a namespace or record) to the set, computing
243 void addNameSpecifier(DeclContext *Ctx);
301 /// The pointer value being set to the current DeclContext indicates
313 DeclContext *MemberContex
[all...]
H A DScope.h33 class DeclContext;
196 /// The DeclContext with which this scope is associated. For
199 DeclContext *Entity;
326 DeclContext *getEntity() const {
330 /// Get the DeclContext in which to continue unqualified lookup after a
332 DeclContext *getLookupEntity() const { return Entity; }
334 void setEntity(DeclContext *E) {
339 void setLookupEntity(DeclContext *E) { Entity = E; }
H A DIdentifierResolver.h28 class DeclContext;
155 bool isDeclInScope(Decl *D, DeclContext *Ctx, Scope *S = nullptr,
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DDeclOpenMP.cpp29 DeclContext *DC,
61 OMPAllocateDecl *OMPAllocateDecl::Create(ASTContext &C, DeclContext *DC,
104 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC,
135 Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
137 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr),
145 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name,
175 OMPDeclareMapperDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L,
234 OMPCapturedExprDecl *OMPCapturedExprDecl::Create(ASTContext &C, DeclContext *DC,
H A DASTDumper.cpp25 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) {
30 const DeclContext *Primary = DC->getPrimaryContext();
209 LLVM_DUMP_METHOD void DeclContext::dumpLookups() const {
213 LLVM_DUMP_METHOD void DeclContext::dumpLookups(raw_ostream &OS,
216 const DeclContext *DC = this;
H A DDeclTemplate.cpp155 DeclContext *Owner) {
196 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L,
317 DeclContext *DC,
322 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl));
416 DeclContext *DC,
421 AdoptTemplateParameterList(Params, cast<DeclContext>(Decl));
592 TemplateTypeParmDecl::Create(const ASTContext &C, DeclContext *DC,
673 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D,
690 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC,
706 const ASTContext &C, DeclContext *D
[all...]
H A DDeclFriend.cpp34 FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC,
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp57 const DeclContext *Nominated;
58 const DeclContext *CommonAncestor;
61 UnqualUsingEntry(const DeclContext *Nominated,
62 const DeclContext *CommonAncestor)
66 const DeclContext *getCommonAncestor() const {
70 const DeclContext *getNominatedNamespace() const {
80 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) {
84 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) {
98 llvm::SmallPtrSet<DeclContext*, 8> visited;
108 DeclContext *InnermostFileD
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h198 static void DumpDeclContextHiearchy(clang::DeclContext *decl_ctx);
227 static clang::DeclContext *GetDeclContextForType(clang::QualType type);
229 static clang::DeclContext *GetDeclContextForType(const CompilerType &type);
265 clang::DeclContext *decl_context = nullptr) {
277 clang::DeclContext::lookup_result result = decl_context->lookup(myName);
324 CompilerType CreateRecordType(clang::DeclContext *decl_ctx,
350 CreateFunctionTemplateDecl(clang::DeclContext *decl_ctx,
360 CreateClassTemplateDecl(clang::DeclContext *decl_ctx,
369 clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module,
377 static clang::DeclContext *
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DWARFLinker/
H A DDWARFLinkerCompileUnit.h19 class DeclContext;
58 DeclContext *Ctxt;
167 DeclContext *Ctxt, PatchLocation Attr);
276 std::tuple<DIE *, const CompileUnit *, DeclContext *, PatchLocation>>
/freebsd-13-stable/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp20 const DeclContext *ParentDC;
28 const DeclContext *DC, bool isBase, bool isIBType)
216 const DeclContext *DC,
227 const DeclContext *DC,
240 const DeclContext *DC) {

Completed in 383 milliseconds

12345678