mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	printattrs: Simplify get_indent_str().
				
					
				
			Co-Authored-By: Xiretza <xiretza@xiretza.xyz>
This commit is contained in:
		
							parent
							
								
									f671c99cb8
								
							
						
					
					
						commit
						5896ffd56f
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -36,9 +36,7 @@ struct PrintAttrsPass : public Pass {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	static std::string get_indent_str(const unsigned int indent) {
 | 
			
		||||
		//Build the format string (e.g. "%4s")
 | 
			
		||||
		std::string format_str = stringf("%%%ds", indent);
 | 
			
		||||
		return stringf(format_str.c_str(), " "); //Use the format string with " " as %s 
 | 
			
		||||
		return stringf("%*s", indent, "");
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	static void log_const(const RTLIL::IdString &s, const RTLIL::Const &x, const unsigned int indent) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue