mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-13 07:56:40 +00:00
mark all hash_into methods nodiscard
This commit is contained in:
parent
a2805b15c9
commit
a58481e9b7
21 changed files with 60 additions and 60 deletions
|
@ -46,7 +46,7 @@ struct IdBit {
|
|||
|
||||
bool operator==(const IdBit &other) const { return name == other.name && bit == other.bit; };
|
||||
bool operator!=(const IdBit &other) const { return name != other.name || bit != other.bit; };
|
||||
Hasher hash_into(Hasher h) const
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const
|
||||
{
|
||||
h.eat(name);
|
||||
h.eat(bit);
|
||||
|
@ -64,7 +64,7 @@ struct InvBit {
|
|||
|
||||
bool operator==(const InvBit &other) const { return bit == other.bit && inverted == other.inverted; };
|
||||
bool operator!=(const InvBit &other) const { return bit != other.bit || inverted != other.inverted; };
|
||||
Hasher hash_into(Hasher h) const
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const
|
||||
{
|
||||
h.eat(bit);
|
||||
h.eat(inverted);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue