Skip to content

Commit 30bd07c

Browse files
committed
Move _used+_section from DECL_MODIFIER_KINDS to DECL_ATTR_KINDS in AttributeKinds.py
1 parent 79a2ff5 commit 30bd07c

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

utils/gyb_syntax_support/AttributeKinds.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,22 @@ def __init__(self, name, swift_name=None):
717717
SimpleDeclAttribute('runtimeMetadata', 'RuntimeMetadata',
718718
OnStruct, OnClass, OnEnum,
719719
ABIBreakingToAdd, ABIBreakingToRemove, APIBreakingToAdd, APIBreakingToRemove, # noqa: E501
720-
code=139)
720+
code=139),
721+
722+
SimpleDeclAttribute('_used', 'Used',
723+
OnAbstractFunction, OnVar,
724+
UserInaccessible,
725+
ABIBreakingToAdd, ABIBreakingToRemove,
726+
APIBreakingToAdd, APIBreakingToRemove,
727+
code=143),
728+
729+
DeclAttribute('_section', 'Section',
730+
OnAbstractFunction, OnVar,
731+
UserInaccessible,
732+
ABIBreakingToAdd, ABIBreakingToRemove,
733+
APIBreakingToAdd, APIBreakingToRemove,
734+
code=144),
735+
721736
]
722737

723738
# Schema for declaration modifiers:
@@ -923,20 +938,6 @@ def __init__(self, name, swift_name=None):
923938
code=142),
924939
DeclAttributeAlias('freestanding', 'MacroRole'),
925940

926-
SimpleDeclAttribute('_used', 'Used',
927-
OnAbstractFunction, OnVar,
928-
UserInaccessible,
929-
ABIBreakingToAdd, ABIBreakingToRemove,
930-
APIBreakingToAdd, APIBreakingToRemove,
931-
code=143),
932-
933-
DeclAttribute('_section', 'Section',
934-
OnAbstractFunction, OnVar,
935-
UserInaccessible,
936-
ABIBreakingToAdd, ABIBreakingToRemove,
937-
APIBreakingToAdd, APIBreakingToRemove,
938-
code=144),
939-
940941
]
941942

942943
DEPRECATED_MODIFIER_KINDS = [

0 commit comments

Comments
 (0)