2008-03-17 06:53:29 +01:00
|
|
|
|
|
|
|
|
2008-08-09 10:35:28 +02:00
|
|
|
Tokens..
|
|
|
|
I think the SimplifyTokens function should insert braces after every if/for/while.
|
|
|
|
That would make the token list easier to parse.
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-17 06:53:29 +01:00
|
|
|
Userdefined types
|
|
|
|
|
|
|
|
I think this needs to be handled better.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Unused function / variable
|
|
|
|
|
|
|
|
If the user provides "--recursive" there should be
|
|
|
|
warnings for unused functions and variables.
|
|
|
|
|
|
|
|
Check if all members in the public section of a class
|
|
|
|
are used externally.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dead pointers
|
|
|
|
|
|
|
|
Check for dead pointers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Style
|
|
|
|
|
|
|
|
Increase constness
|
|
|
|
|
|
|
|
Function parameters: Use std::ostream instead of std::ostringstream or std::ofstream
|
|
|
|
|
2008-04-06 13:39:49 +02:00
|
|
|
Function parameters: By reference instead of by value
|
2008-03-17 06:53:29 +01:00
|
|
|
|
2008-04-06 13:39:49 +02:00
|
|
|
Optimisation: Return "const _T &" instead of "_T"?
|
2008-03-17 06:53:29 +01:00
|
|
|
|
|
|
|
Unused variable (function, file, class), unused value, unused parameter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MEMORY LEAKS
|
|
|
|
============
|
|
|
|
|
|
|
|
Allow the user to specify classes to be ignored (that have garbage collection)
|
|
|
|
|
|
|
|
Allow the user to specify allocation and free functions (kmalloc, kfree)
|
|
|
|
|
|
|
|
Better checking of pointers in structs
|
|
|
|
|
|
|
|
|
|
|
|
|