8cd1d5a47d
* Use library for memleak checks Change memleakOnRealloc and leakReturnValNotUsed to use library configuration instead of hardcoding "realloc". In order to do so, some care needs to be taken when matching for a reallocation function, since it can no longer be assumed that the input to be allocated is the first argument of the function. This complicates getReallocationType() and checkReallocUsage() but is necessary in order to handle for example freopen() properly. Also, refactor memleakOnRealloc check to reduce duplicated code when checking "a" and "*a". When doing so, extending the check to look for arbitrary number of "*" can be done for free (just change an if statement to a while statement). Most likely, this is an unusual case in real world code. * Remove redundant whitespace in Token::Match() * Run on simplified checks * Fix cppcheck warning |
||
---|---|---|
.. | ||
boost.cpp | ||
bsd.c | ||
generate-cfg-tests.sh | ||
gnu.c | ||
gtk.c | ||
openmp.c | ||
posix.c | ||
qt.cpp | ||
runtests.sh | ||
sqlite3.c | ||
std.c | ||
std.cpp | ||
unmatchedSuppressionTest.c | ||
windows.cpp | ||
wxwidgets.cpp |