clang 20.0.0git
|
Describes API notes data for an Objective-C class or protocol or a C++ namespace. More...
#include "clang/APINotes/Types.h"
Public Member Functions | |
ContextInfo () | |
std::optional< NullabilityKind > | getDefaultNullability () const |
Determine the default nullability for properties and methods of this class. | |
void | setDefaultNullability (NullabilityKind Kind) |
Set the default nullability for properties and methods of this class. | |
bool | hasDesignatedInits () const |
void | setHasDesignatedInits (bool Value) |
std::optional< bool > | getSwiftImportAsNonGeneric () const |
void | setSwiftImportAsNonGeneric (std::optional< bool > Value) |
std::optional< bool > | getSwiftObjCMembers () const |
void | setSwiftObjCMembers (std::optional< bool > Value) |
ContextInfo & | operator|= (const ContextInfo &RHS) |
LLVM_DUMP_METHOD void | dump (llvm::raw_ostream &OS) |
Public Member Functions inherited from clang::api_notes::CommonTypeInfo | |
CommonTypeInfo () | |
const std::optional< std::string > & | getSwiftBridge () const |
void | setSwiftBridge (std::optional< std::string > SwiftType) |
const std::optional< std::string > & | getNSErrorDomain () const |
void | setNSErrorDomain (const std::optional< std::string > &Domain) |
void | setNSErrorDomain (const std::optional< llvm::StringRef > &Domain) |
CommonTypeInfo & | operator|= (const CommonTypeInfo &RHS) |
LLVM_DUMP_METHOD void | dump (llvm::raw_ostream &OS) const |
Public Member Functions inherited from clang::api_notes::CommonEntityInfo | |
CommonEntityInfo () | |
std::optional< bool > | isSwiftPrivate () const |
void | setSwiftPrivate (std::optional< bool > Private) |
CommonEntityInfo & | operator|= (const CommonEntityInfo &RHS) |
LLVM_DUMP_METHOD void | dump (llvm::raw_ostream &OS) const |
Friends | |
bool | operator== (const ContextInfo &, const ContextInfo &) |
Additional Inherited Members | |
Public Attributes inherited from clang::api_notes::CommonEntityInfo | |
std::string | UnavailableMsg |
Message to use when this entity is unavailable. | |
unsigned | Unavailable: 1 |
Whether this entity is marked unavailable. | |
unsigned | UnavailableInSwift: 1 |
Whether this entity is marked unavailable in Swift. | |
std::string | SwiftName |
Swift name of this entity. | |
Describes API notes data for an Objective-C class or protocol or a C++ namespace.
LLVM_DUMP_METHOD void clang::api_notes::ContextInfo::dump | ( | llvm::raw_ostream & | OS | ) |
Definition at line 35 of file APINotesTypes.cpp.
References clang::api_notes::CommonTypeInfo::dump().
|
inline |
Determine the default nullability for properties and methods of this class.
Returns the default nullability, if implied, or std::nullopt if there is none.
Definition at line 231 of file Types.h.
Referenced by operator|=(), clang::api_notes::ObjCPropertyInfo::operator|=(), and clang::api_notes::ObjCMethodInfo::operator|=().
|
inline |
Definition at line 247 of file Types.h.
Referenced by operator|=(), and ProcessAPINotes().
|
inline |
Definition at line 257 of file Types.h.
Referenced by operator|=(), and ProcessAPINotes().
|
inline |
|
inline |
Definition at line 268 of file Types.h.
References getDefaultNullability(), getSwiftImportAsNonGeneric(), getSwiftObjCMembers(), setDefaultNullability(), setSwiftImportAsNonGeneric(), and setSwiftObjCMembers().
|
inline |
Set the default nullability for properties and methods of this class.
Definition at line 239 of file Types.h.
References Kind.
Referenced by operator|=().
|
inline |
|
inline |
Definition at line 252 of file Types.h.
Referenced by operator|=().
|
inline |
Definition at line 261 of file Types.h.
Referenced by operator|=().
|
friend |