Ganesh M S
Ganesh M S

Reputation: 1063

How to use Cppcheck to review C/C++ code in Ubuntu?

I am trying to use Cppcheck tool on Ubuntu. I ran the following command

cppcheck --enable=all  --check-config --suppress=missingIncludeSystem main.c 2>err.txt

It is creating the err.txt file, but it is empty.

How to get the check results of main.c?

Upvotes: 4

Views: 22450

Answers (1)

Daniel Marjamäki
Daniel Marjamäki

Reputation: 3037

Remove --check-config. That option tells Cppcheck that you only want to check the command line configuration.

Upvotes: 11

Related Questions