From 30bd07cb366d153bd692c7f4572d0f56e36573bd Mon Sep 17 00:00:00 2001 From: Kuba Mracek Date: Sat, 27 May 2023 21:20:47 -0700 Subject: [PATCH] Move _used+_section from DECL_MODIFIER_KINDS to DECL_ATTR_KINDS in AttributeKinds.py --- utils/gyb_syntax_support/AttributeKinds.py | 31 +++++++++++----------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/utils/gyb_syntax_support/AttributeKinds.py b/utils/gyb_syntax_support/AttributeKinds.py index 13f6001dc23ea..664d2ba1e1a42 100644 --- a/utils/gyb_syntax_support/AttributeKinds.py +++ b/utils/gyb_syntax_support/AttributeKinds.py @@ -717,7 +717,22 @@ def __init__(self, name, swift_name=None): SimpleDeclAttribute('runtimeMetadata', 'RuntimeMetadata', OnStruct, OnClass, OnEnum, ABIBreakingToAdd, ABIBreakingToRemove, APIBreakingToAdd, APIBreakingToRemove, # noqa: E501 - code=139) + code=139), + + SimpleDeclAttribute('_used', 'Used', + OnAbstractFunction, OnVar, + UserInaccessible, + ABIBreakingToAdd, ABIBreakingToRemove, + APIBreakingToAdd, APIBreakingToRemove, + code=143), + + DeclAttribute('_section', 'Section', + OnAbstractFunction, OnVar, + UserInaccessible, + ABIBreakingToAdd, ABIBreakingToRemove, + APIBreakingToAdd, APIBreakingToRemove, + code=144), + ] # Schema for declaration modifiers: @@ -923,20 +938,6 @@ def __init__(self, name, swift_name=None): code=142), DeclAttributeAlias('freestanding', 'MacroRole'), - SimpleDeclAttribute('_used', 'Used', - OnAbstractFunction, OnVar, - UserInaccessible, - ABIBreakingToAdd, ABIBreakingToRemove, - APIBreakingToAdd, APIBreakingToRemove, - code=143), - - DeclAttribute('_section', 'Section', - OnAbstractFunction, OnVar, - UserInaccessible, - ABIBreakingToAdd, ABIBreakingToRemove, - APIBreakingToAdd, APIBreakingToRemove, - code=144), - ] DEPRECATED_MODIFIER_KINDS = [