mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 05:08:56 +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
|
@ -233,7 +233,7 @@ struct ClockgatePass : public Pass {
|
|||
SigBit ce_bit;
|
||||
bool pol_clk;
|
||||
bool pol_ce;
|
||||
Hasher hash_into(Hasher h) const {
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const {
|
||||
auto t = std::make_tuple(clk_bit, ce_bit, pol_clk, pol_ce);
|
||||
h.eat(t);
|
||||
return h;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue