cppcheck/test/cfg
Rikard Falkeborn 839fcddd8a Fix #6115 (Add support to realloc to cfg files) (#1953)
* Allow to configure realloc like functions

* memleakonrealloc: Bring back tests.

The old memleak checker was removed, and the tests for it was removed in
commit 9765a2dfab. This also removed the
tests for memleakOnRealloc. Bring back those tests, somewhat modified
since the checker no longer checks for memory leaks.

* Add realloc to mem leak check

* Add tests of realloc buffer size

* Configure realloc functions

* Add test of freopen

* Allow to configure which element is realloc argument

* Fix wrong close in test

cppcheck now warns for this

* Update manual

* Update docs

* Rename alloc/dalloc/realloc functions

Naming the member function realloc caused problems on appveyor. Rename
the alloc and dealloc functions as well for consistency.

* Change comparisson order

* Remove variable and use function call directly

* Create temporary variable to simplify

* Throw mismatchError on mismatching allocation/reallocation

* Refactor to separate function

* Fix potential nullptr dereference

As pointed out by cppcheck.
2019-07-05 12:44:52 +02:00
..
boost.cpp boost.cfg: Add argument directions; some fixes; rearrange and document. 2019-03-15 11:13:08 +01:00
bsd.c Travis: Try to fix 'make checkcfg' 2019-03-02 19:38:11 +01:00
generate-cfg-tests.sh add script to generate cfg tests 2018-03-18 13:03:19 +01:00
gnu.c Fix #9047 (c-style casts before malloc) (#1930) 2019-07-03 08:39:44 +02:00
gtk.c Fix #9047 (c-style casts before malloc) (#1930) 2019-07-03 08:39:44 +02:00
openmp.c openmp.cfg: Add library configuration for OpenMP (#1956) 2019-07-05 03:00:52 +02:00
posix.c posix.cfg: Added partial support for scandir() and a TODO comment. 2019-05-25 23:32:28 +02:00
qt.cpp qt.cfg: Add Q_DECLARE_TR_FUNCTIONS() and others (#1677) 2019-02-26 13:39:37 +01:00
runtests.sh openmp.cfg: Add library configuration for OpenMP (#1956) 2019-07-05 03:00:52 +02:00
sqlite3.c Library: Add initial configuration with tests for SQLite3 library. (#1737) 2019-03-13 13:57:40 +01:00
std.c Fix #6115 (Add support to realloc to cfg files) (#1953) 2019-07-05 12:44:52 +02:00
std.cpp Library configuration: function argument direction fixes and enhancements (#1722) 2019-03-04 22:57:40 +01:00
unmatchedSuppressionTest.c unmatched suppression: fix test case 2019-01-22 18:47:52 +01:00
windows.cpp Fix #9047 (c-style casts before malloc) (#1930) 2019-07-03 08:39:44 +02:00
wxwidgets.cpp Refactoring of Null Pointer Checker 2019-03-16 21:21:30 +01:00