| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclBase.cpp | 1186 DeclContext::DeclContext(Decl::Kind K) { in DeclContext() function in DeclContext 1208 DeclContext::~DeclContext() = default; 1216 DeclContext *DeclContext::getLookupParent() { in getLookupParent() 1335 bool DeclContext::Encloses(const DeclContext *DC) const { in Encloses() 1346 DeclContext *DeclContext::getNonTransparentContext() { in getNonTransparentContext() 1355 DeclContext *DeclContext::getPrimaryContext() { in getPrimaryContext() 1554 DeclContext::decl_iterator DeclContext::decls_begin() const { in decls_begin() 1757 void DeclContext::buildLookupImpl(DeclContext *DCtx, bool Internal) { in buildLookupImpl() 1920 DeclContext *DeclContext::getRedeclContext() { in getRedeclContext() 1938 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() 198 if (auto *ToDC = dyn_cast<DeclContext>(To)) { in Imported() 207 Source<DeclContext *> FromDC( in Imported() 208 cast<DeclContext>(From)->getPrimaryContext()); in Imported() 355 bool IsSameDC(const DeclContext *D1, const DeclContext *D2) { in IsSameDC() 370 Source<const DeclContext *> FoundFromDC = in MaybeRecordOrigin() [all …]
|
| H A D | ASTImporterLookupTable.cpp | 104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() 110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() 128 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() 130 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add() 137 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove() 139 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in remove() 144 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update() 163 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { in lookup() 176 bool ASTImporterLookupTable::contains(DeclContext *DC, NamedDecl *ND) const { in contains() 180 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()
|
| H A D | ASTDumper.cpp | 27 void ASTDumper::dumpInvalidDeclContext(const DeclContext *DC) { in dumpInvalidDeclContext() 54 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) { in dumpLookups() 59 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups() 232 LLVM_DUMP_METHOD void DeclContext::dumpAsDecl() const { in dumpAsDecl() 236 LLVM_DUMP_METHOD void DeclContext::dumpAsDecl(const ASTContext *Ctx) const { in dumpAsDecl() 257 LLVM_DUMP_METHOD void DeclContext::dumpLookups() const { in dumpLookups() 261 LLVM_DUMP_METHOD void DeclContext::dumpLookups(raw_ostream &OS, in dumpLookups() 264 const DeclContext *DC = this; in dumpLookups()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Classic/ |
| H A D | DWARFLinkerDeclContext.h | 80 class DeclContext { 82 using Map = DenseSet<DeclContext *, DeclMapInfo>; 119 const DeclContext &Parent; 142 PointerIntPair<DeclContext *, 1> getChildDeclContext(DeclContext &Context, 147 DeclContext &getRoot() { return Root; } in getRoot() 151 DeclContext Root; 152 DeclContext::Map Contexts; 171 using DenseMapInfo<DeclContext *>::getEmptyKey; 172 using DenseMapInfo<DeclContext *>::getTombstoneKey; 174 static unsigned getHashValue(const DeclContext *Ctxt) { in getHashValue() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclBase.h | 48 class DeclContext; variable 251 friend class DeclContext; 254 DeclContext *SemanticDC; 255 DeclContext *LexicalDC; 969 const DeclContext * 1277 void setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, 1446 class DeclContext { 2063 ~DeclContext(); 2793 const ::clang::DeclContext,const ::clang::DeclContext> { 2800 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, 202 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 | ASTLambda.h | 33 inline bool isLambdaCallOperator(const DeclContext *DC) { in isLambdaCallOperator() 38 inline bool isLambdaCallWithExplicitObjectParameter(const DeclContext *DC) { in isLambdaCallWithExplicitObjectParameter() 43 inline bool isLambdaCallWithImplicitObjectParameter(const DeclContext *DC) { in isLambdaCallWithImplicitObjectParameter() 77 inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) { in isGenericLambdaCallOperatorSpecialization() 83 const DeclContext *DC) { in isGenericLambdaCallOperatorOrStaticInvokerSpecialization() 95 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { in getLambdaAwareParentOfDeclContext()
|
| H A D | Decl.h | 83 public DeclContext, 225 DeclContext(ExternCContext) {} in ExternCContextDecl() 373 const DeclContext *DC = getDeclContext(); in isCXXClassMember() 712 ValueDecl(Kind DK, DeclContext *DC, SourceLocation L, in ValueDecl() 1141 static VarDecl *Create(ASTContext &C, DeclContext *DC, 1958 public DeclContext, 3540 public DeclContext, 4129 friend class DeclContext; 4447 class BlockDecl : public Decl, public DeclContext { 4514 BlockDecl(DeclContext *DC, SourceLocation CaretLoc); [all …]
|
| H A D | DependentDiagnostic.h | 41 DeclContext *Parent, in Create() 99 friend class DeclContext::ddiag_iterator; 107 DeclContext *Parent, 127 class DeclContext::ddiag_iterator { 177 inline DeclContext::ddiag_range DeclContext::ddiags() const { in ddiags()
|
| H A D | DeclCXX.h | 90 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl() 265 friend class DeclContext; variable 2927 class LinkageSpecDecl : public Decl, public DeclContext { 3023 DeclContext *CommonAncestor; 3030 DeclContext *CommonAncestor) in UsingDirectiveDecl() 3049 friend class DeclContext; variable 3131 NamespaceAliasDecl(ASTContext &C, DeclContext *DC, in NamespaceAliasDecl() 3516 UsingDecl(DeclContext *DC, SourceLocation UL, in UsingDecl() 3559 static UsingDecl *Create(ASTContext &C, DeclContext *DC, 3869 UnresolvedUsingValueDecl(DeclContext *DC, QualType Ty, in UnresolvedUsingValueDecl() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/ |
| H A D | DWARFLinkerDeclContext.cpp | 34 bool DeclContext::setLastSeenDIE(CompileUnit &U, const DWARFDie &Die) { in setLastSeenDIE() 47 PointerIntPair<DeclContext *, 1> 59 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 63 return PointerIntPair<DeclContext *, 1>(&Context); in getChildDeclContext() 69 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 83 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 105 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 144 return PointerIntPair<DeclContext *, 1>(nullptr); in getChildDeclContext() 164 DeclContext Key(Hash, Line, ByteSize, Tag, NameRef, FileRef, Context); in getChildDeclContext() 170 DeclContext *NewContext = in getChildDeclContext() [all …]
|
| /freebsd-14.2/contrib/llvm-project/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; 94 def LinkageSpec : DeclNode<Decl>, DeclContext; 95 def Export : DeclNode<Decl>, DeclContext; 103 def Block : DeclNode<Decl, "blocks">, DeclContext; 104 def Captured : DeclNode<Decl>, DeclContext; [all …]
|
| /freebsd-14.2/contrib/llvm-project/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); 117 clang::DeclContext &scope); 126 bool is_inline, clang::DeclContext *parent); 127 void ParseNamespace(clang::DeclContext &parent); 130 void ParseDeclsForSimpleContext(clang::DeclContext &context); 133 std::pair<clang::DeclContext *, std::string> [all …]
|
| /freebsd-14.2/contrib/llvm-project/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);
|
| /freebsd-14.2/contrib/llvm-project/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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | InterpreterUtils.cpp | 47 const DeclContext *Within) { in LookupNamespace() 60 S.LookupQualifiedName(R, const_cast<DeclContext *>(Within)); in LookupNamespace() 72 const DeclContext *Within) { in LookupNamed() 82 const DeclContext *PrimaryWithin = nullptr; in LookupNamed() 84 PrimaryWithin = llvm::dyn_cast_or_null<DeclContext>(TD->getDefinition()); in LookupNamed() 92 S.LookupQualifiedName(R, const_cast<DeclContext *>(PrimaryWithin)); in LookupNamed()
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaLookup.cpp | 60 const DeclContext *Nominated; 61 const DeclContext *CommonAncestor; 118 DeclContext *Ctx = S->getEntity(); in visitScopeChain() 136 void visit(DeclContext *DC, DeclContext *EffectiveDC) { in visit() 158 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) { in addUsingDirectives() 159 SmallVector<DeclContext*, 4> queue; in addUsingDirectives() 2246 DeclContext *DC = nullptr; in LookupName() 2258 DeclContext *LastDC in LookupName() 2437 DeclContext *Context; in LookupQualifiedName() 2873 DeclContext *DC = nullptr; in DiagnoseAmbiguousLookup() [all …]
|
| /freebsd-14.2/contrib/llvm-project/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;
|