cgo: use scanner.Error in libclang
Previously it would return a `*scanner.Error`, which is not supported in the error printer of the main package. This can easily be fixed by making it a regular object (instead of a pointer).
Этот коммит содержится в:
		
							родитель
							
								
									e2c55e3d26
								
							
						
					
					
						коммит
						9ed5eae6a9
					
				
					 1 изменённых файлов: 3 добавлений и 3 удалений
				
			
		| 
						 | 
				
			
			@ -246,9 +246,9 @@ func tinygo_clang_globals_visitor(c, parent C.GoCXCursor, client_data C.CXClient
 | 
			
		|||
		}
 | 
			
		||||
		value := source[len(name):]
 | 
			
		||||
		// Try to convert this #define into a Go constant expression.
 | 
			
		||||
		expr, err := parseConst(pos+token.Pos(len(name)), p.fset, value)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			p.errors = append(p.errors, err)
 | 
			
		||||
		expr, scannerError := parseConst(pos+token.Pos(len(name)), p.fset, value)
 | 
			
		||||
		if scannerError != nil {
 | 
			
		||||
			p.errors = append(p.errors, *scannerError)
 | 
			
		||||
		}
 | 
			
		||||
		if expr != nil {
 | 
			
		||||
			// Parsing was successful.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче