On 1/28/2013 3:31 PM, Evan Huus wrote:
Tangentially, CppCheck [1] has support for custom checks using
plugins. I've never had time to investigate properly, but I suspect
that implementing the three check scripts (checkhf, checkAPIs,
checkfiltername) as CppCheck plugins would be a major win, primarily
because we'd get real C grammar parsing for free.
It's certainly the case that all the check functionality would be better
done in some tool which handles C (and which runs the source thru the
pre-processor, etc).
I'll have to look at CppCheck.
At one point I thought about looking at CLang to see if it were
reasonably easy to add custom checking as needed but I never pursued
matters further.
Bill