10#include "llvm/Support/raw_ostream.h"
19 OS <<
"[UnavailableInSwift] ";
20 if (SwiftPrivateSpecified)
21 OS << (SwiftPrivate ?
"[SwiftPrivate] " :
"");
22 if (SwiftSafetyAudited) {
31 OS <<
"[Unspecified] ";
45 OS <<
"Swift Briged Type: " << *SwiftBridge <<
' ';
47 OS <<
"NSError Domain: " << *NSErrorDomain <<
' ';
54 OS <<
"DefaultNullability: " << *K <<
' ';
55 if (HasDesignatedInits)
56 OS <<
"[HasDesignatedInits] ";
57 if (SwiftImportAsNonGenericSpecified)
58 OS << (SwiftImportAsNonGeneric ?
"[SwiftImportAsNonGeneric] " :
"");
59 if (SwiftObjCMembersSpecified)
60 OS << (SwiftObjCMembers ?
"[SwiftObjCMembers] " :
"");
67 OS <<
"Audited Nullability: " << *K <<
' ';
69 OS <<
"C Type: " << Type <<
' ';
75 if (SwiftImportAsAccessorsSpecified)
76 OS << (SwiftImportAsAccessors ?
"[SwiftImportAsAccessors] " :
"");
84 OS <<
"[counted_by] ";
87 OS <<
"[counted_by_or_null] ";
93 OS <<
"[sized_by_or_null] ";
101 OS <<
"Level: " << Level <<
" ";
102 OS <<
"ExternalBounds: "
108 if (NoEscapeSpecified)
109 OS << (NoEscape ?
"[NoEscape] " :
"");
110 if (LifetimeboundSpecified)
111 OS << (Lifetimebound ?
"[Lifetimebound] " :
"");
112 OS <<
"RawRetainCountConvention: " << RawRetainCountConvention <<
' ';
150 OS << (IsFlagEnum ?
"[FlagEnum] " :
"");
152 OS <<
"Enum Extensibility: " <<
static_cast<long>(*EnumExtensibility)
154 if (SwiftCopyableSpecified)
155 OS << (SwiftCopyable ?
"[SwiftCopyable] " :
"[~SwiftCopyable]");
156 if (SwiftEscapableSpecified)
157 OS << (SwiftEscapable ?
"[SwiftEscapable] " :
"[~SwiftEscapable]");
164 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 UnsafeBufferUsage
Whether the function has the [[clang::unsafe_buffer_usage]] attribute.
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