4

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?

1
  • Share your main.c code, maybe err.txt is empty since there is no errors? Commented Dec 21, 2017 at 15:26

1 Answer 1

11

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.