clang  14.0.0git
Public Member Functions | Friends | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for clang::api_notes::ObjCPropertyInfo:
Collaboration graph
[legend]

Public Member Functions

 ObjCPropertyInfo ()
 
llvm::Optional< boolgetSwiftImportAsAccessors () const
 
void setSwiftImportAsAccessors (llvm::Optional< bool > Value)
 
ObjCPropertyInfooperator|= (const ObjCContextInfo &RHS)
 Merge class-wide information into the given property. More...
 
ObjCPropertyInfooperator|= (const ObjCPropertyInfo &RHS)
 
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const
 
- Public Member Functions inherited from clang::api_notes::VariableInfo
 VariableInfo ()
 
llvm::Optional< NullabilityKindgetNullability () const
 
void setNullabilityAudited (NullabilityKind kind)
 
const std::stringgetType () 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 ()
 
llvm::Optional< boolisSwiftPrivate () const
 
void setSwiftPrivate (llvm::Optional< bool > Private)
 
CommonEntityInfooperator|= (const CommonEntityInfo &RHS)
 
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const
 

Friends

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

Additional Inherited Members

- 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...
 

Detailed Description

Describes API notes data for an Objective-C property.

Definition at line 355 of file Types.h.

Constructor & Destructor Documentation

◆ ObjCPropertyInfo()

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

Definition at line 360 of file Types.h.

Member Function Documentation

◆ dump()

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

Definition at line 57 of file APINotesTypes.cpp.

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

◆ getSwiftImportAsAccessors()

llvm::Optional<bool> clang::api_notes::ObjCPropertyInfo::getSwiftImportAsAccessors ( ) const
inline

Definition at line 364 of file Types.h.

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

◆ operator|=() [1/2]

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

◆ operator|=() [2/2]

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

Definition at line 388 of file Types.h.

References getSwiftImportAsAccessors(), and setSwiftImportAsAccessors().

◆ setSwiftImportAsAccessors()

void clang::api_notes::ObjCPropertyInfo::setSwiftImportAsAccessors ( llvm::Optional< bool Value)
inline

Definition at line 369 of file Types.h.

Referenced by operator|=().

Friends And Related Function Documentation

◆ operator==

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

Definition at line 400 of file Types.h.


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