Hi, I want to run a bash script that will run cppcheck not on my local machine.
I cloned the cppcheck repositoty and I want to run the cppcheck command on a certain file.
is there a an actual script I can use (for example ./cppcheck/cppcheck.sh file.cpp ) ?
./cppcheck/cppcheck.sh file.cpp
what will be the best way to approach this?
Thanks!
I don't understand.. what is the problem? Your suggestion should work.
cd cppcheck make MATCHCOMPILER=yes CXXFLAGS=-O2 ./cppcheck <somefile></somefile>
Works like a charm! Thanks a lot!
Log in to post a comment.
Hi, I want to run a bash script that will run cppcheck not on my local machine.
I cloned the cppcheck repositoty and I want to run the cppcheck command on a certain file.
is there a an actual script I can use (for example
./cppcheck/cppcheck.sh file.cpp
) ?what will be the best way to approach this?
Thanks!
I don't understand.. what is the problem? Your suggestion should work.
cd cppcheck
make MATCHCOMPILER=yes CXXFLAGS=-O2
./cppcheck <somefile></somefile>
Works like a charm! Thanks a lot!