10#include "llvm/Support/raw_ostream.h"
18 OS <<
"[UnavailableInSwift] ";
19 if (SwiftPrivateSpecified)
20 OS << (SwiftPrivate ?
"[SwiftPrivate] " :
"");
21 if (SwiftSafetyAudited) {
30 OS <<
"[Unspecified] ";
44 OS <<
"Swift Briged Type: " << *SwiftBridge <<
' ';
46 OS <<
"NSError Domain: " << *NSErrorDomain <<
' ';
53 OS <<
"DefaultNullability: " << *K <<
' ';
54 if (HasDesignatedInits)
55 OS <<
"[HasDesignatedInits] ";
56 if (SwiftImportAsNonGenericSpecified)
57 OS << (SwiftImportAsNonGeneric ?
"[SwiftImportAsNonGeneric] " :
"");
58 if (SwiftObjCMembersSpecified)
59 OS << (SwiftObjCMembers ?
"[SwiftObjCMembers] " :
"");
66 OS <<
"Audited Nullability: " << *K <<
' ';
68 OS <<
"C Type: " << Type <<
' ';
74 if (SwiftImportAsAccessorsSpecified)
75 OS << (SwiftImportAsAccessors ?
"[SwiftImportAsAccessors] " :
"");
83 OS <<
"[counted_by] ";
86 OS <<
"[counted_by_or_null] ";
92 OS <<
"[sized_by_or_null] ";
100 OS <<
"Level: " << Level <<
" ";
101 OS <<
"ExternalBounds: "
107 if (NoEscapeSpecified)
108 OS << (NoEscape ?
"[NoEscape] " :
"");
109 if (LifetimeboundSpecified)
110 OS << (Lifetimebound ?
"[Lifetimebound] " :
"");
111 OS <<
"RawRetainCountConvention: " << RawRetainCountConvention <<
' ';
148 OS << (IsFlagEnum ?
"[FlagEnum] " :
"");
150 OS <<
"Enum Extensibility: " <<
static_cast<long>(*EnumExtensibility)
152 if (SwiftCopyableSpecified)
153 OS << (SwiftCopyable ?
"[SwiftCopyable] " :
"[~SwiftCopyable]");
154 if (SwiftEscapableSpecified)
155 OS << (SwiftEscapable ?
"[SwiftEscapable] " :
"[~SwiftEscapable]");
162 OS <<
"Swift Type: " <<
static_cast<long>(*SwiftWrapper) <<
' ';
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
std::string ExternalBounds
std::optional< ParamInfo > This
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS)
unsigned UnavailableInSwift
Whether this entity is marked unavailable in Swift.
unsigned Unavailable
Whether this entity is marked unavailable.
std::string SwiftName
Swift name of this entity.
std::string UnavailableMsg
Message to use when this entity is unavailable.
std::optional< SwiftSafetyKind > getSwiftSafety() const
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS)
NullabilityKindOrNone getDefaultNullability() const
Determine the default nullability for properties and methods of this class.
std::string SwiftReturnOwnership
Ownership convention for return value.
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
unsigned RawRetainCountConvention
A biased RetainCountConventionKind, where 0 means "unspecified".
std::vector< ParamInfo > Params
The function parameters.
std::string ResultType
The result type of this function, as a C type.
unsigned NullabilityAudited
Whether the signature has been audited with respect to nullability.
unsigned DesignatedInit
Whether this is a designated initializer of its class.
std::optional< ParamInfo > Self
unsigned RequiredInit
Whether this is a required initializer.
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS)
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
std::optional< BoundsSafetyInfo > BoundsSafety
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
std::optional< EnumExtensibilityKind > EnumExtensibility
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS)
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
std::optional< SwiftNewTypeKind > SwiftWrapper
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
NullabilityKindOrNone getNullability() const
The JSON file list parser is used to communicate input to InstallAPI.
OptionalUnsigned< NullabilityKind > NullabilityKindOrNone