mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 21:27:00 +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
|
@ -35,7 +35,7 @@ struct IdPath : public std::vector<RTLIL::IdString>
|
|||
bool has_address() const { int tmp; return get_address(tmp); };
|
||||
bool get_address(int &addr) const;
|
||||
|
||||
Hasher hash_into(Hasher h) const {
|
||||
[[nodiscard]] Hasher hash_into(Hasher h) const {
|
||||
h.eat(static_cast<const std::vector<RTLIL::IdString>&&>(*this));
|
||||
return h;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue