Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/AST/Decl.h
Show First 20 Lines • Show All 403 Lines • ▼ Show 20 Lines | public: | ||||
bool isExternallyVisible() const { | bool isExternallyVisible() const { | ||||
return clang::isExternallyVisible(getLinkageInternal()); | return clang::isExternallyVisible(getLinkageInternal()); | ||||
} | } | ||||
/// Determine whether this declaration can be redeclared in a | /// Determine whether this declaration can be redeclared in a | ||||
/// different translation unit. | /// different translation unit. | ||||
bool isExternallyDeclarable() const { | bool isExternallyDeclarable() const { | ||||
return isExternallyVisible() && !getOwningModuleForLinkage(); | return isExternallyVisible() && !getModuleAttachment(); | ||||
} | } | ||||
/// Determines the visibility of this entity. | /// Determines the visibility of this entity. | ||||
Visibility getVisibility() const { | Visibility getVisibility() const { | ||||
return getLinkageAndVisibility().getVisibility(); | return getLinkageAndVisibility().getVisibility(); | ||||
} | } | ||||
/// Determines the linkage and visibility of this entity. | /// Determines the linkage and visibility of this entity. | ||||
▲ Show 20 Lines • Show All 4,262 Lines • Show Last 20 Lines |