mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	mark all hash_top methods nodiscard
This commit is contained in:
		
							parent
							
								
									a58481e9b7
								
							
						
					
					
						commit
						4dbef95792
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -364,7 +364,7 @@ struct RTLIL::IdString
 | 
			
		|||
 | 
			
		||||
	[[nodiscard]] Hasher hash_into(Hasher h) const { return hash_ops<int>::hash_into(index_, h); }
 | 
			
		||||
 | 
			
		||||
	Hasher hash_top() const {
 | 
			
		||||
	[[nodiscard]] Hasher hash_top() const {
 | 
			
		||||
		Hasher h;
 | 
			
		||||
		h.force((Hasher::hash_t) index_);
 | 
			
		||||
		return h;
 | 
			
		||||
| 
						 | 
				
			
			@ -915,7 +915,7 @@ struct RTLIL::SigBit
 | 
			
		|||
	bool operator ==(const RTLIL::SigBit &other) const;
 | 
			
		||||
	bool operator !=(const RTLIL::SigBit &other) const;
 | 
			
		||||
	[[nodiscard]] Hasher hash_into(Hasher h) const;
 | 
			
		||||
	Hasher hash_top() const;
 | 
			
		||||
	[[nodiscard]] Hasher hash_top() const;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
namespace hashlib {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue