clang 22.0.0git
clang::api_notes::ObjCPropertyInfo Class Reference

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

#include "clang/APINotes/Types.h"

Inheritance diagram for clang::api_notes::ObjCPropertyInfo:
[legend]

Public Member Functions

 ObjCPropertyInfo ()
std::optional< boolgetSwiftImportAsAccessors () const
void setSwiftImportAsAccessors (std::optional< bool > Value)
ObjCPropertyInfooperator|= (const ContextInfo &RHS)
 Merge class-wide information into the given property.
ObjCPropertyInfooperator|= (const ObjCPropertyInfo &RHS)
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const
Public Member Functions inherited from clang::api_notes::VariableInfo
 VariableInfo ()
std::optional< NullabilityKindgetNullability () const
void setNullabilityAudited (NullabilityKind kind)
const std::string & getType () const
void setType (const std::string &type)
VariableInfooperator|= (const VariableInfo &RHS)
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const
Public Member Functions inherited from clang::api_notes::CommonEntityInfo
 CommonEntityInfo ()
std::optional< boolisSwiftPrivate () const
void setSwiftPrivate (std::optional< bool > Private)
std::optional< SwiftSafetyKindgetSwiftSafety () const
void setSwiftSafety (SwiftSafetyKind Safety)
CommonEntityInfooperator|= (const CommonEntityInfo &RHS)
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const

Friends

bool operator== (const ObjCPropertyInfo &LHS, const ObjCPropertyInfo &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.

Detailed Description

Describes API notes data for an Objective-C property.

Definition at line 399 of file Types.h.

Constructor & Destructor Documentation

◆ ObjCPropertyInfo()

clang::api_notes::ObjCPropertyInfo::ObjCPropertyInfo ( )
inline

Definition at line 406 of file Types.h.

References false.

Referenced by operator==, operator|=(), and operator|=().

Member Function Documentation

◆ dump()

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

Definition at line 72 of file APINotesTypes.cpp.

References clang::api_notes::VariableInfo::VariableInfo().

◆ getSwiftImportAsAccessors()

std::optional< bool > clang::api_notes::ObjCPropertyInfo::getSwiftImportAsAccessors ( ) const
inline

Definition at line 409 of file Types.h.

Referenced by operator==, operator|=(), and ProcessAPINotes().

◆ operator|=() [1/2]

ObjCPropertyInfo & clang::api_notes::ObjCPropertyInfo::operator|= ( const ContextInfo & RHS)
inline

◆ operator|=() [2/2]

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

◆ setSwiftImportAsAccessors()

void clang::api_notes::ObjCPropertyInfo::setSwiftImportAsAccessors ( std::optional< bool > Value)
inline

Definition at line 414 of file Types.h.

Referenced by operator|=().

◆ operator==

bool operator== ( const ObjCPropertyInfo & LHS,
const ObjCPropertyInfo & RHS )
friend

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