Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: about using smatch in all debian C code

Dan Carpenter <[email protected]> Wed, 13 Mar 2024 11:37:54 +0300
Newsgroups org.kernel.vger.smatch
Message-ID <[email protected]>
On Wed, Mar 13, 2024 at 04:29:25PM +0800, 李书畅 wrote:
> I see.
> And in this case, if I just want to check a single .c file other than the whole directory after building the database ,
> what should  I do ?

It's going to depend on the build system.  But normally:

rm path/to/file.o
make CHECK="/path/to/smatch --file-output" path/to/file.o
cat path/to/file.c.smatch

regards,
dan carpenter