|
clang 22.0.0git
|
Describes API notes data for an Objective-C method. More...
#include "clang/APINotes/Types.h"
Public Member Functions | |
| ObjCMethodInfo () | |
| ObjCMethodInfo & | operator|= (const ContextInfo &RHS) |
| LLVM_DUMP_METHOD void | dump (llvm::raw_ostream &OS) |
| Public Member Functions inherited from clang::api_notes::FunctionInfo | |
| FunctionInfo () | |
| void | addTypeInfo (unsigned index, NullabilityKind kind) |
| void | addReturnTypeInfo (NullabilityKind kind) |
| Adds the return type info. | |
| void | addParamTypeInfo (unsigned index, NullabilityKind kind) |
| Adds the parameter type info. | |
| NullabilityKind | getParamTypeInfo (unsigned index) const |
| NullabilityKind | getReturnTypeInfo () const |
| std::optional< RetainCountConventionKind > | getRetainCountConvention () const |
| void | setRetainCountConvention (std::optional< RetainCountConventionKind > Value) |
| 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 |
Public Attributes | |
| unsigned | DesignatedInit: 1 |
| Whether this is a designated initializer of its class. | |
| unsigned | RequiredInit: 1 |
| Whether this is a required initializer. | |
| std::optional< ParamInfo > | Self |
| Public Attributes inherited from clang::api_notes::FunctionInfo | |
| unsigned | NullabilityAudited: 1 |
| Whether the signature has been audited with respect to nullability. | |
| unsigned | NumAdjustedNullable: 8 |
| Number of types whose nullability is encoded with the NullabilityPayload. | |
| unsigned | RawRetainCountConvention: 3 |
| A biased RetainCountConventionKind, where 0 means "unspecified". | |
| uint64_t | NullabilityPayload = 0 |
| Stores the nullability of the return type and the parameters. | |
| std::string | ResultType |
| The result type of this function, as a C type. | |
| std::string | SwiftReturnOwnership |
| Ownership convention for return value. | |
| std::vector< ParamInfo > | Params |
| The function parameters. | |
| 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. | |
Friends | |
| bool | operator== (const ObjCMethodInfo &LHS, const ObjCMethodInfo &RHS) |
Additional Inherited Members | |
| Static Public Member Functions inherited from clang::api_notes::FunctionInfo | |
| static unsigned | getMaxNullabilityIndex () |
|
inline |
Definition at line 687 of file Types.h.
References DesignatedInit, false, ObjCMethodInfo(), and RequiredInit.
Referenced by ObjCMethodInfo(), operator==, and operator|=().
| LLVM_DUMP_METHOD void clang::api_notes::ObjCMethodInfo::dump | ( | llvm::raw_ostream & | OS | ) |
Definition at line 103 of file APINotesTypes.cpp.
References DesignatedInit, clang::api_notes::FunctionInfo::FunctionInfo(), RequiredInit, and Self.
|
inline |
Definition at line 691 of file Types.h.
References clang::api_notes::FunctionInfo::addTypeInfo(), clang::api_notes::ContextInfo::getDefaultNullability(), clang::api_notes::FunctionInfo::NullabilityAudited, clang::Nullable, and ObjCMethodInfo().
|
friend |
Definition at line 705 of file Types.h.
References DesignatedInit, clang::api_notes::FunctionInfo::FunctionInfo(), ObjCMethodInfo(), RequiredInit, and Self.
| unsigned clang::api_notes::ObjCMethodInfo::DesignatedInit |
Whether this is a designated initializer of its class.
Definition at line 679 of file Types.h.
Referenced by clang::api_notes::APINotesWriter::addObjCMethod(), dump(), ObjCMethodInfo(), operator==, and ProcessAPINotes().
| unsigned clang::api_notes::ObjCMethodInfo::RequiredInit |
Whether this is a required initializer.
Definition at line 683 of file Types.h.
Referenced by dump(), ObjCMethodInfo(), and operator==.
| std::optional<ParamInfo> clang::api_notes::ObjCMethodInfo::Self |
Definition at line 685 of file Types.h.
Referenced by dump(), and operator==.