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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.