C ++ / C code checking tool for use

Tools: cppcheck-1.65-x86-Setup.msi

Common commands:

cppcheck --enable=all D:\test 2> v9_check.txt

cppcheck D:\test 2> v9_err.txt

cppcheck D:\test

step:

1, cmd to open

2, into the cppcheck-1.65-x86-Setup.msi installation directory,

For example: cd C: \ Program Files (x86) \ Cppcheck  

3, and then enter the item code of judgment  

code path cppcheck

For example: cppcheck D: \ test

4, copy all the contents in the cmd, and then search for "error" place to correct

Published 15 original articles · won praise 1 · views 10000 +

Guess you like

Origin blog.csdn.net/fhplzh/article/details/104481738
Recommended