/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTImporterLookupTable.h | 26 class DeclContext; 50 // And we collect these lists for each DeclContext. 51 // We could have a flat map with (DeclContext, Name) tuple as key, but a two 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 D | DeclLookups.h | 9 // This file defines DeclContext::all_lookups_iterator. 28 class DeclContext::all_lookups_iterator { 75 inline DeclContext::lookups_range DeclContext::lookups() const { 76 DeclContext *Primary = const_cast<DeclContext*>(this)->getPrimaryContext(); 88 inline DeclContext::lookups_range 89 DeclContext::noload_lookups(bool PreserveInternalState) const { 90 DeclContext *Primary = const_cast<DeclContext*>(thi [all...] |
H A D | ExternalASTMerger.h | 33 /// - The DeclContext of origin can be found by simple name lookup. In this 36 /// - The DeclContext of origin is different from what would be found by name 38 /// specifying the correct pair of DeclContext/ASTContext. 40 /// - The DeclContext of origin was determined by another ExternalASTMerger. 50 /// A single origin for a DeclContext. Unlike Decls, DeclContexts do 53 DeclContext *DC; 57 typedef std::map<const DeclContext *, DCOrigin> OriginMap; 81 /// a DeclContext whose origin has been overridden, then this 143 bool FindExternalVisibleDeclsByName(const DeclContext *DC, 148 FindExternalLexicalDecls(const DeclContext *D [all...] |
H A D | ASTLambda.h | 33 inline bool isLambdaCallOperator(const DeclContext *DC) { 62 inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) { 68 DeclContext *DC) { 79 // This returns the parent DeclContext ensuring that the correct 80 // parent DeclContext is returned for Lambdas 81 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) {
|
H A D | DeclBase.h | 9 // This file defines the Decl and DeclContext interfaces. 46 class DeclContext; 241 /// DeclContext. These pointers form the linked list that is 242 /// traversed via DeclContext's decls_begin()/decls_end(). 248 friend class DeclContext; 251 DeclContext *SemanticDC; 252 DeclContext *LexicalDC; 255 /// DeclCtx - Holds either a DeclContext* or a MultipleDC*. 257 /// the DeclContext where the Decl was declared. 268 llvm::PointerUnion<DeclContext*, MultipleD 1303 class DeclContext { class in namespace:clang [all...] |
H A D | DeclOpenMP.h | 49 OMPThreadPrivateDecl(Kind DK, DeclContext *DC, SourceLocation L) : 63 static OMPThreadPrivateDecl *Create(ASTContext &C, DeclContext *DC, 102 class OMPDeclareReductionDecl final : public ValueDecl, public DeclContext { 103 // This class stores some data in DeclContext::OMPDeclareReductionDeclBits 134 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L, 145 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, 200 static DeclContext *castToDeclContext(const OMPDeclareReductionDecl *D) { 201 return static_cast<DeclContext *>(const_cast<OMPDeclareReductionDecl *>(D)); 203 static OMPDeclareReductionDecl *castFromDeclContext(const DeclContext *DC) { 205 const_cast<DeclContext *>(D [all...] |
H A D | DependentDiagnostic.h | 41 DeclContext *Parent, 99 friend class DeclContext::ddiag_iterator; 107 DeclContext *Parent, 125 class DeclContext::ddiag_iterator { 159 assert(N >= 0 && "cannot rewind a DeclContext::ddiag_iterator"); 175 inline DeclContext::ddiag_range DeclContext::ddiags() const {
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
H A D | Lookup.h | 22 class DeclContext; 43 const DeclContext *UseContext,
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DWARFLinker/ |
H A D | DWARFLinkerDeclContext.h | 56 /// A DeclContext is a named program scope that is used for ODR uniquing of 59 /// The set of DeclContext for the ODR-subject parts of a Dwarf link is 68 /// Storing a StringMap in each DeclContext would be too space inefficient. 70 /// The solution here is to give each DeclContext a link to its parent (this 72 /// DeclContext using a separate DenseMap keyed on the hash of the fully 74 class DeclContext { class in namespace:llvm 76 using Map = DenseSet<DeclContext *, DeclMapInfo>; 78 DeclContext() : DefinedInClangModule(0), Parent(*this) {} function in class:llvm::DeclContext 80 DeclContext(unsigned Hash, uint32_t Line, uint32_t ByteSize, uint16_t Tag, function in class:llvm::DeclContext 81 StringRef Name, StringRef File, const DeclContext [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DWARFLinker/ |
H A D | DWARFLinkerDeclContext.cpp | 21 /// DeclContext tree. 30 bool DeclContext::setLastSeenDIE(CompileUnit &U, const DWARFDie &Die) { 43 PointerIntPair<DeclContext *, 1> DeclContextTree::getChildDeclContext( 44 DeclContext &Context, const DWARFDie &DIE, CompileUnit &U, 55 return PointerIntPair<DeclContext *, 1>(nullptr); 59 return PointerIntPair<DeclContext *, 1>(&Context); 65 return PointerIntPair<DeclContext *, 1>(nullptr); 79 return PointerIntPair<DeclContext *, 1>(nullptr); 108 return PointerIntPair<DeclContext *, 1>(nullptr); 114 // Gather some discriminating data about the DeclContext w [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexingContext.h | 28 class DeclContext; 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); 133 const DeclContext *ContainerDC);
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTImporterLookupTable.cpp | 75 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { 81 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { 90 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); 92 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); 99 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); 101 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); 107 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { 120 void ASTImporterLookupTable::dump(DeclContext *DC) const { 138 DeclContext *DC = Entry.first;
|
H A D | DeclBase.cpp | 9 // This file implements the Decl and DeclContext classes. 94 DeclContext *Parent, std::size_t Extra) { 155 const char *DeclContext::getDeclKindName() const { 258 if (auto *AsDC = dyn_cast<DeclContext>(this)) 266 if (auto *DC = dyn_cast<DeclContext>(this)) 274 // template. In this case, the next step is not the parent DeclContext (or 275 // even a DeclContext at all). 281 const DeclContext *DC = 286 const DeclContext *Decl::getParentFunctionOrMethod() const { 287 for (const DeclContext *D 1055 DeclContext::DeclContext(Decl::Kind K) { function in class:DeclContext [all...] |
H A D | ExternalASTMerger.cpp | 38 const DeclContext *CanonicalizeDC(const DeclContext *DC) { 44 Source<const DeclContext *> 45 LookupSameContext(Source<TranslationUnitDecl *> SourceTU, const DeclContext *DC, 51 Source<const DeclContext *> SourceParentDC = 65 DeclContext::lookup_result SearchResult = 81 if (isa<DeclContext>(SearchResultDecl) && 83 return cast<DeclContext>(SearchResultDecl)->getPrimaryContext(); 98 /// it sees a DeclContext. 196 /// Whenever a DeclContext i [all...] |
H A D | ExternalASTSource.cpp | 98 ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC, 103 void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) {} 106 const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant,
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Index/ |
H A D | IndexDataConsumer.h | 17 class DeclContext; 32 const DeclContext *ContainerDC;
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ASTResultSynthesizer.h | 17 class DeclContext; 133 /// The DeclContext of the function, into which the result variable 135 bool SynthesizeBodyResult(clang::CompoundStmt *Body, clang::DeclContext *DC); 137 /// Given a DeclContext for a function or method, find all types declared in 142 void RecordPersistentTypes(clang::DeclContext *FunDeclCtx);
|
H A D | CxxModuleHandler.cpp | 47 static void makeScopes(Sema &sema, DeclContext *ctxt, 63 /// Uses the Sema to look up the given name in the given DeclContext. 65 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { 91 /// Error class for handling problems when finding a certain DeclContext. 96 MissingDeclContext(DeclContext *context, std::string error) 99 DeclContext *m_context; 117 static llvm::Expected<DeclContext *> 118 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) { 128 // Recursively find/build the parent DeclContext. 129 llvm::Expected<DeclContext *> paren [all...] |
H A D | NameSearchContext.h | 36 /// The DeclContext to put declarations into. 37 const clang::DeclContext *m_decl_context; 63 /// The DeclContext to register Decls in. 66 clang::DeclarationName name, const clang::DeclContext *dc) 106 /// of querying a DeclContext. 113 /// of querying a DeclContext.
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | PdbAstBuilder.h | 22 class DeclContext; 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 [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Core/ |
H A D | Lookup.cpp | 30 getAllNamedNamespaces(const DeclContext *Context) { 32 auto GetNextNamedNamespace = [](const DeclContext *Context) { 49 usingFromDifferentCanonicalNamespace(const DeclContext *FromContext, 50 const DeclContext *UseContext) { 85 static StringRef getBestNamespaceSubstr(const DeclContext *DeclA, 129 const DeclContext &UseContext, 187 const DeclContext *UseContext,
|
/freebsd-13-stable/contrib/llvm-project/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>
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTCommon.h | 85 const DeclContext *getDefinitiveDeclContext(const DeclContext *DC); 96 template<typename Fn> void numberAnonymousDeclsWithin(const DeclContext *DC,
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFASTParserClang.h | 77 typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::DeclContext *> 79 typedef std::multimap<const clang::DeclContext *, const DWARFDIE> 97 clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die); 121 ParseChildParameters(clang::DeclContext *containing_decl_ctx, 142 clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die); 144 clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die, 153 clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die); 155 void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | UninitializedValues.h | 24 class DeclContext; 128 void runUninitializedVariablesAnalysis(const DeclContext &dc, const CFG &cfg,
|