Menu

cppcheck takes 6+ hours on my project

2021-12-23
2021-12-26
  • Frederick Gotham

    My project is about 10 - 20 source files.

    If I configure cppcheck with "--library=std --library=boost --library=wxwidgets", and then give it the paths to the header files for Boost and wxWidgets, it takes more than 6 hours to do all its checks. (Github Actions abandoned the workflow after 6 hours so I don't know how long it would have taken).

    Anyone got any suggestions to speed it up?

    If I don't supply the paths to the header files then it only takes a minute or two. Are you supposed to just do "--library=wxwidgets" wthout giving it the path to the wxWidgets header files?

     
  • Frederick Gotham

    It's been running for 7 hours now and it's 53% done.

     
    • john borland

      john borland - 2021-12-26

      What version of cppcheck are you using? Also are you compiling it or using a package?

       
  • Daniel Marjamäki

    Are you supposed to just do "--library=wxwidgets" wthout giving it the path to the wxWidgets header files?

    yes that is the idea.

     

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.