ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 47326: / /trunk/tools/: checkhf-v2.p

From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Mon, 28 Jan 2013 15:55:55 -0500
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