10#include "llvm/Support/raw_ostream.h"
18 OS <<
"[UnavailableInSwift] ";
19 if (SwiftPrivateSpecified)
20 OS << (SwiftPrivate ?
"[SwiftPrivate] " :
"");
29 OS <<
"Swift Briged Type: " << *SwiftBridge <<
' ';
31 OS <<
"NSError Domain: " << *NSErrorDomain <<
' ';
37 if (HasDefaultNullability)
38 OS <<
"DefaultNullability: " << DefaultNullability <<
' ';
39 if (HasDesignatedInits)
40 OS <<
"[HasDesignatedInits] ";
41 if (SwiftImportAsNonGenericSpecified)
42 OS << (SwiftImportAsNonGeneric ?
"[SwiftImportAsNonGeneric] " :
"");
43 if (SwiftObjCMembersSpecified)
44 OS << (SwiftObjCMembers ?
"[SwiftObjCMembers] " :
"");
50 if (NullabilityAudited)
51 OS <<
"Audited Nullability: " << Nullable <<
' ';
53 OS <<
"C Type: " <<
Type <<
' ';
59 if (SwiftImportAsAccessorsSpecified)
60 OS << (SwiftImportAsAccessors ?
"[SwiftImportAsAccessors] " :
"");
66 if (NoEscapeSpecified)
67 OS << (NoEscape ?
"[NoEscape] " :
"");
68 if (LifetimeboundSpecified)
69 OS << (Lifetimebound ?
"[Lifetimebound] " :
"");
70 OS <<
"RawRetainCountConvention: " << RawRetainCountConvention <<
' ';
105 OS << (IsFlagEnum ?
"[FlagEnum] " :
"");
107 OS <<
"Enum Extensibility: " <<
static_cast<long>(*EnumExtensibility)
109 if (SwiftCopyableSpecified)
110 OS << (SwiftCopyable ?
"[SwiftCopyable] " :
"[~SwiftCopyable]");
111 if (SwiftEscapableSpecified)
112 OS << (SwiftEscapable ?
"[SwiftEscapable] " :
"[~SwiftEscapable]");
119 OS <<
"Swift Type: " <<
static_cast<long>(*SwiftWrapper) <<
' ';
The base class of the type hierarchy.
std::optional< ParamInfo > This
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS)
Describes API notes data for any entity.
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.
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
Describes API notes for types.
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS)
API notes for a function or method.
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
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
API notes for a variable/property.
LLVM_DUMP_METHOD void dump(llvm::raw_ostream &OS) const
The JSON file list parser is used to communicate input to InstallAPI.