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

Describes API notes data for any entity. More...

#include "clang/APINotes/Types.h"

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

Public Member Functions

 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
 

Public Attributes

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 CommonEntityInfo &, const CommonEntityInfo &)
 

Detailed Description

Describes API notes data for any entity.

This is used as the base of all API notes.

Definition at line 52 of file Types.h.

Constructor & Destructor Documentation

◆ CommonEntityInfo()

clang::api_notes::CommonEntityInfo::CommonEntityInfo ( )
inline

Definition at line 78 of file Types.h.

Member Function Documentation

◆ dump()

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

◆ isSwiftPrivate()

std::optional<bool> clang::api_notes::CommonEntityInfo::isSwiftPrivate ( ) const
inline

Definition at line 82 of file Types.h.

Referenced by operator|=().

◆ operator|=()

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

◆ setSwiftPrivate()

void clang::api_notes::CommonEntityInfo::setSwiftPrivate ( std::optional< bool Private)
inline

Definition at line 87 of file Types.h.

References clang::Private.

Referenced by operator|=().

Friends And Related Function Documentation

◆ operator==

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

Definition at line 120 of file Types.h.

Member Data Documentation

◆ SwiftName

std::string clang::api_notes::CommonEntityInfo::SwiftName

Swift name of this entity.

Definition at line 76 of file Types.h.

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

◆ Unavailable

unsigned clang::api_notes::CommonEntityInfo::Unavailable

Whether this entity is marked unavailable.

Definition at line 59 of file Types.h.

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

◆ UnavailableInSwift

unsigned clang::api_notes::CommonEntityInfo::UnavailableInSwift

Whether this entity is marked unavailable in Swift.

Definition at line 63 of file Types.h.

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

◆ UnavailableMsg

std::string clang::api_notes::CommonEntityInfo::UnavailableMsg

Message to use when this entity is unavailable.

Definition at line 55 of file Types.h.

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


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