mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	check: promote some problems to errors by default, add -permissive
This commit is contained in:
		
							parent
							
								
									ecf9c9f0cf
								
							
						
					
					
						commit
						c7cd70b103
					
				
					 3 changed files with 58 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -400,6 +400,16 @@ void log_file_error(const string &filename, int lineno,
 | 
			
		|||
	logv_file_error(filename, lineno, format, ap);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
std::string fmt(const char *format, ...)
 | 
			
		||||
{
 | 
			
		||||
	std::string s;
 | 
			
		||||
	va_list ap;
 | 
			
		||||
	va_start(ap, format);
 | 
			
		||||
	s = vstringf(format, ap);
 | 
			
		||||
	va_end(ap);
 | 
			
		||||
	return s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void log(const char *format, ...)
 | 
			
		||||
{
 | 
			
		||||
	va_list ap;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -126,6 +126,7 @@ void logv_warning_noprefix(const char *format, va_list ap);
 | 
			
		|||
[[noreturn]] void logv_error(const char *format, va_list ap);
 | 
			
		||||
[[noreturn]] void logv_file_error(const string &filename, int lineno, const char *format, va_list ap);
 | 
			
		||||
 | 
			
		||||
std::string fmt(const char *format, ...)  YS_ATTRIBUTE(format(printf, 1, 2));
 | 
			
		||||
void log(const char *format, ...)  YS_ATTRIBUTE(format(printf, 1, 2));
 | 
			
		||||
void log_header(RTLIL::Design *design, const char *format, ...) YS_ATTRIBUTE(format(printf, 2, 3));
 | 
			
		||||
void log_warning(const char *format, ...) YS_ATTRIBUTE(format(printf, 1, 2));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue