clang 20.0.0git
Public Member Functions | Friends | List of all members
clang::api_notes::CommonTypeInfo Class Reference

Describes API notes for types. More...

#include "clang/APINotes/Types.h"

Inheritance diagram for clang::api_notes::CommonTypeInfo:
Inheritance graph
[legend]

Public Member Functions

 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)
 
CommonTypeInfooperator|= (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< boolisSwiftPrivate () const
 
void setSwiftPrivate (std::optional< bool > Private)
 
CommonEntityInfooperator|= (const CommonEntityInfo &RHS)
 
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const
 

Friends

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

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

Definition at line 135 of file Types.h.

Constructor & Destructor Documentation

◆ CommonTypeInfo()

clang::api_notes::CommonTypeInfo::CommonTypeInfo ( )
inline

Definition at line 145 of file Types.h.

Member Function Documentation

◆ dump()

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

◆ getNSErrorDomain()

const std::optional< std::string > & clang::api_notes::CommonTypeInfo::getNSErrorDomain ( ) const
inline

Definition at line 155 of file Types.h.

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

◆ getSwiftBridge()

const std::optional< std::string > & clang::api_notes::CommonTypeInfo::getSwiftBridge ( ) const
inline

Definition at line 147 of file Types.h.

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

◆ operator|=()

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

Definition at line 170 of file Types.h.

References getNSErrorDomain(), getSwiftBridge(), setNSErrorDomain(), and setSwiftBridge().

◆ setNSErrorDomain() [1/2]

void clang::api_notes::CommonTypeInfo::setNSErrorDomain ( const std::optional< llvm::StringRef > &  Domain)
inline

Definition at line 163 of file Types.h.

References clang::Domain.

◆ setNSErrorDomain() [2/2]

void clang::api_notes::CommonTypeInfo::setNSErrorDomain ( const std::optional< std::string > &  Domain)
inline

Definition at line 159 of file Types.h.

References clang::Domain.

Referenced by operator|=().

◆ setSwiftBridge()

void clang::api_notes::CommonTypeInfo::setSwiftBridge ( std::optional< std::string >  SwiftType)
inline

Definition at line 151 of file Types.h.

Referenced by operator|=().

Friends And Related Function Documentation

◆ operator==

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

Definition at line 185 of file Types.h.


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