[cfe-dev] Passing Arguments to Checker

Jordy Rose jediknil at belkadan.com
Mon Aug 8 17:40:05 PDT 2011


As of yet, no. We've talked about it some (most recently off-list) and agreed that it's probably useful, but there's no facility for it yet. Of course, suggestions on how this should work are always welcome; patches are even better.

Meanwhile, if you're looking for a boolean toggle or a choice between a small set of values, you can fake it by having several registration functions that actually register the same checker. See NSErrorChecker for an example of this.

There should probably be a report about this on Bugzilla...

Jordy


On Aug 8, 2011, at 17:22, Tarun Sethi wrote:

> Hello,
> 
> I have written a checker and I am wondering if there is anyway to pass an argument to the checker (constructor of my checker class), the scan-build command line being the source of the argument ?
> 
> Thanks in advance,  
> 
> Tarun




More information about the cfe-dev mailing list