Searched refs:ModuleOwnershipKind (Results 1 – 8 of 8) sorted by relevance
216 enum class ModuleOwnershipKind : unsigned char { enum249 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 …]
182 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()
3383 Decl::ModuleOwnershipKind::ReachableWhenImported); in DeclareGlobalNewDelete()3398 Decl::ModuleOwnershipKind::ReachableWhenImported); in DeclareGlobalNewDelete()3529 Decl::ModuleOwnershipKind::ReachableWhenImported); in DeclareGlobalAllocationFunction()
11948 Dcl->setModuleOwnershipKind(Decl::ModuleOwnershipKind::VisibleWhenImported); in ActOnFinishNamespaceDef()
567 (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()
387 (getModuleOwnershipKind() != ModuleOwnershipKind::VisibleWhenImported || in setLexicalDeclContext()1140 getModuleOwnershipKind() == ModuleOwnershipKind::ReachableWhenImported; in isModuleLocal()
1193 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()
354 member->setModuleOwnershipKind(clang::Decl::ModuleOwnershipKind::Visible); in SetMemberOwningModule()1205 decl->setModuleOwnershipKind(clang::Decl::ModuleOwnershipKind::Visible); in SetOwningModule()