Skip to content

Commit

Permalink
Update DemangleNodes.def for Swift 5.9 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored Nov 27, 2023
1 parent a606a4e commit b7095d8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ NODE(AssociatedType)
NODE(AssociatedTypeRef)
NODE(AssociatedTypeMetadataAccessor)
NODE(DefaultAssociatedTypeMetadataAccessor)
NODE(AccessorAttachedMacroExpansion)
NODE(AssociatedTypeWitnessTableAccessor)
NODE(BaseWitnessTableAccessor)
NODE(AutoClosureType)
Expand All @@ -48,6 +49,7 @@ NODE(ClangType)
CONTEXT_NODE(Class)
NODE(ClassMetadataBaseOffset)
NODE(ConcreteProtocolConformance)
NODE(ConformanceAttachedMacroExpansion)
CONTEXT_NODE(Constructor)
NODE(CoroutineContinuationPrototype)
CONTEXT_NODE(Deallocator)
Expand All @@ -61,6 +63,7 @@ NODE(DependentGenericParamType)
NODE(DependentGenericSameTypeRequirement)
NODE(DependentGenericSameShapeRequirement)
NODE(DependentGenericLayoutRequirement)
NODE(DependentGenericParamPackMarker)
NODE(DependentGenericSignature)
NODE(DependentGenericType)
NODE(DependentMemberType)
Expand Down Expand Up @@ -90,7 +93,9 @@ NODE(DifferentiableFunctionType)
NODE(ExistentialMetatype)
CONTEXT_NODE(ExplicitClosure)
CONTEXT_NODE(Extension)
NODE(ExtensionAttachedMacroExpansion)
NODE(FieldOffset)
NODE(FreestandingMacroExpansion)
NODE(FullTypeMetadata)
CONTEXT_NODE(Function)
NODE(FunctionSignatureSpecialization)
Expand Down Expand Up @@ -139,6 +144,7 @@ NODE(ImplErrorResult)
NODE(InOut)
NODE(InfixOperator)
CONTEXT_NODE(Initializer)
CONTEXT_NODE(InitAccessor)
NODE(Isolated)
NODE(KeyPathGetterThunkHelper)
NODE(KeyPathSetterThunkHelper)
Expand All @@ -148,7 +154,10 @@ NODE(LazyProtocolWitnessTableAccessor)
NODE(LazyProtocolWitnessTableCacheVariable)
NODE(LocalDeclName)
NODE(Macro)
NODE(MacroExpansionUniqueName)
CONTEXT_NODE(MaterializeForSet)
NODE(MemberAttachedMacroExpansion)
NODE(MemberAttributeAttachedMacroExpansion)
NODE(MergedFunction)
NODE(Metatype)
NODE(MetatypeRepresentation)
Expand Down Expand Up @@ -177,6 +186,7 @@ CONTEXT_NODE(OwningAddressor)
CONTEXT_NODE(OwningMutableAddressor)
NODE(PartialApplyForwarder)
NODE(PartialApplyObjCForwarder)
NODE(PeerAttachedMacroExpansion)
NODE(PostfixOperator)
NODE(PrefixOperator)
NODE(PrivateDeclName)
Expand Down Expand Up @@ -230,7 +240,11 @@ NODE(Tuple)
NODE(TupleElement)
NODE(TupleElementName)
NODE(Pack)
NODE(SILPackDirect)
NODE(SILPackIndirect)
NODE(PackExpansion)
NODE(PackElement)
NODE(PackElementLevel)
NODE(Type)
CONTEXT_NODE(TypeSymbolicReference)
CONTEXT_NODE(TypeAlias)
Expand Down Expand Up @@ -350,6 +364,8 @@ NODE(SymbolicExtendedExistentialType)
// Added in Swift 5.8
NODE(MetatypeParamsRemoved)
NODE(HasSymbolQuery)
NODE(RuntimeDiscoverableAttributeRecord)
CONTEXT_NODE(RuntimeAttributeGenerator)
NODE(OpaqueReturnTypeIndex)
NODE(OpaqueReturnTypeParent)

Expand Down
20 changes: 18 additions & 2 deletions Sources/CSwiftDemangle/include/CSwiftDemangleNodeKind.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 414 "<built-in>" 3
# 433 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2
Expand All @@ -19,6 +19,7 @@ demangle_node_kind_AssociatedType,
demangle_node_kind_AssociatedTypeRef,
demangle_node_kind_AssociatedTypeMetadataAccessor,
demangle_node_kind_DefaultAssociatedTypeMetadataAccessor,
demangle_node_kind_AccessorAttachedMacroExpansion,
demangle_node_kind_AssociatedTypeWitnessTableAccessor,
demangle_node_kind_BaseWitnessTableAccessor,
demangle_node_kind_AutoClosureType,
Expand All @@ -35,6 +36,7 @@ demangle_node_kind_ClangType,
demangle_node_kind_Class,
demangle_node_kind_ClassMetadataBaseOffset,
demangle_node_kind_ConcreteProtocolConformance,
demangle_node_kind_ConformanceAttachedMacroExpansion,
demangle_node_kind_Constructor,
demangle_node_kind_CoroutineContinuationPrototype,
demangle_node_kind_Deallocator,
Expand All @@ -48,6 +50,7 @@ demangle_node_kind_DependentGenericParamType,
demangle_node_kind_DependentGenericSameTypeRequirement,
demangle_node_kind_DependentGenericSameShapeRequirement,
demangle_node_kind_DependentGenericLayoutRequirement,
demangle_node_kind_DependentGenericParamPackMarker,
demangle_node_kind_DependentGenericSignature,
demangle_node_kind_DependentGenericType,
demangle_node_kind_DependentMemberType,
Expand Down Expand Up @@ -77,7 +80,9 @@ demangle_node_kind_DifferentiableFunctionType,
demangle_node_kind_ExistentialMetatype,
demangle_node_kind_ExplicitClosure,
demangle_node_kind_Extension,
demangle_node_kind_ExtensionAttachedMacroExpansion,
demangle_node_kind_FieldOffset,
demangle_node_kind_FreestandingMacroExpansion,
demangle_node_kind_FullTypeMetadata,
demangle_node_kind_Function,
demangle_node_kind_FunctionSignatureSpecialization,
Expand Down Expand Up @@ -126,6 +131,7 @@ demangle_node_kind_ImplErrorResult,
demangle_node_kind_InOut,
demangle_node_kind_InfixOperator,
demangle_node_kind_Initializer,
demangle_node_kind_InitAccessor,
demangle_node_kind_Isolated,
demangle_node_kind_KeyPathGetterThunkHelper,
demangle_node_kind_KeyPathSetterThunkHelper,
Expand All @@ -135,7 +141,10 @@ demangle_node_kind_LazyProtocolWitnessTableAccessor,
demangle_node_kind_LazyProtocolWitnessTableCacheVariable,
demangle_node_kind_LocalDeclName,
demangle_node_kind_Macro,
demangle_node_kind_MacroExpansionUniqueName,
demangle_node_kind_MaterializeForSet,
demangle_node_kind_MemberAttachedMacroExpansion,
demangle_node_kind_MemberAttributeAttachedMacroExpansion,
demangle_node_kind_MergedFunction,
demangle_node_kind_Metatype,
demangle_node_kind_MetatypeRepresentation,
Expand Down Expand Up @@ -164,6 +173,7 @@ demangle_node_kind_OwningAddressor,
demangle_node_kind_OwningMutableAddressor,
demangle_node_kind_PartialApplyForwarder,
demangle_node_kind_PartialApplyObjCForwarder,
demangle_node_kind_PeerAttachedMacroExpansion,
demangle_node_kind_PostfixOperator,
demangle_node_kind_PrefixOperator,
demangle_node_kind_PrivateDeclName,
Expand Down Expand Up @@ -217,7 +227,11 @@ demangle_node_kind_Tuple,
demangle_node_kind_TupleElement,
demangle_node_kind_TupleElementName,
demangle_node_kind_Pack,
demangle_node_kind_SILPackDirect,
demangle_node_kind_SILPackIndirect,
demangle_node_kind_PackExpansion,
demangle_node_kind_PackElement,
demangle_node_kind_PackElementLevel,
demangle_node_kind_Type,
demangle_node_kind_TypeSymbolicReference,
demangle_node_kind_TypeAlias,
Expand All @@ -239,7 +253,7 @@ demangle_node_kind_UnknownIndex,
demangle_node_kind_Weak,
demangle_node_kind_Unowned,
demangle_node_kind_Unmanaged,
# 251 "Sources/CSwiftDemangle/PrivateHeaders/include/swift/Demangling/DemangleNodes.def" 2
# 265 "Sources/CSwiftDemangle/PrivateHeaders/include/swift/Demangling/DemangleNodes.def" 2
demangle_node_kind_UnsafeAddressor,
demangle_node_kind_UnsafeMutableAddressor,
demangle_node_kind_ValueWitness,
Expand Down Expand Up @@ -342,6 +356,8 @@ demangle_node_kind_SymbolicExtendedExistentialType,

demangle_node_kind_MetatypeParamsRemoved,
demangle_node_kind_HasSymbolQuery,
demangle_node_kind_RuntimeDiscoverableAttributeRecord,
demangle_node_kind_RuntimeAttributeGenerator,
demangle_node_kind_OpaqueReturnTypeIndex,
demangle_node_kind_OpaqueReturnTypeParent,
# 4 "<stdin>" 2
Expand Down

0 comments on commit b7095d8

Please sign in to comment.