clang 22.0.0git
clang::api_notes::TagInfo Class Reference

Describes API notes data for a tag. More...

#include "clang/APINotes/Types.h"

Inheritance diagram for clang::api_notes::TagInfo:
[legend]

Public Member Functions

 TagInfo ()
std::optional< boolisFlagEnum () const
void setFlagEnum (std::optional< bool > Value)
std::optional< boolisSwiftCopyable () const
void setSwiftCopyable (std::optional< bool > Value)
std::optional< boolisSwiftEscapable () const
void setSwiftEscapable (std::optional< bool > Value)
TagInfooperator|= (const TagInfo &RHS)
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS)
Public Member Functions inherited from clang::api_notes::CommonTypeInfo
 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)
std::optional< std::string > getSwiftConformance () const
void setSwiftConformance (std::optional< std::string > conformance)
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)
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::optional< std::string > SwiftImportAs
std::optional< std::string > SwiftRetainOp
std::optional< std::string > SwiftReleaseOp
std::optional< std::string > SwiftDestroyOp
std::optional< std::string > SwiftDefaultOwnership
std::optional< EnumExtensibilityKindEnumExtensibility
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.

Friends

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

Detailed Description

Describes API notes data for a tag.

Definition at line 758 of file Types.h.

Constructor & Destructor Documentation

◆ TagInfo()

clang::api_notes::TagInfo::TagInfo ( )
inline

Definition at line 783 of file Types.h.

References false.

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

Member Function Documentation

◆ dump()

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

◆ isFlagEnum()

std::optional< bool > clang::api_notes::TagInfo::isFlagEnum ( ) const
inline

Definition at line 788 of file Types.h.

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

◆ isSwiftCopyable()

std::optional< bool > clang::api_notes::TagInfo::isSwiftCopyable ( ) const
inline

Definition at line 798 of file Types.h.

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

◆ isSwiftEscapable()

std::optional< bool > clang::api_notes::TagInfo::isSwiftEscapable ( ) const
inline

Definition at line 807 of file Types.h.

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

◆ operator|=()

◆ setFlagEnum()

void clang::api_notes::TagInfo::setFlagEnum ( std::optional< bool > Value)
inline

Definition at line 793 of file Types.h.

Referenced by operator|=().

◆ setSwiftCopyable()

void clang::api_notes::TagInfo::setSwiftCopyable ( std::optional< bool > Value)
inline

Definition at line 802 of file Types.h.

Referenced by operator|=().

◆ setSwiftEscapable()

void clang::api_notes::TagInfo::setSwiftEscapable ( std::optional< bool > Value)
inline

Definition at line 812 of file Types.h.

Referenced by operator|=().

◆ operator==

Member Data Documentation

◆ EnumExtensibility

std::optional<EnumExtensibilityKind> clang::api_notes::TagInfo::EnumExtensibility

Definition at line 781 of file Types.h.

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

◆ SwiftDefaultOwnership

std::optional<std::string> clang::api_notes::TagInfo::SwiftDefaultOwnership

Definition at line 779 of file Types.h.

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

◆ SwiftDestroyOp

std::optional<std::string> clang::api_notes::TagInfo::SwiftDestroyOp

Definition at line 778 of file Types.h.

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

◆ SwiftImportAs

std::optional<std::string> clang::api_notes::TagInfo::SwiftImportAs

Definition at line 775 of file Types.h.

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

◆ SwiftReleaseOp

std::optional<std::string> clang::api_notes::TagInfo::SwiftReleaseOp

Definition at line 777 of file Types.h.

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

◆ SwiftRetainOp

std::optional<std::string> clang::api_notes::TagInfo::SwiftRetainOp

Definition at line 776 of file Types.h.

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


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