clang  14.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]
Collaboration diagram for clang::api_notes::CommonTypeInfo:
Collaboration graph
[legend]

Public Member Functions

 CommonTypeInfo ()
 
const llvm::Optional< std::string > & getSwiftBridge () const
 
void setSwiftBridge (const llvm::Optional< std::string > &SwiftType)
 
void setSwiftBridge (const llvm::Optional< llvm::StringRef > &SwiftType)
 
const llvm::Optional< std::string > & getNSErrorDomain () const
 
void setNSErrorDomain (const llvm::Optional< std::string > &Domain)
 
void setNSErrorDomain (const llvm::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 ()
 
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 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. 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 for types.

Definition at line 126 of file Types.h.

Constructor & Destructor Documentation

◆ CommonTypeInfo()

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

Definition at line 136 of file Types.h.

Member Function Documentation

◆ dump()

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

◆ getNSErrorDomain()

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

Definition at line 152 of file Types.h.

Referenced by operator|=().

◆ getSwiftBridge()

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

Definition at line 138 of file Types.h.

Referenced by operator|=().

◆ operator|=()

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

Definition at line 167 of file Types.h.

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

◆ setNSErrorDomain() [1/2]

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

Definition at line 160 of file Types.h.

References string().

◆ setNSErrorDomain() [2/2]

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

Definition at line 156 of file Types.h.

Referenced by operator|=().

◆ setSwiftBridge() [1/2]

void clang::api_notes::CommonTypeInfo::setSwiftBridge ( const llvm::Optional< llvm::StringRef > &  SwiftType)
inline

Definition at line 146 of file Types.h.

References string().

◆ setSwiftBridge() [2/2]

void clang::api_notes::CommonTypeInfo::setSwiftBridge ( const llvm::Optional< std::string > &  SwiftType)
inline

Definition at line 142 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 182 of file Types.h.


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