clang  14.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
clang::api_notes::ObjCMethodInfo Class Reference

Describes API notes data for an Objective-C method. More...

#include "clang/APINotes/Types.h"

Inheritance diagram for clang::api_notes::ObjCMethodInfo:
Inheritance graph
[legend]
Collaboration diagram for clang::api_notes::ObjCMethodInfo:
Collaboration graph
[legend]

Public Member Functions

 ObjCMethodInfo ()
 
ObjCMethodInfooperator|= (const ObjCContextInfo &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. More...
 
void addParamTypeInfo (unsigned index, NullabilityKind kind)
 Adds the parameter type info. More...
 
NullabilityKind getParamTypeInfo (unsigned index) const
 
NullabilityKind getReturnTypeInfo () const
 
llvm::Optional< RetainCountConventionKindgetRetainCountConvention () const
 
void setRetainCountConvention (llvm::Optional< RetainCountConventionKind > Value)
 
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const
 
- Public Member Functions inherited from clang::api_notes::CommonEntityInfo
 CommonEntityInfo ()
 
llvm::Optional< boolisSwiftPrivate () const
 
void setSwiftPrivate (llvm::Optional< bool > Private)
 
CommonEntityInfooperator|= (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. More...
 
unsigned RequiredInit: 1
 Whether this is a required initializer. More...
 
- Public Attributes inherited from clang::api_notes::FunctionInfo
unsigned NullabilityAudited: 1
 Whether the signature has been audited with respect to nullability. More...
 
unsigned NumAdjustedNullable: 8
 Number of types whose nullability is encoded with the NullabilityPayload. More...
 
unsigned RawRetainCountConvention: 3
 A biased RetainCountConventionKind, where 0 means "unspecified". More...
 
uint64_t NullabilityPayload = 0
 Stores the nullability of the return type and the parameters. More...
 
std::string ResultType
 The result type of this function, as a C type. More...
 
std::vector< ParamInfoParams
 The function parameters. More...
 
- Public Attributes inherited from clang::api_notes::CommonEntityInfo
std::string UnavailableMsg
 Message to use when this entity is unavailable. More...
 
unsigned Unavailable: 1
 Whether this entity is marked unavailable. More...
 
unsigned UnavailableInSwift: 1
 Whether this entity is marked unavailable in Swift. More...
 
std::string SwiftName
 Swift name of this entity. More...
 

Friends

bool operator== (const ObjCMethodInfo &, const ObjCMethodInfo &)
 

Additional Inherited Members

- Static Public Member Functions inherited from clang::api_notes::FunctionInfo
static unsigned getMaxNullabilityIndex ()
 

Detailed Description

Describes API notes data for an Objective-C method.

Definition at line 602 of file Types.h.

Constructor & Destructor Documentation

◆ ObjCMethodInfo()

clang::api_notes::ObjCMethodInfo::ObjCMethodInfo ( )
inline

Definition at line 610 of file Types.h.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void clang::api_notes::ObjCMethodInfo::dump ( llvm::raw_ostream &  OS)

◆ operator|=()

ObjCMethodInfo& clang::api_notes::ObjCMethodInfo::operator|= ( const ObjCContextInfo RHS)
inline

Friends And Related Function Documentation

◆ operator==

bool operator== ( const ObjCMethodInfo LHS,
const ObjCMethodInfo RHS 
)
friend

Definition at line 629 of file Types.h.

Member Data Documentation

◆ DesignatedInit

unsigned clang::api_notes::ObjCMethodInfo::DesignatedInit

Whether this is a designated initializer of its class.

Definition at line 605 of file Types.h.

Referenced by dump(), and clang::api_notes::operator==().

◆ RequiredInit

unsigned clang::api_notes::ObjCMethodInfo::RequiredInit

Whether this is a required initializer.

Definition at line 608 of file Types.h.

Referenced by dump(), and clang::api_notes::operator==().


The documentation for this class was generated from the following files: