clang 20.0.0git
Public Member Functions | Public Attributes | Friends | List of all members
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:
Inheritance graph
[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)
 
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)
 
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
 

Public Attributes

std::optional< std::string > SwiftImportAs
 
std::optional< std::string > SwiftRetainOp
 
std::optional< std::string > SwiftReleaseOp
 
std::optional< std::string > SwiftConformance
 The Swift protocol that this type should be automatically conformed to.
 
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 &, const TagInfo &)
 

Detailed Description

Describes API notes data for a tag.

Definition at line 678 of file Types.h.

Constructor & Destructor Documentation

◆ TagInfo()

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

Definition at line 699 of file Types.h.

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

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

◆ isSwiftCopyable()

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

Definition at line 713 of file Types.h.

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

◆ operator|=()

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

◆ setFlagEnum()

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

Definition at line 708 of file Types.h.

Referenced by operator|=().

◆ setSwiftCopyable()

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

Definition at line 717 of file Types.h.

Referenced by operator|=().

Friends And Related Function Documentation

◆ operator==

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

Definition at line 752 of file Types.h.

Member Data Documentation

◆ EnumExtensibility

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

Definition at line 697 of file Types.h.

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

◆ SwiftConformance

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

The Swift protocol that this type should be automatically conformed to.

Definition at line 695 of file Types.h.

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

◆ SwiftImportAs

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

Definition at line 690 of file Types.h.

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

◆ SwiftReleaseOp

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

Definition at line 692 of file Types.h.

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

◆ SwiftRetainOp

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

Definition at line 691 of file Types.h.

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


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