Home
last modified time | relevance | path

Searched refs:ModuleOwnershipKind (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h216 enum class ModuleOwnershipKind : unsigned char { enum
249 llvm::PointerIntPair<Decl *, 3, ModuleOwnershipKind> NextInContextAndBits;
371 static ModuleOwnershipKind getModuleOwnershipKindForChildOf(DeclContext *DC) { in getModuleOwnershipKindForChildOf()
375 if (MOK != ModuleOwnershipKind::Unowned && in getModuleOwnershipKindForChildOf()
381 return ModuleOwnershipKind::Unowned; in getModuleOwnershipKindForChildOf()
646 return getModuleOwnershipKind() == ModuleOwnershipKind::ModulePrivate; in isModulePrivate()
668 return getModuleOwnershipKind() > ModuleOwnershipKind::VisibleWhenImported; in isInvisibleOutsideTheOwningModule()
706 if (getModuleOwnershipKind() == ModuleOwnershipKind::Unowned) in setModulePrivate()
708 setModuleOwnershipKind(ModuleOwnershipKind::ModulePrivate); in setModulePrivate()
835 return getModuleOwnershipKind() != ModuleOwnershipKind::Unowned; in hasOwningModule()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp182 TU->setModuleOwnershipKind(Decl::ModuleOwnershipKind::ReachableWhenImported); in ActOnGlobalModuleFragmentDecl()
224 TU->setModuleOwnershipKind(Decl::ModuleOwnershipKind::Visible); in HandleStartOfHeaderUnit()
474 TU->setModuleOwnershipKind(Decl::ModuleOwnershipKind::ReachableWhenImported); in ActOnModuleDecl()
570 TU->setModuleOwnershipKind(Decl::ModuleOwnershipKind::ModulePrivate); in ActOnPrivateModuleFragmentDecl()
792 ? Decl::ModuleOwnershipKind::VisibleWhenImported in ActOnAnnotModuleBegin()
793 : Decl::ModuleOwnershipKind::Visible); in ActOnAnnotModuleBegin()
834 Decl::ModuleOwnershipKind::Unowned); in ActOnAnnotModuleEnd()
926 D->setModuleOwnershipKind(Decl::ModuleOwnershipKind::VisibleWhenImported); in ActOnStartExportDecl()
H A DSemaExprCXX.cpp3383 Decl::ModuleOwnershipKind::ReachableWhenImported); in DeclareGlobalNewDelete()
3398 Decl::ModuleOwnershipKind::ReachableWhenImported); in DeclareGlobalNewDelete()
3529 Decl::ModuleOwnershipKind::ReachableWhenImported); in DeclareGlobalAllocationFunction()
H A DSemaDeclCXX.cpp11948 Dcl->setModuleOwnershipKind(Decl::ModuleOwnershipKind::VisibleWhenImported); in ActOnFinishNamespaceDef()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp567 (Decl::ModuleOwnershipKind)DeclBits.getNextBits(/*Width=*/3); in VisitDecl()
627 (ModuleOwnership == Decl::ModuleOwnershipKind::ModulePrivate); in VisitDecl()
630 case Decl::ModuleOwnershipKind::Visible: in VisitDecl()
631 ModuleOwnership = Decl::ModuleOwnershipKind::VisibleWhenImported; in VisitDecl()
633 case Decl::ModuleOwnershipKind::Unowned: in VisitDecl()
634 case Decl::ModuleOwnershipKind::VisibleWhenImported: in VisitDecl()
635 case Decl::ModuleOwnershipKind::ReachableWhenImported: in VisitDecl()
636 case Decl::ModuleOwnershipKind::ModulePrivate: in VisitDecl()
658 D->setModuleOwnershipKind(Decl::ModuleOwnershipKind::ModulePrivate); in VisitDecl()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp387 (getModuleOwnershipKind() != ModuleOwnershipKind::VisibleWhenImported || in setLexicalDeclContext()
1140 getModuleOwnershipKind() == ModuleOwnershipKind::ReachableWhenImported; in isModuleLocal()
H A DDecl.cpp1193 case Decl::ModuleOwnershipKind::Unowned: in isExportedFromModuleInterfaceUnit()
1194 case Decl::ModuleOwnershipKind::ReachableWhenImported: in isExportedFromModuleInterfaceUnit()
1195 case Decl::ModuleOwnershipKind::ModulePrivate: in isExportedFromModuleInterfaceUnit()
1197 case Decl::ModuleOwnershipKind::Visible: in isExportedFromModuleInterfaceUnit()
1198 case Decl::ModuleOwnershipKind::VisibleWhenImported: in isExportedFromModuleInterfaceUnit()
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp354 member->setModuleOwnershipKind(clang::Decl::ModuleOwnershipKind::Visible); in SetMemberOwningModule()
1205 decl->setModuleOwnershipKind(clang::Decl::ModuleOwnershipKind::Visible); in SetOwningModule()