[Adium-devl] Apparently clang's static analyzer can handle Adium

Ryan Govostes rgovostes at gmail.com
Fri Jul 18 13:45:45 UTC 2008


As it stands it's a pretty hideous script, with hardcoded paths and  
requiring a little bit of hand tweaking of both input and output.  
Behold:

	msg = "(repeat of [" + q[2] + " this]"
	if int(r[4]) > int(q[4]):
		msg += ", " + str(int(q[4]) - int(r[4])) + " lines"
	elif int(r[4]) < int(q[4]):
		msg += ", +" + str(int(q[4]) - int(r[4])) + " lines"
	msg += ") "
	z = q[0:5] + (msg + q[5],)

I hate immutable tuples and the lack of a ternary operator.


I have plans to make a Python version of scan-build that generates an  
object for each report as it comes out of Clang, rather than parse the  
HTML file that scan-build outputs. This will give us a lot more  
control over how we compare reports and format output.

Regards,
Ryan Govostes




More information about the devel mailing list