cppcheck/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
..
avr.cfg Fixed #8078 (cppcheck-cfg.rng outdated) 2017-07-23 12:09:41 +02:00
boost.cfg Add check for unnecessary search before insertion 2019-05-02 11:04:23 +02:00
bsd.cfg bsd.cfg: Add arc4random* functions with tests. (#1344) 2018-08-16 21:37:40 +02:00
cppcheck-cfg.rng Fix #6115 (Add support to realloc to cfg files) (#1953) 2019-07-05 12:44:52 +02:00
cppcheck-lib.cfg std.cfg: Added support for std::swap. 2017-10-11 13:12:00 +02:00
cppunit.cfg Initial support for CppUnit 2019-02-17 20:16:01 +01:00
daca.cfg Correct two recently added macros 2019-04-19 15:43:17 +02:00
embedded_sql.cfg astyle 2017-11-05 17:56:24 +01:00
gnu.cfg gnu.cfg: Added support for isascii_l(), which is a GNU-extension. 2019-05-31 11:24:41 +02:00
googletest.cfg googletest.cfg: added simple macro implementations 2019-02-24 20:52:51 +01:00
gtk.cfg Fix #9047 (c-style casts before malloc) (#1930) 2019-07-03 08:39:44 +02:00
libcerror.cfg libcerror.cfg: Add libcerror configuration file. (#1684) 2019-02-22 12:52:07 +01:00
microsoft_sal.cfg microsoft_sal.cfg: Remove redundant define. 2018-07-11 14:03:00 +02:00
motif.cfg motif.cfg: Add configuration for XFree() 2019-04-16 11:22:08 +02:00
nspr.cfg nspr.cfg: Added documentation. 2019-06-16 13:34:00 +02:00
opengl.cfg opengl.cfg: Fix size of 64 bit types. 2019-03-12 16:09:08 +01:00
openmp.cfg openmp.cfg: Add library configuration for OpenMP (#1956) 2019-07-05 03:00:52 +02:00
posix.cfg posix.cfg: Add setsockopt() and getsockopt() (#1944) 2019-07-02 15:14:31 +02:00
python.cfg Add more interfaces and attributes 2019-02-18 21:48:41 +01:00
qt.cfg qt.cfg: Add smart pointers from Qt (#1819) 2019-05-03 13:21:49 +02:00
ruby.cfg ruby.cfg: Configure rb_raise() as `noreturn` function. 2019-03-18 10:04:29 +01:00
sdl.cfg Fixed #8078 (cppcheck-cfg.rng outdated) 2017-07-23 12:09:41 +02:00
sfml.cfg Fixed #8078 (cppcheck-cfg.rng outdated) 2017-07-23 12:09:41 +02:00
sqlite3.cfg sqlite3.cfg: Add more allocation and function configurations. 2019-03-28 10:42:11 +01:00
std.cfg Fix #6115 (Add support to realloc to cfg files) (#1953) 2019-07-05 12:44:52 +02:00
tinyxml2.cfg tinyxml2.cfg: Added support for XMLElement::Attribute(). 2019-01-25 20:15:01 +01:00
windows.cfg windows.cfg: Added support for more contants. Reference: https://docs.microsoft.com/de-de/windows/win32/api/minwinbase/ns-minwinbase-debug_event 2019-07-02 08:43:10 +02:00
wxwidgets.cfg wxwidgets.cfg: Simplified macro 2019-07-05 11:06:29 +02:00
zlib.cfg zlib.cfg: Fixes, enhancements and adding argument directions. 2019-03-13 15:03:11 +01:00