/// Whether this declaration comes from explicit global module.
bool isFromExplicitGlobalModule() const;
+ /// Whether this declaration comes from global module.
+ bool isFromGlobalModule() const;
+
/// Whether this declaration comes from a named module.
bool isInNamedModule() const;
return getOwningModule() && getOwningModule()->isExplicitGlobalModule();
}
+bool Decl::isFromGlobalModule() const {
+ return getOwningModule() && getOwningModule()->isGlobalModule();
+}
+
bool Decl::isInNamedModule() const {
return getOwningModule() && getOwningModule()->isNamedModule();
}