clang 22.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) |
std::optional< std::string > | getSwiftConformance () const |
void | setSwiftConformance (std::optional< std::string > conformance) |
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) |
std::optional< SwiftSafetyKind > | getSwiftSafety () const |
void | setSwiftSafety (SwiftSafetyKind Safety) |
CommonEntityInfo & | operator|= (const CommonEntityInfo &RHS) |
LLVM_DUMP_METHOD void | dump (llvm::raw_ostream &OS) const |
Friends | |
bool | operator== (const ContextInfo &LHS, const ContextInfo &RHS) |
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.
|
inline |
Definition at line 259 of file Types.h.
References false.
Referenced by operator==, and operator|=().
LLVM_DUMP_METHOD void clang::api_notes::ContextInfo::dump | ( | llvm::raw_ostream & | OS | ) |
Definition at line 50 of file APINotesTypes.cpp.
References clang::api_notes::CommonTypeInfo::CommonTypeInfo().
|
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 269 of file Types.h.
Referenced by operator==, operator|=(), clang::api_notes::ObjCMethodInfo::operator|=(), and clang::api_notes::ObjCPropertyInfo::operator|=().
|
inline |
Definition at line 285 of file Types.h.
Referenced by operator==, operator|=(), and ProcessAPINotes().
|
inline |
Definition at line 295 of file Types.h.
Referenced by operator==, operator|=(), and ProcessAPINotes().
|
inline |
|
inline |
Definition at line 306 of file Types.h.
References clang::api_notes::CommonTypeInfo::CommonTypeInfo(), ContextInfo(), getDefaultNullability(), getSwiftImportAsNonGeneric(), getSwiftObjCMembers(), setDefaultNullability(), setSwiftImportAsNonGeneric(), and setSwiftObjCMembers().
|
inline |
Set the default nullability for properties and methods of this class.
Definition at line 277 of file Types.h.
Referenced by operator|=().
|
inline |
|
inline |
Definition at line 290 of file Types.h.
Referenced by operator|=().
|
inline |
Definition at line 299 of file Types.h.
Referenced by operator|=().
|
friend |
Definition at line 329 of file Types.h.
References clang::api_notes::CommonTypeInfo::CommonTypeInfo(), ContextInfo(), getDefaultNullability(), getSwiftImportAsNonGeneric(), and getSwiftObjCMembers().