Skip to content

Commit e3d940e

Browse files
authored
Move _used+_section from DECL_MODIFIER_KINDS to DECL_ATTR_KINDS in AttributeKinds.py (#66194)
1 parent 2e484a1 commit e3d940e

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
@@ -725,7 +725,22 @@ def __init__(self, name, swift_name=None):
725725
SimpleDeclAttribute('runtimeMetadata', 'RuntimeMetadata',
726726
OnStruct, OnClass, OnEnum,
727727
ABIBreakingToAdd, ABIBreakingToRemove, APIBreakingToAdd, APIBreakingToRemove, # noqa: E501
728-
code=139)
728+
code=139),
729+
730+
SimpleDeclAttribute('_used', 'Used',
731+
OnAbstractFunction, OnVar,
732+
UserInaccessible,
733+
ABIBreakingToAdd, ABIBreakingToRemove,
734+
APIBreakingToAdd, APIBreakingToRemove,
735+
code=143),
736+
737+
DeclAttribute('_section', 'Section',
738+
OnAbstractFunction, OnVar,
739+
UserInaccessible,
740+
ABIBreakingToAdd, ABIBreakingToRemove,
741+
APIBreakingToAdd, APIBreakingToRemove,
742+
code=144),
743+
729744
]
730745

731746
# Schema for declaration modifiers:
@@ -931,20 +946,6 @@ def __init__(self, name, swift_name=None):
931946
code=142),
932947
DeclAttributeAlias('freestanding', 'MacroRole'),
933948

934-
SimpleDeclAttribute('_used', 'Used',
935-
OnAbstractFunction, OnVar,
936-
UserInaccessible,
937-
ABIBreakingToAdd, ABIBreakingToRemove,
938-
APIBreakingToAdd, APIBreakingToRemove,
939-
code=143),
940-
941-
DeclAttribute('_section', 'Section',
942-
OnAbstractFunction, OnVar,
943-
UserInaccessible,
944-
ABIBreakingToAdd, ABIBreakingToRemove,
945-
APIBreakingToAdd, APIBreakingToRemove,
946-
code=144),
947-
948949
]
949950

950951
DEPRECATED_MODIFIER_KINDS = [

0 commit comments

Comments
 (0)