Menu

run cppcheck

2020-04-10
2020-04-11
  • Hadar Epstein

    Hadar Epstein - 2020-04-10

    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!

     
  • Daniel Marjamäki

    I don't understand.. what is the problem? Your suggestion should work.

    cd cppcheck
    make MATCHCOMPILER=yes CXXFLAGS=-O2
    ./cppcheck <somefile></somefile>

     
    👍
    1
  • Hadar Epstein

    Hadar Epstein - 2020-04-11

    Works like a charm! Thanks a lot!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.