clang 20.0.0git
|
Storage of availability attributes for a declaration. More...
#include "clang/AST/Availability.h"
Public Member Functions | |
AvailabilityInfo ()=default | |
bool | isDefault () const |
Determine if this AvailabilityInfo represents the default availability. | |
bool | isObsoleted () const |
Check if the symbol has been obsoleted. | |
bool | isUnavailable () const |
Check if the symbol is unavailable unconditionally or on the active platform and os version. | |
bool | isUnconditionallyDeprecated () const |
Check if the symbol is unconditionally deprecated. | |
bool | isUnconditionallyUnavailable () const |
Check if the symbol is unconditionally unavailable. | |
AvailabilityInfo (StringRef Domain, VersionTuple I, VersionTuple D, VersionTuple O, bool U, bool UD, bool UU) | |
Static Public Member Functions | |
static AvailabilityInfo | createFromDecl (const Decl *Decl) |
Public Attributes | |
llvm::SmallString< 32 > | Domain |
The domain is the platform for which this availability info applies to. | |
VersionTuple | Introduced |
VersionTuple | Deprecated |
VersionTuple | Obsoleted |
bool | Unavailable = false |
bool | UnconditionallyDeprecated = false |
bool | UnconditionallyUnavailable = false |
Friends | |
bool | operator== (const AvailabilityInfo &Lhs, const AvailabilityInfo &Rhs) |
Storage of availability attributes for a declaration.
Definition at line 64 of file Availability.h.
|
default |
Referenced by createFromDecl(), and isDefault().
|
inline |
Definition at line 100 of file Availability.h.
|
static |
Definition at line 21 of file Availability.cpp.
References AvailabilityInfo(), clang::Decl::getASTContext(), clang::Decl::redecls(), UnconditionallyDeprecated, and UnconditionallyUnavailable.
Referenced by clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordEnumConstants(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCInstanceVariables(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCMethods(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::recordObjCProperties(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplatePartialSpecializationDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitClassTemplateSpecializationDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitConceptDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXConstructorDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXConversionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXDestructorDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXMethodDecl(), clang::installapi::InstallAPIVisitor::VisitCXXRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitCXXRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitEnumDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFieldDecl(), clang::installapi::InstallAPIVisitor::VisitFunctionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFunctionDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitFunctionTemplateDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitNamespaceDecl(), clang::installapi::InstallAPIVisitor::VisitObjCCategoryDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCCategoryDecl(), clang::installapi::InstallAPIVisitor::VisitObjCInterfaceDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCInterfaceDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitObjCProtocolDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitRecordDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitTypedefNameDecl(), clang::installapi::InstallAPIVisitor::VisitVarDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplateDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplatePartialSpecializationDecl(), and clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitVarTemplateSpecializationDecl().
|
inline |
Determine if this AvailabilityInfo represents the default availability.
Definition at line 77 of file Availability.h.
References AvailabilityInfo().
|
inline |
Check if the symbol has been obsoleted.
Definition at line 80 of file Availability.h.
References Obsoleted.
|
inline |
Check if the symbol is unavailable unconditionally or on the active platform and os version.
Definition at line 84 of file Availability.h.
References isUnconditionallyUnavailable(), and Unavailable.
|
inline |
Check if the symbol is unconditionally deprecated.
i.e.
Definition at line 91 of file Availability.h.
References UnconditionallyDeprecated.
|
inline |
Check if the symbol is unconditionally unavailable.
i.e.
Definition at line 96 of file Availability.h.
References UnconditionallyUnavailable.
Referenced by isUnavailable().
|
friend |
Definition at line 113 of file Availability.h.
VersionTuple clang::AvailabilityInfo::Deprecated |
Definition at line 68 of file Availability.h.
llvm::SmallString<32> clang::AvailabilityInfo::Domain |
The domain is the platform for which this availability info applies to.
Definition at line 66 of file Availability.h.
VersionTuple clang::AvailabilityInfo::Introduced |
Definition at line 67 of file Availability.h.
VersionTuple clang::AvailabilityInfo::Obsoleted |
Definition at line 69 of file Availability.h.
Referenced by isObsoleted().
Definition at line 70 of file Availability.h.
Referenced by isUnavailable().
Definition at line 71 of file Availability.h.
Referenced by createFromDecl(), and isUnconditionallyDeprecated().
Definition at line 72 of file Availability.h.
Referenced by createFromDecl(), and isUnconditionallyUnavailable().