| /llvm-project-15.0.7/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFLinkerDeclContext.h | 78 class DeclContext { 80 using Map = DenseSet<DeclContext *, DeclMapInfo>; 117 const DeclContext &Parent; 140 PointerIntPair<DeclContext *, 1> getChildDeclContext(DeclContext &Context, 145 DeclContext &getRoot() { return Root; } in getRoot() 149 DeclContext Root; 150 DeclContext::Map Contexts; 169 using DenseMapInfo<DeclContext *>::getEmptyKey; 170 using DenseMapInfo<DeclContext *>::getTombstoneKey; 172 static unsigned getHashValue(const DeclContext *Ctxt) { in getHashValue() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclBase.cpp | 1068 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext 1096 DeclContext::~DeclContext() = default; 1104 DeclContext *DeclContext::getLookupParent() { in getLookupParent() 1223 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses() 1234 DeclContext *DeclContext::getNonTransparentContext() { in getNonTransparentContext() 1243 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() 1433 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin() 1636 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl() 1798 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext() 1816 DeclContext *DeclContext::getEnclosingNamespaceContext() { in getEnclosingNamespaceContext() [all …]
|
| H A D | ExternalASTMerger.cpp | 38 const DeclContext *CanonicalizeDC(const DeclContext *DC) { in CanonicalizeDC() 44 Source<const DeclContext *> 51 Source<const DeclContext *> SourceParentDC = in LookupSameContext() 65 DeclContext::lookup_result SearchResult = in LookupSameContext() 79 if (isa<DeclContext>(SearchResultDecl) && in LookupSameContext() 201 if (auto *ToDC = dyn_cast<DeclContext>(To)) { in Imported() 210 Source<DeclContext *> FromDC( in Imported() 211 cast<DeclContext>(From)->getPrimaryContext()); in Imported() 358 bool IsSameDC(const DeclContext *D1, const DeclContext *D2) { in IsSameDC() 373 Source<const DeclContext *> FoundFromDC = in MaybeRecordOrigin() [all …]
|
| H A D | ASTImporterLookupTable.cpp | 90 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() 96 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() 114 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() 116 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add() 123 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove() 125 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove() 130 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update() 149 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { in lookup() 162 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains() 166 void ASTImporterLookupTable::dump(DeclContext *DC) const { in dump() [all …]
|
| H A D | DeclOpenMP.cpp | 29 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()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclBase.h | 46 class DeclContext; variable 249 friend class DeclContext; 252 DeclContext *SemanticDC; 253 DeclContext *LexicalDC; 923 const DeclContext * 1221 void setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, 1378 class DeclContext { 1895 ~DeclContext(); 2629 const ::clang::DeclContext,const ::clang::DeclContext> { 2636 struct cast_convert_val<ToTy, ::clang::DeclContext, ::clang::DeclContext> { [all …]
|
| H A D | ASTImporterLookupTable.h | 25 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 D | DeclLookups.h | 28 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 D | ExternalASTMerger.h | 53 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 D | DeclOpenMP.h | 50 static T *createDirective(const ASTContext &C, DeclContext *DC, in createDirective() 115 OMPThreadPrivateDecl(DeclContext *DC = nullptr, 132 static OMPThreadPrivateDecl *Create(ASTContext &C, DeclContext *DC, 203 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L, 274 const_cast<DeclContext *>(DC)); in castFromDeclContext() 287 public DeclContext { 306 DeclContext(OMPDeclareMapper), VarName(VarName), in OMPDeclareMapperDecl() 422 OMPRequiresDecl(DeclContext *DC, SourceLocation L) in OMPRequiresDecl() 427 static OMPRequiresDecl *Create(ASTContext &C, DeclContext *DC, 479 OMPAllocateDecl(DeclContext *DC, SourceLocation L) in OMPAllocateDecl() [all …]
|
| H A D | Decl.h | 81 public DeclContext, 223 DeclContext(ExternCContext) {} in ExternCContextDecl() 368 const DeclContext *DC = getDeclContext(); in isCXXClassMember() 680 ValueDecl(Kind DK, DeclContext *DC, SourceLocation L, in ValueDecl() 1873 public DeclContext, 3093 EnumConstantDecl(DeclContext *DC, SourceLocation L, in EnumConstantDecl() 3367 public DeclContext, 3923 friend class DeclContext; 4219 class BlockDecl : public Decl, public DeclContext { 4286 BlockDecl(DeclContext *DC, SourceLocation CaretLoc); [all …]
|
| H A D | ASTLambda.h | 33 inline bool isLambdaCallOperator(const DeclContext *DC) { in isLambdaCallOperator() 62 inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) { in isGenericLambdaCallOperatorSpecialization() 68 const DeclContext *DC) { in isGenericLambdaCallOperatorOrStaticInvokerSpecialization() 80 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { in getLambdaAwareParentOfDeclContext()
|
| H A D | DependentDiagnostic.h | 41 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 D | DeclCXX.h | 90 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl() 261 friend class DeclContext; variable 2830 class LinkageSpecDecl : public Decl, public DeclContext { 2930 DeclContext *CommonAncestor; 2937 DeclContext *CommonAncestor) in UsingDirectiveDecl() 2956 friend class DeclContext; variable 3038 NamespaceAliasDecl(ASTContext &C, DeclContext *DC, in NamespaceAliasDecl() 3423 UsingDecl(DeclContext *DC, SourceLocation UL, in UsingDecl() 3466 static UsingDecl *Create(ASTContext &C, DeclContext *DC, 3761 UnresolvedUsingValueDecl(DeclContext *DC, QualType Ty, in UnresolvedUsingValueDecl() [all …]
|
| /llvm-project-15.0.7/llvm/lib/DWARFLinker/ |
| H A D | DWARFLinkerDeclContext.cpp | 31 bool DeclContext::setLastSeenDIE(CompileUnit &U, const DWARFDie &Die) { in setLastSeenDIE() 44 PointerIntPair<DeclContext *, 1> 56 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 60 return PointerIntPair<DeclContext *, 1>(&Context); in getChildDeclContext() 66 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 80 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 102 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 141 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 161 DeclContext Key(Hash, Line, ByteSize, Tag, NameRef, FileRef, Context); in getChildDeclContext() 167 DeclContext *NewContext = in getChildDeclContext() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | DeclNodes.td | 10 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; 42 def OMPDeclareMapper : DeclNode<Value>, DeclContext; 93 def LinkageSpec : DeclNode<Decl>, DeclContext; 94 def Export : DeclNode<Decl>, DeclContext; 101 def Block : DeclNode<Decl, "blocks">, DeclContext; 102 def Captured : DeclNode<Decl>, DeclContext; [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | PdbAstBuilder.h | 22 class DeclContext; variable 60 clang::DeclContext *GetOrCreateDeclContextForUid(PdbSymUid uid); 61 clang::DeclContext *GetParentDeclContext(PdbSymUid uid); 71 void ParseDeclsForContext(clang::DeclContext &context); 81 CompilerDeclContext ToCompilerDeclContext(clang::DeclContext &context); 115 clang::DeclContext &scope); 116 clang::DeclContext * 127 bool is_inline, clang::DeclContext *parent); 129 void ParseDeclsForSimpleContext(clang::DeclContext &context); 133 std::pair<clang::DeclContext *, std::string> [all …]
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexingContext.h | 28 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);
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | CxxModuleHandler.cpp | 53 static void makeScopes(Sema &sema, DeclContext *ctxt, in makeScopes() 71 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { in emulateLookupInCtxt() 102 MissingDeclContext(DeclContext *context, std::string error) in MissingDeclContext() 105 DeclContext *m_context; 123 static llvm::Expected<DeclContext *> 124 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) { in getEqualLocalDeclContext() 135 llvm::Expected<DeclContext *> parent = in getEqualLocalDeclContext() 147 if (DeclContext *DC = llvm::dyn_cast<DeclContext>(named_decl)) in getEqualLocalDeclContext() 207 llvm::Expected<DeclContext *> to_context = in tryInstantiateStdTemplate()
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/PDB/ |
| H A D | PDBASTParser.h | 53 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>
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | Lookup.cpp | 30 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()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | AST.h | 50 std::string printNamespaceScope(const DeclContext &DC); 81 bool hasReservedScope(const DeclContext &); 122 std::string printType(const QualType QT, const DeclContext &CurContext, 185 const DeclContext *DestContext, 201 const DeclContext *DestContext,
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaLookup.cpp | 58 const DeclContext *Nominated; 59 const DeclContext *CommonAncestor; 116 DeclContext *Ctx = S->getEntity(); in visitScopeChain() 134 void visit(DeclContext *DC, DeclContext *EffectiveDC) { in visit() 156 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { in addUsingDirectives() 157 SmallVector<DeclContext*, 4> queue; in addUsingDirectives() 2232 DeclContext *DC = nullptr; in LookupName() 2244 DeclContext *LastDC in LookupName() 2423 DeclContext *Context; in LookupQualifiedName() 4760 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFASTParserClang.h | 93 typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::DeclContext *> 95 typedef std::multimap<const clang::DeclContext *, const DWARFDIE> 111 clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die); 134 ParseChildParameters(clang::DeclContext *containing_decl_ctx, 155 clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die); 157 clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die, 166 clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die); 168 void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
|
| /llvm-project-15.0.7/lldb/source/Plugins/TypeSystem/Clang/ |
| H A D | TypeSystemClang.h | 183 static void DumpDeclContextHiearchy(clang::DeclContext *decl_ctx); 314 CompilerType CreateRecordType(clang::DeclContext *decl_ctx, 367 static clang::DeclContext * 379 clang::DeclContext *decl_ctx, 407 CreateParameterDeclaration(clang::DeclContext *decl_ctx, 424 clang::DeclContext *decl_ctx, 490 CompilerDeclContext CreateDeclContext(clang::DeclContext *ctx); 514 static clang::DeclContext * 830 uint32_t CountDeclLevels(clang::DeclContext *frame_decl_ctx, 831 clang::DeclContext *child_decl_ctx, [all …]
|