mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
AK: Annotate [[no_unique_address]] members with NO_UNIQUE_ADDRESS macro
This commit is contained in:
parent
b133c27305
commit
5e7e6475c6
|
|
@ -789,7 +789,7 @@ private:
|
|||
|
||||
BucketType* m_buckets { nullptr };
|
||||
|
||||
[[no_unique_address]] CollectionDataType m_collection_data;
|
||||
NO_UNIQUE_ADDRESS CollectionDataType m_collection_data;
|
||||
size_t m_size { 0 };
|
||||
size_t m_capacity { 0 };
|
||||
};
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ private:
|
|||
IntrusiveListStorage<T, Container>* m_storage = nullptr;
|
||||
SubstitutedIntrusiveListNode<T, Container>* m_next = nullptr;
|
||||
SubstitutedIntrusiveListNode<T, Container>* m_prev = nullptr;
|
||||
[[no_unique_address]] SelfReferenceIfNeeded<Container, IsRaw> m_self;
|
||||
NO_UNIQUE_ADDRESS SelfReferenceIfNeeded<Container, IsRaw> m_self;
|
||||
};
|
||||
|
||||
template<class T, typename Container, SubstitutedIntrusiveListNode<T, Container> T::* member>
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ private:
|
|||
#endif
|
||||
|
||||
bool m_in_tree { false };
|
||||
[[no_unique_address]] SelfReferenceIfNeeded<Container, IsRaw> m_self;
|
||||
NO_UNIQUE_ADDRESS SelfReferenceIfNeeded<Container, IsRaw> m_self;
|
||||
};
|
||||
|
||||
// Specialise IntrusiveRedBlackTree for NonnullRefPtr
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ private:
|
|||
size_t calculate_length_in_code_points() const;
|
||||
|
||||
ReadonlySpan<u16> m_code_units;
|
||||
[[no_unique_address]] mutable Optional<size_t> m_length_in_code_points;
|
||||
NO_UNIQUE_ADDRESS mutable Optional<size_t> m_length_in_code_points;
|
||||
Endianness m_endianness { Endianness::Host };
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user