mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Macros] Remove the @declaration attribute.
We have @freestanding working appropriately now.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user