[NFC] Rename 'Ownership' to 'ReferenceOwnership'.

There's really two forms of ownership: references and values. Renaming
to make way for better distinguishing of the two.
This commit is contained in:
Huon Wilson
2018-02-26 15:05:20 -08:00
parent 11a6aae41a
commit b94c5364f5
26 changed files with 238 additions and 196 deletions

View File

@@ -311,13 +311,13 @@ using AssociativityField = BCFixed<2>;
// These IDs must \em not be renumbered or reordered without incrementing
// VERSION_MAJOR.
enum Ownership : uint8_t {
enum ReferenceOwnership : uint8_t {
Strong = 0,
Weak,
Unowned,
Unmanaged,
};
using OwnershipField = BCFixed<2>;
using ReferenceOwnershipField = BCFixed<2>;
// These IDs must \em not be renumbered or reordered without incrementing
// VERSION_MAJOR.
@@ -800,8 +800,8 @@ namespace decls_block {
using ReferenceStorageTypeLayout = BCRecordLayout<
REFERENCE_STORAGE_TYPE,
OwnershipField, // ownership
TypeIDField // implementation type
ReferenceOwnershipField, // ownership
TypeIDField // implementation type
>;
using UnboundGenericTypeLayout = BCRecordLayout<
@@ -1410,7 +1410,8 @@ namespace decls_block {
>;
// Stub layouts, unused.
using OwnershipDeclAttrLayout = BCRecordLayout<Ownership_DECL_ATTR>;
using ReferenceOwnershipDeclAttrLayout
= BCRecordLayout<ReferenceOwnership_DECL_ATTR>;
using RawDocCommentDeclAttrLayout = BCRecordLayout<RawDocComment_DECL_ATTR>;
using AccessControlDeclAttrLayout = BCRecordLayout<AccessControl_DECL_ATTR>;
using SetterAccessDeclAttrLayout = BCRecordLayout<SetterAccess_DECL_ATTR>;