Menu

How to use suppress-list with CppCheckGui.exe?

2024-07-22
2024-07-22
  • Sander Bouwhuis

    Sander Bouwhuis - 2024-07-22

    I read the manual, and created a file called suppress-list.ini with some suppressions.
    But, when I call CppCheckGui.exe --suppress-list=suppress-list.ini, I get the error message 'No suitable files found to analyze!'.

    How can I set the suppressed list? (Why isn't this part of the settings anyway?!?!?!?)

     
  • Daniel Marjamäki

    cppcheck gui does not understand all the cppcheck flags.

    create a project in the cppcheck gui. in the project dialog goto tab "Warning options". There you have a "Suppressions" list box where you can add suppressions.

    The quickest approach to add suppressions is to scan your project. Then right click on a warning that you don't like and in the popup menu click on "suppress with id". The suppression is added in the "Suppressions" list box so you can remove/edit it there.

     
    👍
    1

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.