clang 22.0.0git
|
Describes API notes data for any entity. More...
#include "clang/APINotes/Types.h"
Public Member Functions | |
CommonEntityInfo () | |
std::optional< bool > | isSwiftPrivate () const |
void | setSwiftPrivate (std::optional< bool > Private) |
std::optional< SwiftSafetyKind > | getSwiftSafety () const |
void | setSwiftSafety (SwiftSafetyKind Safety) |
CommonEntityInfo & | operator|= (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) |
Describes API notes data for any entity.
This is used as the base of all API notes.
|
inline |
Definition at line 86 of file Types.h.
References CommonEntityInfo(), Unavailable, and UnavailableInSwift.
Referenced by CommonEntityInfo(), clang::api_notes::CommonTypeInfo::dump(), clang::api_notes::FunctionInfo::dump(), clang::api_notes::VariableInfo::dump(), operator==, clang::api_notes::CommonTypeInfo::operator==, clang::api_notes::FunctionInfo::operator==, clang::api_notes::VariableInfo::operator==, operator|=(), clang::api_notes::CommonTypeInfo::operator|=(), and clang::api_notes::VariableInfo::operator|=().
LLVM_DUMP_METHOD void clang::api_notes::CommonEntityInfo::dump | ( | llvm::raw_ostream & | OS | ) | const |
Definition at line 14 of file APINotesTypes.cpp.
References getSwiftSafety(), clang::api_notes::None, clang::api_notes::Safe, SwiftName, Unavailable, UnavailableInSwift, UnavailableMsg, clang::api_notes::Unsafe, and clang::api_notes::Unspecified.
|
inline |
Definition at line 100 of file Types.h.
Referenced by dump(), operator|=(), and ProcessAPINotes().
|
inline |
Definition at line 90 of file Types.h.
Referenced by operator|=(), and ProcessAPINotes().
|
inline |
Definition at line 113 of file Types.h.
References CommonEntityInfo(), getSwiftSafety(), isSwiftPrivate(), setSwiftPrivate(), setSwiftSafety(), SwiftName, Unavailable, UnavailableInSwift, and UnavailableMsg.
|
inline |
|
inline |
Definition at line 106 of file Types.h.
Referenced by operator|=().
|
friend |
Definition at line 142 of file Types.h.
References CommonEntityInfo(), SwiftName, Unavailable, UnavailableInSwift, and UnavailableMsg.
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|=().
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().
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().
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().