orbitcowboy
279aef4456
wxwidgets.cfg: Added support for more interfaces.
2019-03-09 12:21:10 +01:00
orbitcowboy
91394c4a48
wxwidgets.cfg: Added support for more interfaces.
2019-03-09 12:19:34 +01:00
orbitcowboy
f0f2d1833d
windows.cfg: Added support for TEXT()-macro. Ref.: https://docs.microsoft.com/en-us/windows/desktop/api/winnt/nf-winnt-text
2019-03-09 12:07:12 +01:00
orbitcowboy
17033976f5
wxwidgets.cfg: Added support for more interfaces.
2019-03-08 18:10:38 +01:00
orbitcowboy
8bb7a899bd
wxwidgets.cfg: Added support for more interfaces.
2019-03-08 18:06:09 +01:00
orbitcowboy
e6a00b4dd5
wxwidgets.cfg: Added support for more interfaces.
2019-03-08 17:57:50 +01:00
orbitcowboy
6aef4a16e6
windows.cfg: Fixed wrong arg number in recv().
2019-03-08 13:04:39 +01:00
orbitcowboy
ecff903b4f
wxwidgets.cfg: Added support for more interfaces.
2019-03-07 07:57:21 +01:00
orbitcowboy
7a47230983
wxwidgets.cfg: Added support for more interfaces.
2019-03-07 07:53:43 +01:00
orbitcowboy
63368d41bb
wxwidgets.cfg: Added support for more interfaces.
2019-03-07 00:55:10 +01:00
Sebastian
0bab9d778b
std.cfg: Fix wprintf(), add comment to swprintf(). ( #1729 )
...
wprintf(): The format string must be initialized. So add `<not-uninit/>`
swprintf(): `<formatstr/>` should not be used because Microsoft uses the
same function with a different order of the arguments. Add comment to
document this in the library configuration also. See ticket
https://trac.cppcheck.net/ticket/4790
2019-03-06 21:13:48 +01:00
Sebastian
1fe1fc7008
gnu.cfg: Add support for non-GNU _(string) macro. ( #1726 )
...
As can be read here:
https://www.gnu.org/software/gettext//manual/html_node/Mark-Keywords.html
The _(str) macro is typically defined for a project to abbreviate the
gettext(str) call. Although this is not part of GNU it would enhance the
analysis. Cppcheck often does not know what _() is. In daca@home it is
reported thousands of times as a function without configuration.
2019-03-06 10:57:59 +01:00
versat
ecba3db9cc
posix.cfg: Start specifying direction for arguments to functions.
...
There are still many functions with arguments that need a direction
specified.
2019-03-06 10:08:46 +01:00
orbitcowboy
b7c40d972b
boost.cfg: Fixed typo in macro.
2019-03-05 19:00:13 +01:00
orbitcowboy
2ddba8f352
boost.cfg: Added support for BOOST_LOG_ATTRIBUTE_KEYWORD-macro.
2019-03-05 18:53:34 +01:00
orbitcowboy
8c0ab16863
std.cfg: Added support for more interfaces.
2019-03-05 18:13:42 +01:00
orbitcowboy
49937570b2
wxwidgets.cfg: Added more directions-attributes.
2019-03-05 17:45:29 +01:00
versat
df73f7f355
std.cfg, windows.cfg: Move strcpy_s from windows.cfg to std.cfg.
...
strcpy_s belongs to the standard so it must be in std.cfg instead of
windows.cfg.
Configuration for strcpy_s has been improved and tests were added.
Found by daca@home
2019-03-05 15:33:16 +01:00
versat
0ae24b950f
std.cfg: Add support for snprintf_s().
...
sprintf_s works very similar but it is already configured in the
windows library. Configuring sprintf_s in std.cfg leads to conflicts in
the windows configuration tests.
Found by daca@home
2019-03-05 14:44:33 +01:00
versat
ce818631ab
std.cfg: Add support for ctime_s().
2019-03-05 13:57:52 +01:00
Sebastian
9efb720a98
std.cfg: Add missing argument directions as far as possible. ( #1725 )
...
I added all argument directions i know or where i was able to find
information without too much effort. When in doubt i looked at the
Microsoft SAL annotations and used similar configurations when this
made sense.
2019-03-05 13:45:41 +01:00
Sebastian
0934577dda
Library configuration: function argument direction fixes and enhancements ( #1722 )
...
* std.cfg: Add further argument directions (in, out, inout).
* testlibrary.cpp: Add test for function argument direction configuration.
* std.cfg: runastyle and add some more direction configurations.
* library.h: Add documentation for function argument direction enum.
* Do not use "direction" library information for pointer arguments.
Also fix further unmatched uninitvar messages in std configuration
tests.
* std.cfg: Add more argument direction configurations.
* test/cfg/std.c: Add test for argument direction configuration.
* astutils.cpp: Only ignore pointer arguments for out/inout arguments.
* library.h: Use suggested documentation for argument direction enum.
2019-03-04 22:57:40 +01:00
versat
0498b9ec34
opgengl.cfg: Introduce OpenGL library configuration file.
...
Prepare donate-cpu.py to detect OpenGL library usage but comment it
out for now.
2019-03-04 14:10:06 +01:00
orbitcowboy
a4b127f6a8
wxwidgets.cfg: Added more directions-attributes.
2019-03-04 12:11:18 +01:00
orbitcowboy
782958d814
wxwidgets.cfg: Added more directions-attributes.
2019-03-04 10:53:25 +01:00
orbitcowboy
391ed97717
gtk.cfg: Added support for more macros.
2019-03-04 10:43:21 +01:00
orbitcowboy
f723c6b191
wxwidgets.cfg: Added more directions-attributes.
2019-03-04 10:32:35 +01:00
orbitcowboy
794d72d776
wxwidgets.cfg: Added more directions-attributes.
2019-03-04 10:26:37 +01:00
orbitcowboy
9c7eff5b69
wxwidgets.cfg: Added more directions-attributes.
2019-03-03 18:42:17 +01:00
orbitcowboy
a9658607d7
qt.cfg: Added support for some QTC_ASSERT()-macros. This fixes a bunch of 'unknownMacros'-warnings from daca@home.
2019-03-03 18:42:02 +01:00
orbitcowboy
8c6f1ca24f
wxwidgets.cfg: Started to add 'direction'-attributes.
2019-03-03 18:03:18 +01:00
orbitcowboy
7d266e688c
gtk.cfg: Added support for more interfaces.
2019-03-03 17:42:58 +01:00
orbitcowboy
f66dde018d
gtk.cfg: Added support for GTK_DIALOG-macro.
2019-03-03 17:28:05 +01:00
orbitcowboy
915280beec
gtk.cfg: Added support for GTK_LABEL-macro.
2019-03-03 17:25:49 +01:00
orbitcowboy
68f4243c89
gtk.cfg: Added support for GTK_TREE_VIEW-macro.
2019-03-03 17:22:35 +01:00
Sebastian
9a5fcddb5d
Library configuration: Enable configuring the direction of arguments. ( #1717 )
...
This enhances the library configuration so the direction of function
arguments can be specified (in, out, inout).
isVariableChangedByFunctionCall() uses this information now to avoid
guessing.
2019-03-01 15:47:08 +01:00
orbitcowboy
aa4265978c
std.cfg: Added support for std::list::remove().
2019-03-01 15:10:36 +01:00
orbitcowboy
16e3a0ada6
std.cfg: Added support for std::shuffle() and std::random_shuffle().
2019-03-01 15:05:10 +01:00
versat
24739dc5f2
gtk.cfg: Add support for g_message() and similar printf like functions.
...
g_error() is special because it never returns.
2019-03-01 11:20:28 +01:00
orbitcowboy
9348a627e0
std.cfg: Added support for more interfaces.
2019-03-01 09:28:46 +01:00
orbitcowboy
360823203f
windows.cfg: Ensure the return value is taken into account for memory (re)-allocation functions.
2019-03-01 08:58:53 +01:00
orbitcowboy
2fad53e4f8
std.cfg: Enusre the return value of realloc()-functions is taken into account.
2019-03-01 08:57:59 +01:00
orbitcowboy
910adb0076
wxwidgets.cfg: Added support for more interfaces.
2019-02-28 23:46:17 +01:00
orbitcowboy
fa59cb91cb
gnu.cfg: Added <use-retval/> to xrealloc() configuration.
2019-02-28 23:45:51 +01:00
orbitcowboy
c0bec7ef69
wxwidgets.cfg: Added support for wxDC::DrawEllipse().
2019-02-28 23:21:46 +01:00
orbitcowboy
f70e01b2b1
std.cfg: Added (experimental) support for MIN/MAX-macros. In case it turnes out this causes unexpected side effects, they can be easily removed.
2019-02-28 23:03:38 +01:00
orbitcowboy
b222ff14be
gnu.cfg: Added support fo xexit().
2019-02-28 22:55:17 +01:00
orbitcowboy
80e31755da
gnu.cfg: Added support for xrealloc().
2019-02-28 22:48:39 +01:00
orbitcowboy
43daaca19c
gnu.cfg: Added support for xstrdup().
2019-02-28 22:46:16 +01:00
orbitcowboy
e6d36913c8
gnu.cfg: Added support for xmalloc() and xcalloc(). Reference: https://gcc.gnu.org/onlinedocs/libiberty/Functions.html
2019-02-28 22:36:52 +01:00
Sebastian
71b1b2dd76
std.cfg: Add support for std::vector::assign(). ( #1713 )
...
Reference:
https://en.cppreference.com/w/cpp/container/vector/assign
2019-02-28 18:43:54 +01:00
versat
7ccf4b9a0d
qt.cfg: Add support for some QTimer functions.
...
Reference:
https://doc.qt.io/qt-5/qtimer.html
2019-02-28 16:07:11 +01:00
versat
f6c3749015
gtk.cfg: Add support for g_alloca() and g_newa().
...
References:
https://developer.gnome.org/glib/stable/glib-Memory-Allocation.html#g-alloca
https://github.com/GNOME/glib/blob/master/glib/galloca.h
2019-02-28 15:29:37 +01:00
Martin Ettl
fe402498e1
qt.cfg: Added support for Q_DECLARE_PUBLIC()-macro.
2019-02-27 15:38:31 +01:00
Martin Ettl
17c1733b0e
gnu.cfg: Added support for asprintf() and vasprintf(). There is a FN with memory leak detection regarding pointer args, which is already mentioned in #8980 . A comment has been added.
2019-02-27 15:17:34 +01:00
Thomas Niederberger
084c7c284e
Add missing Qt macros ( #1709 )
...
Add two Qt macros that were missing
2019-02-27 15:11:34 +01:00
Sebastian
2a45d390f3
gtk.cfg: Add support for gtk_label_new(), enhance gtk_label_get(). ( #1706 )
...
References:
https://developer.gnome.org/gtk3/stable/GtkLabel.html#gtk-label-new
https://developer.gnome.org/gtk2/stable/GtkLabel.html#gtk-label-get
Found by daca@home.
2019-02-27 12:56:21 +01:00
Sebastian
13b37631a6
std.cfg: Add support for std::vector::swap() and std::swap() ( #1700 )
...
References:
https://en.cppreference.com/w/cpp/container/vector/swap
https://en.cppreference.com/w/cpp/algorithm/swap
2019-02-26 18:21:17 +01:00
Sebastian
d7e219043a
Library configuration validation: Enhance relaxng file (arg elements) ( #1698 )
...
Make sure that the elements of function->arg contain no duplicates.
Except for 'minsize' which can be specified zero to many times.
2019-02-26 14:00:54 +01:00
Sebastian
61f911d39a
qt.cfg: Add Q_DECLARE_TR_FUNCTIONS() and others ( #1677 )
...
Add unknownMacro Q_DECLARE_TR_FUNCTIONS found via daca@home.
Add function QCoreApplication::translate() and macro
QT_DECLARE_DEPRECATED_TR_FUNCTIONS() the unknownMacro depends on.
Reference:
https://doc.qt.io/qt-5/qcoreapplication.html#Q_DECLARE_TR_FUNCTIONS
https://doc.qt.io/qt-5/qcoreapplication.html#translate
2019-02-26 13:39:37 +01:00
orbitcowboy
4e6d4e4ddd
wxwidgets.cfg: Added support for more interfaces.
2019-02-25 16:38:52 +01:00
orbitcowboy
86e3ce7a47
wxwidgets.cfg: Added support for more interfaces.
2019-02-25 16:31:16 +01:00
Andreas Bacher
587474e3b0
qt.cfg: Add support for further qtest macros & add definition for macros Q_ASSERT, Q_ASSERT_X ( #1693 )
...
Thanks!
2019-02-25 14:07:57 +01:00
Daniel Marjamäki
09d505219c
qt.cfg: add implementations for macros to avoid unreadVariable FPs
2019-02-24 20:58:07 +01:00
Daniel Marjamäki
56d68d1aae
googletest.cfg: added simple macro implementations
2019-02-24 20:52:51 +01:00
orbitcowboy
d218fa5919
std.cfg: Added support for more interfaces.
2019-02-24 18:43:07 +01:00
orbitcowboy
406b29548a
std.cfg: Added support for more interfaces.
2019-02-24 18:35:02 +01:00
Andreas Bacher
6760958e67
itions of QCOMPARE, QVERIFY & QVERIFY2, this are qtest macros not asserts ( #1690 )
...
* qt.cfg: Changed definitions of QCOMPARE, QVERIFY & QVERIFY2, this are qtest macros not asserts
* qt.cfg: Add support for further qtest macros
2019-02-24 16:44:48 +01:00
orbitcowboy
32e1d383a4
std.cfg: Added support for std::replace() and std::replace_if().
2019-02-24 00:06:38 +01:00
orbitcowboy
748fe7f25e
std.cfg: Added support for std::back_inserter().
2019-02-24 00:00:20 +01:00
orbitcowboy
c38cbd967b
std.cfg: Added support for std::reverse().
2019-02-23 23:55:13 +01:00
orbitcowboy
59d3ce2343
std.cfg: Added support for std::remove_if().
2019-02-23 23:51:11 +01:00
orbitcowboy
568887eadf
std.cfg: Added support for std::unique().
2019-02-23 23:44:23 +01:00
orbitcowboy
0fa70ebb2a
std.cfg: Added support for more interfaces.
2019-02-23 18:38:48 +01:00
orbitcowboy
216d324a59
std.cfg: Added support for more interfaces.
2019-02-23 18:35:13 +01:00
orbitcowboy
df6fb18c94
wxwidgets.cfg: Added support for more interfaces.
2019-02-23 18:20:04 +01:00
orbitcowboy
c8fab94cee
wxwidgets.cfg: Added support for more interfaces.
2019-02-23 17:11:27 +01:00
orbitcowboy
2d2f64da1b
wxwidgets.cfg: Added support for more interfaces.
2019-02-23 17:02:04 +01:00
orbitcowboy
afb0d2aab6
wxwidgets.cfg: Added support for more interfaces.
2019-02-23 16:56:35 +01:00
orbitcowboy
3f695fd453
wxwidgets.cfg: Added support for more interfaces.
2019-02-22 17:29:15 +01:00
orbitcowboy
571e6bcecc
running astyle.
2019-02-22 16:15:08 +01:00
orbitcowboy
2ef7ae4d8e
wxwidgets.cfg: Added support for more interfaces.
2019-02-22 16:14:55 +01:00
Sebastian
6a3e1eeef7
Library configuration validation: Enhance relaxng file, fix *.cfg files. ( #1685 )
...
This fixes https://trac.cppcheck.net/ticket/8985 at least for the
function configuration.
Errors in configuration files found by the new relaxng file are fixed.
2019-02-22 15:31:52 +01:00
Steven Cook
71018d6d17
boost.cfg additions ( #1680 )
2019-02-22 15:21:06 +01:00
Sebastian
70ea6bfb9b
libcerror.cfg: Add libcerror configuration file. ( #1684 )
...
The function libcerror_error_set() is currently the function for which
daca@home most often reports a missing configuration (more than 80000
times).
Official repository of libcerror: https://github.com/libyal/libcerror
The library configuration has been tested with the library libvhdi:
ftp://ftp.se.debian.org/debian/pool/main/libv/libvhdi/libvhdi_20181227.orig.tar.gz
2019-02-22 12:52:07 +01:00
orbitcowboy
b06b744887
wxwidgets.cfg: Added support for more interfaces.
2019-02-21 14:55:04 +01:00
orbitcowboy
af9cbe23f9
std.cfg: Added support for more interfaces.
2019-02-20 10:02:01 +01:00
orbitcowboy
8a4dabfe02
wxwidgets.cfg: Added support for more interfaces.
2019-02-20 09:39:00 +01:00
amai2012
6d0a1f80b4
Add more interfaces and attributes
2019-02-18 21:48:41 +01:00
orbitcowboy
0e78547b62
wxwidgets.cfg: Added support for more interfaces.
2019-02-18 18:17:56 +01:00
orbitcowboy
0e03293a54
wxwidgets.cfg: Removed duplicate <leak-ignore/>-tag. One should be enough :-).
2019-02-18 18:12:37 +01:00
orbitcowboy
7f373ea158
wxwidgets.cfg: Added support for more interfaces.
2019-02-18 18:11:29 +01:00
versat
dc63cb9f98
gtk.cfg: Add more details for g_print() and g_printerr()
...
Reference:
https://developer.gnome.org/glib/stable/glib-Warnings-and-Assertions.html#g-print
2019-02-18 16:48:46 +01:00
versat
8fb4e7dde8
gtk.cfg: Add more details to g_object_unref() configuration
...
Reference:
https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html#g-object-unref
2019-02-18 16:16:10 +01:00
orbitcowboy
fa7a2ecd5a
wxwidgets.cfg: Added support for more interfaces.
2019-02-18 14:07:11 +01:00
orbitcowboy
a7b9d8de1b
std.cfg: Added support for std::ios_base::setf() and std::ostringstream::setf().
2019-02-18 12:20:34 +01:00
versat
8e11dc5b41
gtk.cfg: Add support for G_TYPE_CHECK_INSTANCE_CAST() macro
2019-02-18 11:37:19 +01:00
orbitcowboy
0284705551
wxwidgets.cfg: Added support for more interfaces.
2019-02-17 23:45:26 +01:00
orbitcowboy
831670c355
posix.cfg: Improved support for more macros and constants.
2019-02-17 23:35:34 +01:00
orbitcowboy
5135cbeecd
std.cfg: Added support for std::multiset::insert().
2019-02-17 23:15:46 +01:00