clang 22.0.0git
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:
[legend]

Public Member Functions

 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

Public Attributes

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.

Friends

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

Detailed Description

Describes API notes data for any entity.

This is used as the base of all API notes.

Definition at line 54 of file Types.h.

Constructor & Destructor Documentation

◆ CommonEntityInfo()

Member Function Documentation

◆ dump()

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

◆ getSwiftSafety()

std::optional< SwiftSafetyKind > clang::api_notes::CommonEntityInfo::getSwiftSafety ( ) const
inline

Definition at line 100 of file Types.h.

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

◆ isSwiftPrivate()

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

Definition at line 90 of file Types.h.

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

◆ 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 95 of file Types.h.

References clang::Private.

Referenced by operator|=().

◆ setSwiftSafety()

void clang::api_notes::CommonEntityInfo::setSwiftSafety ( SwiftSafetyKind Safety)
inline

Definition at line 106 of file Types.h.

Referenced by operator|=().

◆ operator==

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

Definition at line 142 of file Types.h.

References CommonEntityInfo(), SwiftName, Unavailable, UnavailableInSwift, and UnavailableMsg.

Member Data Documentation

◆ SwiftName

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

Swift name of this entity.

Definition at line 84 of file Types.h.

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

◆ Unavailable

unsigned clang::api_notes::CommonEntityInfo::Unavailable

Whether this entity is marked unavailable.

Definition at line 61 of file Types.h.

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

◆ UnavailableInSwift

unsigned clang::api_notes::CommonEntityInfo::UnavailableInSwift

Whether this entity is marked unavailable in Swift.

Definition at line 65 of file Types.h.

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

◆ UnavailableMsg

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

Message to use when this entity is unavailable.

Definition at line 57 of file Types.h.

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


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