[Macros] Remove the @declaration attribute.

We have @freestanding working appropriately now.
This commit is contained in:
Doug Gregor
2023-01-25 16:39:44 -08:00
parent c188ab4f91
commit af7ce9e945
19 changed files with 26 additions and 224 deletions

View File

@@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
/// Don't worry about adhering to the 80-column limit for this line.
const uint16_t SWIFTMODULE_VERSION_MINOR = 736; // add package access modifier
const uint16_t SWIFTMODULE_VERSION_MINOR = 737; // macro role attribute
/// A standard hash seed used for all string hashes in a serialized module.
///
@@ -610,7 +610,7 @@ enum class GenericEnvironmentKind : uint8_t {
// the module version.
enum class MacroRole : uint8_t {
Expression,
FreestandingDeclaration,
Declaration,
Accessor,
MemberAttribute,
SynthesizedMembers,
@@ -2217,15 +2217,6 @@ namespace decls_block {
AccessLevelField // visibility
>;
using DeclarationDeclAttrLayout = BCRecordLayout<
Declaration_DECL_ATTR,
BCFixed<1>, // implicit flag
MacroRoleField, // macro context
BCVBR<5>, // number of peer names
BCVBR<5>, // number of member names
BCArray<IdentifierIDField> // introduced decl name kind and identifier pairs
>;
using MacroRoleDeclAttrLayout = BCRecordLayout<
MacroRole_DECL_ATTR,
BCFixed<1>, // implicit flag