Re: [libvirt] [PATCH 2/2] Add syntax-check rule to look for 'function (...args...)' violations

2012-10-17 Thread Martin Kletzander
On 10/17/2012 11:31 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > Checking for 'function (...args...)' is quite difficult since it > needs to ignore valid usage with keywords like 'if (...test...)' > and while/for/switch. It must also ignore source comments and > quoted strings.

[libvirt] [PATCH 2/2] Add syntax-check rule to look for 'function (...args...)' violations

2012-10-17 Thread Daniel P. Berrange
From: "Daniel P. Berrange" Checking for 'function (...args...)' is quite difficult since it needs to ignore valid usage with keywords like 'if (...test...)' and while/for/switch. It must also ignore source comments and quoted strings. It is not possible todo this with a simple regex in the norma