| /freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/ |
| H A D | DWARFLinkerDeclContext.h | |
| /freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Classic/ |
| H A D | DWARFLinkerDeclContext.h | 80 class DeclContext { 82 using Map = DenseSet<DeclContext *, DeclMapInfo>; 84 DeclContext() : DefinedInClangModule(0), Parent(*this) {} in DeclContext() function 86 DeclContext(unsigned Hash, uint32_t Line, uint32_t ByteSize, uint16_t Tag, 87 StringRef Name, StringRef File, const DeclContext &Parent, 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; [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclBase.cpp | 91 DeclContext *Parent, std::size_t Extra) { in operator new() 183 bool DeclContext::hasValidDeclKind() const { in hasValidDeclKind() 192 const char *DeclContext::getDeclKindName() const { in getDeclKindName() 294 if (auto *AsDC = dyn_cast<DeclContext>(this)) in isTemplated() 303 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth() 318 const DeclContext *DC = in getTemplateDepth() 323 const DeclContext *Decl::getParentFunctionOrMethod(bool LexicalParent) const { in getParentFunctionOrMethod() 324 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod() 364 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext() 368 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() 198 if (auto *ToDC = dyn_cast<DeclContext>(To)) { in Imported() 204 << " from (DeclContext*)" << (void*)llvm::cast<DeclContext>(From) in Imported() 207 Source<DeclContext *> FromDC( in Imported() [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() 129 DeclContext *DC = ND->getDeclContext(); in add() 131 DeclContext *ReDC = DC->getRedeclContext(); in add() 138 DeclContext *DC = ND->getDeclContext(); in remove() 140 DeclContext *ReDC = DC->getRedeclContext(); in remove() 145 void ASTImporterLookupTable::update(NamedDecl *ND, DeclContext *OldDC) { in update() 158 void ASTImporterLookupTable::updateForced(NamedDecl *ND, DeclContext *OldDC) { in updateForced() 164 ASTImporterLookupTable::lookup(DeclContext *DC, DeclarationName Name) const { in lookup() 177 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() 86 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC, in Create() 105 Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in OMPDeclareReductionDecl() 107 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr), in OMPDeclareReductionDecl() 115 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create() 145 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create() 176 OMPCapturedExprDecl *OMPCapturedExprDecl::Create(ASTContext &C, DeclContext *DC, in Create()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclBase.h | 49 class DeclContext; variable 252 friend class DeclContext; 255 DeclContext *SemanticDC; 256 DeclContext *LexicalDC; 272 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx; 274 bool isInSemaDC() const { return isa<DeclContext *>(DeclCtx); } in isInSemaDC() 279 DeclContext *getSemanticDC() const { return cast<DeclContext *>(DeclCtx); } in getSemanticDC() 364 DeclContext *Parent, std::size_t Extra = 0); 371 static ModuleOwnershipKind getModuleOwnershipKindForChildOf(DeclContext *DC) { in getModuleOwnershipKindForChildOf() 392 Decl(Kind DK, DeclContext *DC, SourceLocation L) in Decl() [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 | ExternalASTMerger.h | 53 DeclContext *DC; 57 typedef std::map<const DeclContext *, DCOrigin> OriginMap; 143 bool FindExternalVisibleDeclsByName(const DeclContext *DC, 145 const DeclContext *OriginalDC) override; 149 FindExternalLexicalDecls(const DeclContext *DC, 160 bool CanComplete(DeclContext *DC); 164 void MaybeRecordOrigin(const DeclContext *ToDC, DCOrigin Origin); 167 void ForceRecordOrigin(const DeclContext *ToDC, DCOrigin Origin); 186 void RecordOriginImpl(const DeclContext *ToDC, DCOrigin Origin, 192 void ForEachMatchingDC(const DeclContext *DC, CallbackType Callback);
|
| 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 | ASTLambda.h | 34 inline bool isLambdaCallOperator(const DeclContext *DC) { in isLambdaCallOperator() 39 inline bool isLambdaMethod(const DeclContext *DC) { in isLambdaMethod() 45 inline bool isLambdaCallWithExplicitObjectParameter(const DeclContext *DC) { in isLambdaCallWithExplicitObjectParameter() 50 inline bool isLambdaCallWithImplicitObjectParameter(const DeclContext *DC) { in isLambdaCallWithImplicitObjectParameter() 84 inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) { in isGenericLambdaCallOperatorSpecialization() 90 const DeclContext *DC) { in isGenericLambdaCallOperatorOrStaticInvokerSpecialization() 102 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { in getLambdaAwareParentOfDeclContext()
|
| 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, 177 class OMPDeclareReductionDecl final : public ValueDecl, public DeclContext { 202 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L, 213 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 | 103 public DeclContext, 150 static DeclContext *castToDeclContext(const TranslationUnitDecl *D) { in castToDeclContext() 151 return static_cast<DeclContext *>(const_cast<TranslationUnitDecl*>(D)); in castToDeclContext() 153 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() 154 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext() 246 class ExternCContextDecl : public Decl, public DeclContext { 249 DeclContext(ExternCContext) {} in ExternCContextDecl() 260 static DeclContext *castToDeclContext(const ExternCContextDecl *D) { in castToDeclContext() 261 return static_cast<DeclContext *>(const_cast<ExternCContextDecl*>(D)); in castToDeclContext() 263 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() [all …]
|
| H A D | DeclCXX.h | 90 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl() 118 DeclContext *DC, SourceLocation ASLoc, in Create() 266 friend class DeclContext; variable 511 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC, 571 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC, 576 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC, 1577 bool isCurrentInstantiation(const DeclContext *CurContext) const; 1987 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl() 2020 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, 2093 class RequiresExprBodyDecl : public Decl, public DeclContext { [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/ |
| H A D | DWARFLinkerDeclContext.cpp | |
| /freebsd/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; 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 …]
|
| /freebsd/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); 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 …]
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexingContext.h | 29 class DeclContext; variable 83 const DeclContext *DC = nullptr); 86 const NamedDecl *Parent, const DeclContext *DC, 107 const DeclContext *DC = nullptr, 112 const DeclContext *DC = nullptr, 118 const DeclContext *DC = nullptr); 120 bool indexDeclContext(const DeclContext *DC); 123 const DeclContext *DC = nullptr); 139 const DeclContext *ContainerDC);
|
| /freebsd/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()
|
| H A D | ClangASTSource.h | 62 void MaterializeVisibleDecls(const clang::DeclContext *DC) {} in MaterializeVisibleDecls() 87 FindExternalVisibleDeclsByName(const clang::DeclContext *DC, 89 const clang::DeclContext *OriginalDC) override; 103 const clang::DeclContext *DC, 217 const clang::DeclContext *DC, clang::DeclarationName Name, in FindExternalVisibleDeclsByName() 218 const clang::DeclContext *OriginalDC) override { in FindExternalVisibleDeclsByName() 223 const clang::DeclContext *DC, in FindExternalLexicalDecls()
|
| /freebsd/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/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/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaLookup.cpp | 61 const DeclContext *Nominated; 62 const DeclContext *CommonAncestor; 65 UnqualUsingEntry(const DeclContext *Nominated, in UnqualUsingEntry() 66 const DeclContext *CommonAncestor) in UnqualUsingEntry() 70 const DeclContext *getCommonAncestor() const { in getCommonAncestor() 74 const DeclContext *getNominatedNamespace() const { in getNominatedNamespace() 84 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) { in operator ()() 88 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) { in operator ()() 102 llvm::SmallPtrSet<DeclContext*, 8> visited; 112 DeclContext *InnermostFileDC = InnermostFileScope->getEntity(); in visitScopeChain() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaInternal.h | 92 DeclContext *MemberContext, in TypoCorrectionConsumer() 109 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx, 210 DeclContext* DeclCtx; 215 typedef SmallVector<DeclContext*, 4> DeclContextList; 228 static DeclContextList buildContextChain(DeclContext *Start); 234 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext, 239 void addNameSpecifier(DeclContext *Ctx); 309 DeclContext *MemberContext;
|
| /freebsd/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | ClangASTNodesEmitter.cpp | 212 const Record *DeclContext, raw_ostream &OS) { in printDeclContext() argument 213 if (!DeclContext->getValueAsBit(AbstractFieldName)) in printDeclContext() 214 OS << "DECL_CONTEXT(" << DeclContext->getName() << ")\n"; in printDeclContext() 215 auto [II, E] = Tree.equal_range(DeclContext); in printDeclContext() 239 for (const Record *DeclContext : in EmitClangDeclContext() local 241 printDeclContext(Tree, DeclContext, OS); in EmitClangDeclContext()
|