mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-10 08:03:26 +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
|
@ -48,7 +48,7 @@ struct ModIndex : public RTLIL::Monitor
|
|||
return cell == other.cell && port == other.port && offset == other.offset;
|
||||
}
|
||||
|
||||
Hasher hash_into(Hasher h) const {
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const {
|
||||
h.eat(cell->name);
|
||||
h.eat(port);
|
||||
h.eat(offset);
|
||||
|
@ -321,7 +321,7 @@ struct ModWalker
|
|||
return cell == other.cell && port == other.port && offset == other.offset;
|
||||
}
|
||||
|
||||
Hasher hash_into(Hasher h) const {
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const {
|
||||
h.eat(cell->name);
|
||||
h.eat(port);
|
||||
h.eat(offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue