| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | DeclBase.cpp | 94 DeclContext *Parent, std::size_t Extra) { in operator new() 155 bool DeclContext::hasValidDeclKind() const { in hasValidDeclKind() 164 const char *DeclContext::getDeclKindName() const { in getDeclKindName() 266 if (auto *AsDC = dyn_cast<DeclContext>(this)) in isTemplated() 275 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth() 290 const DeclContext *DC = in getTemplateDepth() 295 const DeclContext *Decl::getParentFunctionOrMethod(bool LexicalParent) const { in getParentFunctionOrMethod() 296 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod() 336 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext() 340 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext() [all …]
|
| H A D | ExternalASTMerger.cpp | 38 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 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() 143 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced() 149 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { in lookup() 162 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains() [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()
|
| H A D | ASTDumper.cpp | 26 void ASTDumper::dumpInvalidDeclContext(const DeclContext *DC) { in dumpInvalidDeclContext() 53 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) { in dumpLookups() 58 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups() 231 LLVM_DUMP_METHOD void DeclContext::dumpAsDecl() const { in dumpAsDecl() 235 LLVM_DUMP_METHOD void DeclContext::dumpAsDecl(const ASTContext *Ctx) const { in dumpAsDecl() 256 LLVM_DUMP_METHOD void DeclContext::dumpLookups() const { in dumpLookups() 260 LLVM_DUMP_METHOD void DeclContext::dumpLookups(raw_ostream &OS, in dumpLookups() 263 const DeclContext *DC = this; in dumpLookups()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFLinkerDeclContext.h | 78 class DeclContext { 80 using Map = DenseSet<DeclContext *, DeclMapInfo>; 82 DeclContext() : DefinedInClangModule(0), Parent(*this) {} in DeclContext() function 84 DeclContext(unsigned Hash, uint32_t Line, uint32_t ByteSize, uint16_t Tag, 85 StringRef Name, StringRef File, const DeclContext &Parent, 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; [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | DeclBase.h | 46 class DeclContext; variable 249 friend class DeclContext; 252 DeclContext *SemanticDC; 253 DeclContext *LexicalDC; 269 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx; 271 bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); } in isInSemaDC() 278 DeclContext *getSemanticDC() const { in getSemanticDC() 279 return DeclCtx.get<DeclContext*>(); in getSemanticDC() 354 DeclContext *Parent, std::size_t Extra = 0); 361 static ModuleOwnershipKind getModuleOwnershipKindForChildOf(DeclContext *DC) { in getModuleOwnershipKindForChildOf() [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, 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 D | Decl.h | 81 public DeclContext, 128 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext() 129 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext() 131 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() 132 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext() 220 class ExternCContextDecl : public Decl, public DeclContext { 223 DeclContext(ExternCContext) {} in ExternCContextDecl() 234 static DeclContext *castToDeclContext(const ExternCContextDecl *D) { in castToDeclContext() 235 return static_cast<DeclContext *>(const_cast<ExternCContextDecl*>(D)); in castToDeclContext() 237 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() [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() 118 DeclContext *DC, SourceLocation ASLoc, in Create() 261 friend class DeclContext; variable 496 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC, 557 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC, 562 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC, 1538 bool isCurrentInstantiation(const DeclContext *CurContext) const; 1901 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl() 1923 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, 1973 class RequiresExprBodyDecl : public Decl, public DeclContext { [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DWARFLinker/ |
| H A D | DWARFLinkerDeclContext.cpp | 31 bool DeclContext::setLastSeenDIE(CompileUnit &U, const DWARFDie &Die) { in setLastSeenDIE() 44 PointerIntPair<DeclContext *, 1> 45 DeclContextTree::getChildDeclContext(DeclContext &Context, const DWARFDie &DIE, in getChildDeclContext() 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() [all …]
|
| /openbsd-src/gnu/llvm/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; 41 def OMPDeclareReduction : DeclNode<Value>, DeclContext; 42 def OMPDeclareMapper : DeclNode<Value>, DeclContext; 51 def Function : DeclNode<Declarator, "functions">, DeclContext; 82 def ObjCMethod : DeclNode<Named, "Objective-C methods">, DeclContext; 83 def ObjCContainer : DeclNode<Named, "Objective-C containers", 1>, DeclContext; [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | PdbAstBuilder.h | 24 class DeclContext; variable 62 clang::DeclContext *GetOrCreateDeclContextForUid(PdbSymUid uid); 63 clang::DeclContext *GetParentDeclContext(PdbSymUid uid); 73 void ParseDeclsForContext(clang::DeclContext &context); 83 CompilerDeclContext ToCompilerDeclContext(clang::DeclContext &context); 85 clang::DeclContext *FromCompilerDeclContext(CompilerDeclContext context); 117 clang::DeclContext &scope); 119 clang::DeclContext &context); 126 bool is_inline, clang::DeclContext *parent); 127 void ParseNamespace(clang::DeclContext &parent); [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Index/ |
| H A D | IndexingContext.h | 28 class DeclContext; variable 76 const DeclContext *DC = nullptr); 79 const NamedDecl *Parent, const DeclContext *DC, 101 const DeclContext *DC = nullptr, 106 const DeclContext *DC = nullptr, 112 const DeclContext *DC = nullptr); 114 bool indexDeclContext(const DeclContext *DC); 117 const DeclContext *DC = nullptr); 133 const DeclContext *ContainerDC);
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | CxxModuleHandler.cpp | 54 static void makeScopes(Sema &sema, DeclContext *ctxt, in makeScopes() 72 emulateLookupInCtxt(Sema &sema, llvm::StringRef name, DeclContext *ctxt) { in emulateLookupInCtxt() 103 MissingDeclContext(DeclContext *context, std::string error) in MissingDeclContext() 106 DeclContext *m_context; 124 static llvm::Expected<DeclContext *> 125 getEqualLocalDeclContext(Sema &sema, DeclContext *foreign_ctxt) { in getEqualLocalDeclContext() 136 llvm::Expected<DeclContext *> parent = in getEqualLocalDeclContext() 148 if (DeclContext *DC = llvm::dyn_cast<DeclContext>(named_decl)) in getEqualLocalDeclContext() 208 llvm::Expected<DeclContext *> to_context = in tryInstantiateStdTemplate()
|
| /openbsd-src/gnu/llvm/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>
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaLookup.cpp | 60 const DeclContext *Nominated; 61 const DeclContext *CommonAncestor; 64 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry() 65 const DeclContext *CommonAncestor) in UnqualUsingEntry() 69 const DeclContext *getCommonAncestor() const { in getCommonAncestor() 73 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace() 83 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()() 87 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()() 101 llvm::SmallPtrSet<DeclContext*, 8> visited; 111 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFASTParserClang.h | 111 typedef llvm::DenseMap<const DWARFDebugInfoEntry *, clang::DeclContext *> 113 typedef std::multimap<const clang::DeclContext *, const DWARFDIE> 129 clang::DeclContext *GetDeclContextForBlock(const DWARFDIE &die); 155 ParseChildParameters(clang::DeclContext *containing_decl_ctx, 176 clang::DeclContext *GetClangDeclContextForDIE(const DWARFDIE &die); 178 clang::DeclContext *GetClangDeclContextContainingDIE(const DWARFDIE &die, 187 clang::DeclContext *GetCachedClangDeclContextForDIE(const DWARFDIE &die); 189 void LinkDeclContextToDIE(clang::DeclContext *decl_ctx, const DWARFDIE &die);
|
| /openbsd-src/gnu/llvm/clang/include/clang/Sema/ |
| H A D | SemaInternal.h | 96 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;
|