Thanks Alex,
I was able to run cppcheck.
I had to install the newest cppcheck from source to get access to the
--project flag.
i ran
bear ./waf
and then
cppcheck --project=compile_commands.json

It returned a few static analysis errors if interested.
I'll attach the results when it finishes running.
It is possible I don't have this configured properly, and its using
its own #defines


On Mon, May 15, 2023 at 11:03 AM Alex White <alex.wh...@oarcorp.com> wrote:
>
> You should be able to use `bear` (https://github.com/rizsotto/Bear). I have 
> it installed via my package manager.
>
> After a `./waf clean`, run `bear -- ./waf` to generate compile_commands.json. 
> Then you should be able to run `cppcheck --project=compile_commands.json`.
>
> Alex



-- 
Sincerely,

Sam Price
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to