Menu

Possible good tests

2015-10-31
2015-11-03
  • Michael Ségura

    Michael Ségura - 2015-10-31

    Hi,
    Maybe you don't know this tool : Google's cppclean.
    It has good test cppcheck doesn't have :
    - Find global/static data that are potential problems when using threads
    - Unnecessary forward class declarations
    - Unnecessary function declarations
    - Find unnecessary header files #included :
    - No direct reference to anything in the header
    - Header is unnecessary if classes were forward declared instead
    - Source files that reference headers not directly #included, ie, files that rely on a transitive #include from another header
    - Unused members (private, protected, & public) methods and data

     
  • Daniel Marjamäki

    I did not know about cppclean.

    please write suggestions in our issue tracker:
    http://trac.cppcheck.net/

    Please write 1 issue for each test.

    I am not against the tests you suggest but if these tests are already implemented in cppclean then people could use that tool also.

    I don't think the tests for header files are possible currently to add in cppcheck. That requires that these tests runs during the preprocessing.

     

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.