orbitcowboy
18b452111f
windows.cfg: Added constants from Rpcdce.h.
2018-05-24 15:54:01 +02:00
orbitcowboy
df8a5966bb
windows.cfg: Added constant definitions from AccCtrl.h
2018-05-24 15:49:28 +02:00
orbitcowboy
792d5a7cf4
windows.cfg: Added missing COM macros, defined at https://msdn.microsoft.com/en-us/library/windows/desktop/dd542715(v=vs.85).aspx .
2018-05-24 15:27:40 +02:00
Sebastian
8b94bfaf0a
windows.cfg: Add macros SUCCEEDED() and FAILED(). ( #1264 )
...
Somehow the opposite inner condition is not detected when macros are used. I created this ticket: https://trac.cppcheck.net/ticket/8596
2018-05-24 14:52:32 +02:00
Sebastian
aa3722feea
windows.cfg: Add lstrlen() configuration and tests. ( #1239 )
...
Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/ms647492(v=vs.85).aspx
2018-05-17 15:43:01 +02:00
orbitcowboy
3ad8fa5288
windows.cfg: Improved support for more types.
2018-05-16 16:26:40 +02:00
Sebastian
748f50cf85
windows.cfg: Add 32/64 bit time related functions and types. ( #1236 )
...
Fix declaration comments for _localtime32_s() and _localtime64_s().
Add functions _time32 and _time64, and types __time32_t and __time64_t.
References: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/localtime-s-localtime32-s-localtime64-s
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/time-time32-time64
2018-05-16 12:42:50 +02:00
Sebastian
fdc98e5665
std.cfg: Add rsize_t and errno_t configurations. ( #1229 )
2018-05-16 10:12:37 +02:00
orbitcowboy
4e38627a3d
windows.cfg: Improved support for Windows types (ref. https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx ).
2018-05-16 09:16:12 +02:00
orbitcowboy
98e64e76f7
windows.cfg: Improved support for Windows types (ref. https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx ).
2018-05-16 00:23:58 +02:00
orbitcowboy
3e3a8af267
windows.cfg: Improved support for Windows types (ref. https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx ).
2018-05-16 00:09:45 +02:00
orbitcowboy
d0089fe305
windows.cfg: Added missing PFLOAT definition.
2018-05-15 09:43:28 +02:00
Sebastian
50aa3620da
posix.cfg: Add minsize to readlink[at] function configurations ( #1216 )
2018-05-09 18:20:45 +02:00
Sebastian
90bc8b7404
posix.cfg: Add not-bool to last arguments where appropriate. ( #1204 )
...
Add not-bool function argument configuration where appropriate to catch errors like this: df4ca5fb72
2018-05-08 09:30:08 +02:00
Sebastian
0a95fb4b70
qt.cfg: Add some QStandardItem[Model] functions ( #1200 )
2018-05-02 21:03:55 +02:00
Sebastian
6208ee4af1
std.cfg: Add asctime_s function configuration with tests ( #1191 )
...
* std.cfg: Add asctime_s function configuration with tests
* std.cfg: Remove redundant/not needed not-bool attributes.
2018-04-27 23:51:16 +02:00
orbitcowboy
eb922a140a
wxwidgets.cfg: Added support for wxOVERRIDE.
2018-04-27 23:18:34 +02:00
Sebastian
4b104c4576
std.cfg: Add some missing C++11 declarations comments and not-bool attributes ( #1183 )
2018-04-25 08:54:36 +02:00
Sebastian
038064436d
std.cfg: Fix minsize configuration for vsprintf ( #1188 )
...
minsize with argvalue for arg 2 which is a char pointer makes no sense.
Changing it to minsize with strlen for arg 2 results in false positives
(and i think false negatives too).
In std.c a test with a valid vsprintf usage is added that would result
in a FP when minsize with strlen for arg 2 would be used.
2018-04-25 02:52:19 +02:00
Sebastian
40c42f2de7
qt.cfg: Add some functions used in the GUI, remove redundant const ( #1189 )
2018-04-24 16:37:55 +02:00
Sebastian
86d54c63c6
qt.cfg: Add more QString:: methods, fix errors. ( #1185 )
...
Additionally fix QString::sprintf() and QString::asprintf()
configurations.
Fix typo in quin[i]tptr.
Add warning for QString::sprintf and QString::vsprintf.
These functions are obsolete since Qt5, see
https://doc.qt.io/qt-5/qstring-obsolete.html
2018-04-24 12:23:23 +02:00
Sebastian
b53c4b2032
std.cfg: Add std::vector function configurations and tests ( #1180 )
2018-04-19 16:41:25 +02:00
versat
3a52f217d3
microsoft_sal.cfg: Add some missing annotations
2018-04-13 11:39:26 +02:00
Sebastian
9e623b15b1
windows.cfg: Add SetFilePointer() function configuration ( #1167 )
2018-04-12 16:09:11 +02:00
Sebastian
26e22a9f5c
qt.cfg: Add/Enhance Qt macros and functions ( #1164 )
...
Qt macro Q_D() is disabled for now until ticket 8479 gets fixed.
2018-04-12 13:40:02 +02:00
Sebastian
c39a3e3f1c
windows string macros: Handle _T, _TEXT and TEXT internally, add tests ( #1163 )
...
Remove TEXT() macro from windows.cfg and handle it internally where it
can be correctly simplified (Ansi vs. Unicode).
Also add handling of _TEXT() macro which is just a synonym for _T().
Add tests to verify correct function and macro simplification.
2018-04-12 08:52:31 +02:00
Sebastian
a36dad918a
std.cfg: Add std::make_pair() ( #1165 )
2018-04-11 19:16:55 +02:00
orbitcowboy
ef62207ada
std.cfg: Added more tests for some std::vector functions.
2018-04-11 17:21:26 +02:00
versat
8aa71d62a0
Revert "windows.cfg: Add macros _TEXT() and _T() ( #1161 )"
...
This reverts commit 9db64ca934
.
2018-04-11 08:37:15 +02:00
Sebastian
3fc53eb122
std.cfg: Add std::[w]string::compare() with tests ( #1162 )
2018-04-10 21:07:39 +02:00
Sebastian
9db64ca934
windows.cfg: Add macros _TEXT() and _T() ( #1161 )
2018-04-10 18:39:59 +02:00
orbitcowboy
270635eb1f
wxwidgets.cfg: Improved support for wxString to number conversion functions.
2018-04-07 20:27:02 +02:00
orbitcowboy
6e21d5ab84
wxwidgets.cfg: Added support for wxAtoi, wxAtol and wxAtof.
2018-04-04 21:29:55 +02:00
orbitcowboy
d7072136dc
wxwidgets.cfg: Added support for wxMenuBar::Append().
2018-03-31 13:34:40 +02:00
orbitcowboy
43aac4696e
wxwidgets.cfg: Added support for more functions.
2018-03-31 13:23:12 +02:00
Sebastian
3c5777fbc6
windows library: Add config for some Local* functions ( #1139 )
...
Add configuration and tests for LocalAlloc, LocalFree and some other
Local* functions.
LocalReAlloc is currently not configured as an alloc/dealloc function
(like realloc is not configured in std.cfg), i am not sure how to
correctly configure it.
2018-03-29 20:47:22 +02:00
Sebastian
bbb43155bf
qt.cfg: Fix false positives for function disconnect ( #1137 )
...
There is no problem with a null pointer as third argument. 0 is used as
wildcard and stands for all receivers for example.
2018-03-27 15:54:24 +02:00
orbitcowboy
98b4c5689f
wxwidgets.cfg: Improved support for more wxWidgets macros.
2018-03-27 14:24:59 +02:00
Sebastian
d3284d5d54
std.cfg: Add strncpy_s and strncat_s ( #1136 )
2018-03-26 18:38:26 +02:00
orbitcowboy
db045c2bf6
wxwidgets.cfg: wxBEGIN_EVENT_TABLE: Added 'void' to functions without arguments.
2018-03-26 16:07:10 +02:00
orbitcowboy
22291d2262
wxwidgets.cfg: Improved support for BEGIN_EVENT_TABLE and END_EVENT_TABLE-macros.
2018-03-26 16:02:48 +02:00
orbitcowboy
3b935af90e
wxwidgets.cfg: Added support for wxDECLARE_EVENT_TABLE.
2018-03-26 10:28:12 +02:00
Sebastian
670267f3d1
std.cfg: Smaller enhancements and fixes ( #1133 )
...
Add missing returnValue types where appropriate and fixed a few wrong
ones.
Add some missing function names (mostly where the "std::" version of the
function is missing).
Add documentation for some functions where it is missing.
Remove functions that do not exist in the standard: std::array::clear,
std::vector::push_front.
2018-03-23 22:58:20 +01:00
Sebastian
e38ec41ded
windows.cfg: Add some commonly used macros ( #1127 )
2018-03-22 08:31:50 +01:00
amai2012
e8cccf842f
Correct attributes for swab()
2018-03-20 11:40:50 +01:00
Daniel Marjamäki
7048f012a8
astyle formatting
...
[ci skip]
2018-03-19 20:33:36 +01:00
Daniel Marjamäki
7202787435
posix: remove function 'remove' that is also configured in std.cfg
2018-03-19 20:04:58 +01:00
Sebastian
8cff60b461
windows.cfg: Add missing documentation and returnValue types ( #1125 )
...
Additionally a few minor issues were fixed.
2018-03-19 16:18:48 +01:00
Daniel Marjamäki
6b00ca33bd
posix.cfg: Removed rename function as this is configured in std.cfg
2018-03-19 15:29:47 +01:00
amai2012
113f1efd72
Add configuration for swab() and sync()
2018-03-19 13:12:16 +01:00
Daniel Marjamäki
6e66150feb
posix.cfg: update configuration for rename
2018-03-19 11:51:19 +01:00
Paul Fultz II
4ef445e228
Add const to empty and size functions ( #1124 )
2018-03-19 09:58:22 +01:00
Daniel Marjamäki
7d0b5f7c8d
std.cfg: allow std::string::find() argument '\0'
2018-03-19 09:43:15 +01:00
Sebastian
65c85cbb53
Windows library: Add intrinsics __noop and __nop ( #1119 )
2018-03-15 12:31:20 +01:00
Sebastian
ed3cd2929e
Windows library: Enhance functions, add tests ( #1117 )
...
Enhance *Equal/*Compare/*Copy/*Move/*Zero/*Fill memory functions to
catch buffer access out of bounds errors and ignored return values.
Replaced some function configuration by according defines as it is done
in windows to avoid redundant (and error prone) configurations.
2018-03-14 15:01:37 +01:00
Sebastian
af4181f4d1
Qt library: Add missing podtype information ( #1115 )
...
The type qintptr was missing.
qlonglong, qulonglong and uchar have known sizes, so the sizes can be
specified.
2018-03-13 12:54:17 +01:00
Sebastian
7ba9ab7e4c
Gtk library: Add configuration to avoid syntax error, add test file ( #1109 )
...
Add configuration for G_UNLIKELY and G_LIKELY to avoid syntax errors
when these macros are used as condition without enclosing brackets.
Add test file to verify Gtk library configuration. Syntax check for the
test file is only done when Gtk+2.0 or Gtk+3.0 is found and working.
Tested on Cygwin and on Ubuntu 16.04.
2018-03-10 11:22:10 +01:00
Sebastian
c63cda4439
Qt library: Add missing comments and attributes and fixed some configurations ( #1110 )
2018-03-09 20:19:59 +01:00
Sebastian
152fc83bf0
Qt library: Add some function configurations ( #1105 )
2018-03-07 15:24:36 +01:00
orbitcowboy
d637d414e1
wxwidgets.cfg: Fixed wrong function names.
2018-03-05 13:49:12 +01:00
orbitcowboy
e824301cb5
wxwidgets.cfg: Fixed wrong function name.
2018-03-05 13:43:27 +01:00
orbitcowboy
402ca256be
wxwidgets.cfg: Added support for wxGrid::SetCellTextColour.
2018-03-05 13:12:24 +01:00
orbitcowboy
c31c54f1a4
wxwidgets.cfg: Improved support to for some wxSizerItem functions.
2018-03-05 00:25:47 +01:00
Martin Ettl
5bdab9e85a
wxwidgets.cfg: Improved support for some wxString functions.
2018-02-26 13:57:24 +01:00
Martin Ettl
6af8aa63f6
windows.cfg: Improved support for _tolower()/_toupper() functions.
2018-02-25 16:38:29 +01:00
Martin Ettl
1df0ac15a3
windows.cfg: Added support for _toupper() and _tolower().
2018-02-25 13:30:12 +01:00
Sebastian
51fce24d95
std.cfg: Add offsetof configuration ( #1097 )
2018-02-23 18:49:52 +01:00
Sebastian
346704b2e2
windows library: Mainly add socket functions, some other stuff and tests. ( #1095 )
...
Add Windows Socket 2 type/function configuration. There are still many
(microsoft specific) socket functions that are not yet configured.
Add configuration for GetUserName(), GetWindowText() and _fileno().
On Windows __wchar_t is a synonym for wchar_t, so an according define is
added.
2018-02-23 12:51:37 +01:00
Sebastian
1d14919649
wxwidgets: Fix syntax checking errors and warning ( #1093 )
...
wxDebugContext is only defined if wxUSE_DEBUG_CONTEXT is 1, so otherwise
just skip it for syntax checking because it will fail.
Change wxT to wxT_2 and add wxT_2 to the config to remove a warning
during syntax check and be more compatible with newer/older wxwidgets
versions.
Be more precise when replacing function like macros, fix redundant macro
definition for "_".
2018-02-21 12:20:56 +01:00
orbitcowboy
2ce8a3fc95
wxwidgets.cfg: Improved support for some deprecated functions.
2018-02-20 23:34:01 +01:00
orbitcowboy
2ab347606a
std.cfg: Improved support for some std::ofstream functions.
2018-02-20 22:36:45 +01:00
orbitcowboy
31399e556b
std.cfg: Improved configuration for ptrdiff_t.
2018-02-20 01:00:12 +01:00
orbitcowboy
2defdb7d4c
wxwidgets.cfg: Added more deprecated functions.
2018-02-14 09:53:40 +01:00
Sebastian
6a3dc6ad45
Qt library: Add some function configurations ( #1086 )
2018-02-12 08:36:50 +01:00
orbitcowboy
8ef56972da
wxwidgets.cfg: Added more deprecated-functions.
2018-02-11 16:58:39 +01:00
Sebastian
9eb6d38c06
std library: Add tests for wide character string functions, fix config ( #1085 )
...
Add equivalent tests for the wide character string functions like they
are already done for the normal string functions.
Fixed some issues with the configuration of the wide character string
functions that arised through the tests and were already fixed for the
normal string functions.
2018-02-09 21:17:01 +01:00
Daniel Marjamäki
7b3898f0f4
astyle formatting
...
[ci skip]
2018-02-08 21:58:43 +01:00
orbitcowboy
dccf96cb7b
wxwidgets.cfg: Added more deprecated functions.
2018-02-07 13:33:15 +01:00
orbitcowboy
dea662891a
wxwidgets.cfg: Added some functions from the deprecated wxWidets-list ( http://docs.wxwidgets.org/trunk/deprecated.html ).
2018-02-07 11:40:42 +01:00
Sebastian
14e45f9dcb
wxwidgets library: Fix/Enhance cfg, add test file ( #1082 )
...
Add test file for wxwidgets configuration, fix found issues and enhance
the cfg a bit:
Fix declarations in comments for wxLog* functions.
Merge the two wxTextFile::Create overloaded function configurations into
one that works for both now.
Removed use-retval attribute from wxBoxSizer::AddSpacer and
wxButton::SetDefault configuration since the functions have side effects
and there is no need to use the return value.
Add some function configurations, the macro _(str) and POD wxLogLevel.
2018-02-06 15:33:45 +01:00
Sebastian
80c2074ea7
cppcheck-cfg.rng: Allow return value by reference ( #1077 )
2018-02-06 08:33:20 +01:00
orbitcowboy
ff3c0993ac
std.cfg: Fixed FP for wcsxfrm(), mentioned in #6306 .
2018-02-05 22:13:08 +01:00
Sebastian
2e5d7a8391
Fix #8381 : false positives for swprintf_ and stprintf_s ( #1080 )
...
This fixes false positives because of wrong configuration in
windows.cfg.
Add tests in testio.cpp and test/cfg/windows.cpp to avoid regression.
2018-02-03 05:10:52 +01:00
Sebastian
c235930539
windows library: Add function configurations with tests ( #1079 )
...
Add function configurations with tests for:
GetLocalTime, GetSystemTime, GetLastError, SetLastError,
AllocateAndInitializeSid, FreeSid, HeapAlloc, HeapReAlloc, HeapFree,
HeapSize, HeapValidate and GetProcessHeap.
test/cfg/runtests.sh: Enable --inconclusive for the windows tests to
avoid some issues in the future.
2018-02-02 11:28:54 +01:00
Sebastian
1ad22ae231
windows library: Add strlwr/strupr configuration, fixing tests ( #1076 )
...
Add configuration for the deprecated strlwr/strupr functions with
according warning.
test/cfg/windows.cpp: Added tests for strlwr and strupr. Moved function
call that does not return (FreeLibraryAndExitThread) to the end of the
function to fix analysis that was silently aborted at that point
(reported as issue #8378 ).
2018-01-31 17:43:19 +01:00
Sebastian
7b02b45a76
posix library: Add strtok tests ( #1069 )
...
* posix library: Add strtok tests
In the posix library there is the same configuration for strtok but a
warning is added.
* posix.cfg: Remove redundant configuration for strtok, add comment.
2018-01-31 10:58:30 +01:00
Sebastian
c62abee07a
windows library: Add _malloca/_freea and _alloca configuration with tests ( #1071 )
2018-01-30 16:40:38 +01:00
Sebastian
4b5e4f989a
std config: Remove misspelled function "strbprk" ( #1065 )
...
Remove misspelled function configuration "strbprk" (also from the
tests). The correct function "strpbrk" is already configured and tested.
2018-01-29 17:28:44 +01:00
Sebastian
30b9391461
windows library: Enhance Event function configuration, add tests ( #1064 )
2018-01-29 14:08:56 +01:00
Sebastian
6b5805041b
std.cfg: Fixed remaining functions found to be redundant ( #1055 )
...
[std::]strtoimax and [std::]strtoumax:
They were nearly completely duplicates, i removed the ones with
less/missing configuration.
std::basic_string::empty:
It was found to be redundant because very likely someone forgot to
change "empty" to "clear" when copy&pasting the function names. The
empty function in all these clear functions makes no sense, and the
clear function also was missing.
std::queue::empty and std::array:empty:
They were both twice in the same function name list.
std::string::size, std::wstring::size:
They were already configured with many other size functions above.
std::basic_string::size:
This entry was twice in the same function name list directly one after
another. Very likely one of them should be the length function, which
does simply the same but was missing in the std.cfg.
2018-01-24 15:31:55 +01:00
Sebastian
26ff750848
windows.cfg: Add Mutex function configurations ( #1051 )
2018-01-24 09:50:05 +01:00
Sebastian
d46cd46d0f
windows.cfg: Add _countof macro configuration ( #1047 )
...
By telling cppcheck about the Microsoft Windows _countof() macro it is
now able to detect out of bounds array accesses like this:
wchar_t buf[10];
for(size_t i = 0; i <= (_countof(buf)); ++i) {
buf[i] = L'\0'; // (error) Array 'buf[10]' accessed at index 10, which
is out of bounds.
}
2018-01-23 15:45:06 +01:00
Sebastian
a4deca3c98
posix.cfg: Remove redundant entries ( #1049 )
...
I carefully removed the duplicate/redundant entries with less/missing
configuration, so no information is lost.
2018-01-22 17:21:07 +01:00
Sebastian
4dbeffd615
std.cfg: Fix redundant function names ( #1050 )
...
This fixes some more redundant function configurations. Seems like they
are the result of copy & paste errors.
2018-01-22 17:18:36 +01:00
Sebastian
b78d714037
posix.cfg: access(): Removed redundant configuration, added tests ( #1048 )
...
I intentionally removed the second access() configuraion because it was
missing the use-retval attribute. But calling access() without using the
return value is absolutely senseless.
I added tests to posix.c to verify the correct configuration of
access().
2018-01-22 14:54:14 +01:00
Sebastian
de7aa8f513
Fix #7504 : posix: open() was twice in configuration file ( #1032 )
...
* Fix #7504 : posix: open() was twice in configuration file
This fixes ticket #7504 : Problems with the open function were not always
detected because the open function was twice in posix.cfg and only the
second configuration was used by cppcheck. Like suggested now only
one configuration is used and the third parameter has a default value
and is thereby optional.
use-retval has been removed to avoid duplicate warnings because the
alloc/dealloc configuration already warns about unused retval.
According tests to verify that open is configured
correctly now have been added to test/cfg/posix.c.
* posix.cfg: open(): Add TODO for use-retval configuration
2018-01-18 13:56:36 +01:00
Sebastian
d08709d10f
windows.cfg: Add Semaphore function configuration ( #1038 )
2018-01-18 03:39:15 +01:00
Sebastian
b5b84d1737
gnu.cfg Remove redundant function and resource configurations ( #1036 )
...
The epoll_* function and resource configurations somehow where added
twice.
This removes all duplicates (they have the same
attributes/configuration).
2018-01-16 17:13:15 +01:00
Sebastian
5e74012e81
windows.cfg: Fix redundant function configurations ( #1035 )
...
Detected some errors when checking for redundant function
configurations:
The functions that receive an additional argument "locale" have the
suffix "_l".
Sadly the MSDN shows wrong declarations that are missing the "_l", i
guess this caused the wrong names (I have reported it to Microsoft, but
do not expect that this is fixed soon).
The function configuration for GetModuleHandle* existed twice, i have
merged them, and it looks sane for me now.
2018-01-16 15:43:36 +01:00
Sebastian
2e2f8a00d6
posix.cfg: Fix getprotobynumber configuration ( #1034 )
...
It seems to be a copy & paste error.
The comment, the return value, the warn entry and the rest of the
configuration suggest that this must be the getprotobynumber function
configuration and not the getservbyport configuration which would be
redundant as it is configured a bit later.
2018-01-16 10:46:30 +01:00
Sebastian
6bd524baaf
std.cfg: Fix copy&paste error or typo ( #1033 )
...
* Fixed copy&paste error or typo
It should be std::sinf here. std::sinl is described directly in the next function description and does not make sense here because of the return type.
* std.cfg: Fix another copy&paste error or typo
It should be std::tanf here.
2018-01-16 08:36:04 +01:00
Sebastian
d0bbd0535f
windows.cfg: Add lstrcat configuration ( #1028 )
...
On the MSDN there is a prominent warning to not use this function, so i
decided to add a warn entry. See
https://msdn.microsoft.com/de-de/library/windows/desktop/ms647487(v=vs.85).aspx
for details.
2018-01-12 21:41:23 +01:00
Sebastian
dc1c60f97f
windows.cfg: Add CRITICAL_SECTION handling functions. ( #1023 )
...
* windows.cfg: Add CRITICAL_SECTION handling functions.
* windows.cfg: Add missing function InitializeCriticalSectionEx
* windows.cfg: Fix missing not-uninit entry for DeleteCriticalSection.
2018-01-11 14:31:38 +01:00
Sebastian
dc0bcce3c2
windows.cfg: Add *Event functions configuration ( #1025 )
2018-01-10 15:38:02 +01:00
versat
70fcf5af87
Fix windows.cfg: GetProcAddress needs use-retval
...
While it was good to remove use-retval from the LoadLibrary* functions,
it is still needed for GetProcAddress. A call of GetProcAddress without
using the return value does not make sense.
2018-01-05 17:22:33 +01:00
versat
a1cc44eb21
windows.cfg: Add Load/FreeLibrary() functions
2018-01-05 11:22:36 +01:00
orbitcowboy
a01c6c95eb
std.cfg: Added missing non-namespace configuration for stoi()-like functions.
2017-12-15 21:42:39 +01:00
orbitcowboy
c799206c73
windows.cfg: Fixed FN for some strncpy functions.
2017-12-14 15:43:15 +01:00
orbitcowboy
d63897ff21
posix.cfg: Added support for stpncpy().
2017-12-08 21:36:54 +01:00
orbitcowboy
cdeb7fb25f
posix.cfg: Added support for wcpncpy.
2017-12-08 21:28:48 +01:00
orbitcowboy
b14146b853
std.cfg: Improved configuration of wcsncpy.
2017-12-08 21:21:26 +01:00
orbitcowboy
928727534a
posix.cfg: Improved configuration for bcopy(): Warn for potential buffer access out of bounds issues.
2017-12-08 14:53:14 +01:00
orbitcowboy
77c43f2d24
#8293 : Applied fix from versat.
2017-12-08 09:33:54 +01:00
Sebastian
27151f5014
MS SAL config: add more defines for annotations ( #1006 )
...
Add annotations which are not so well documented, but could be/are used
in custom code.
2017-11-29 08:25:43 +01:00
Sebastian
e9815bd523
windows.cfg: Add Sleep and SleepEx ( #1007 )
...
Add configuration for Sleep and SleepEx on Windows.
Not sure how to implement that the functions do not return when the first parameter is INFINITE.
2017-11-29 08:22:13 +01:00
Marcel Raad
8b6c14aa48
windows.cfg: fix GetPrivateProfileString nullPointer FP
...
The first three arguments can be NULL.
Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724353.aspx
2017-11-23 11:05:49 +01:00
Daniel Marjamäki
1e870762a3
std.cfg: open/save with GUI
2017-11-12 15:17:58 +01:00
Daniel Marjamäki
1699775c3c
std.cfg: Save from GUI
2017-11-12 15:11:37 +01:00
Daniel Marjamäki
511d14a051
astyle
...
[ci skip]
2017-11-05 17:56:24 +01:00
Daniel Marjamäki
4d8f069907
Renamed pro c sql to embedded sql
2017-11-03 21:04:12 +01:00
Daniel Marjamäki
4f6f1e20dd
Hide Pro*C SQL simplification. Use pro_c_sql.cfg library file if this is wanted.
2017-11-03 13:02:29 +01:00
pmisik
9c8b0c2c90
Workaround for syntax error on Microsoft specific __pragma keyword ( #982 )
...
__pragma is Microsoft specific keyword equivalent to C99 _Pragma operator
https://msdn.microsoft.com/en-us/library/d9x1s805.aspx
https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html
http://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-via-pragmas
It seems cppcheck does not support _Pragma at the moment.
This change will fix syntax error on code that looks like this:
#define MY_DEPRECATED_ENUM(X) X __pragma(deprecated(X))
enum myEnum
{
myEnum_1 = 1,
MY_DEPRECATED_ENUM(myEnum_2) = 2,
myEnum_3,
myEnum_4,
};
int main()
{
myEnum a = myEnum_3;
printf("%d", a);
return 0;
}
This change was fiscussed here: https://sourceforge.net/p/cppcheck/discussion/general/thread/1808a46b/
2017-10-25 14:40:00 +02:00
orbitcowboy
b73d4ce62e
wxwidgets.cfg: There is no need to use the return value from wxMenu::Append().
2017-10-20 11:01:37 +02:00
orbitcowboy
589ce19822
Added support for std::ios::clear.
2017-10-18 14:16:36 +02:00
orbitcowboy
f1e5f64690
wxwidgets.cfg: Added support for wxMenu:Append().
2017-10-17 10:59:23 +02:00
orbitcowboy
51eb4ffe9b
std.cfg: Added support for std::string::reserve().
2017-10-15 11:22:42 +02:00
orbitcowboy
a886f4f649
std.cfg: Added support for std::string::erase().
2017-10-15 11:17:17 +02:00
orbitcowboy
db787369b9
#8243 : Changed order of includes. Moved mathlib include at first place.
2017-10-14 16:30:10 +02:00
Daniel Marjamäki
81beb47e5c
std.cfg: Added std::...::insert configurations
2017-10-13 15:39:08 +02:00
orbitcowboy
3c96924c56
std.cfg: Improved support for std::string::resize().
2017-10-13 10:22:59 +02:00
orbitcowboy
43de937a4e
Removed not needed <use-retval/> from std::string::resize().
2017-10-13 10:15:53 +02:00
orbitcowboy
8160cc2fc6
std.cfg: Improved support for find, std::string functions.
2017-10-13 09:58:23 +02:00
orbitcowboy
3eb84fa980
std.cfg: Warn when parameters of std::swap() are not initialized.
2017-10-11 15:54:49 +02:00
orbitcowboy
dc2aff42a8
std.cfg: Added support for std::string::rfind().
2017-10-11 15:50:59 +02:00
orbitcowboy
5bc61e35a0
std.cfg: Added support for std::swap.
2017-10-11 13:12:00 +02:00
Daniel Marjamäki
29a0dfc152
std.cfg: add configuration for std::string::find_first_of and std::string::find_last_of
2017-10-11 08:33:12 +02:00
Daniel Marjamäki
247810a186
qt.cfg: split configuration for QSettings::setValue and QSettings::value
2017-10-11 08:30:10 +02:00
Daniel Marjamäki
7f9571c4e6
std: added std find methods
2017-10-10 22:15:56 +02:00
Daniel Marjamäki
4009f11475
qt: Add configurations for QSettings::setValue, QSettings::value
2017-10-10 22:05:00 +02:00
Daniel Marjamäki
917317ad3d
cppcheck-lib.cfg: fix invalid XML
2017-10-10 11:27:54 +02:00
Daniel Marjamäki
4afa8ef9d7
cppcheck-lib.cfg: Added cfg file for internal use
2017-10-10 11:25:30 +02:00
orbitcowboy
ee6e4c3ccd
std.cfg: Fixed FP in std::string:swap().
2017-10-07 00:49:09 +02:00
orbitcowboy
c978e66936
std.cfg: Added support for std::string:swap().
2017-10-07 00:46:34 +02:00
orbitcowboy
702a213175
std.cfg: Added support for std::vector::at().
2017-10-06 17:02:25 +02:00
orbitcowboy
4b4796a35f
std.cfg: Added support for std::string::push_back().
2017-10-06 16:51:10 +02:00
orbitcowboy
91202c47e6
windows.cfg: Added more returnValue-types.
2017-10-05 11:55:27 +02:00
orbitcowboy
cbc95c5662
gnu.cfg: Added more returnValue-types.
2017-10-05 11:45:46 +02:00
orbitcowboy
1a4c25243c
posix.cfg: Added more returnValue-types.
2017-10-05 11:38:11 +02:00
orbitcowboy
beb9223b6f
std.cfg: Added more returnValue-types.
2017-10-05 10:23:48 +02:00
orbitcowboy
f3d5e526d0
std.cfg: Added more returnValue-types.
2017-10-05 09:58:12 +02:00
orbitcowboy
0d888ba82d
std.cfg: Added more return value types.
2017-10-03 09:39:43 +02:00
orbitcowboy
c133e1d6f3
std.cfg: Added more returnValue-types.
2017-10-02 19:15:38 +02:00
orbitcowboy
e9b4cbbd87
std.cfg: Added more returnValue-types.
2017-10-02 17:01:10 +02:00
Alexander Mai
8d4c2d3145
Fix typo
2017-09-26 20:59:23 +02:00
orbitcowboy
9647793af9
wxwidgets.cfg: Added support for some wxStaticBoxSizer functions.
2017-09-21 14:47:24 +02:00
orbitcowboy
7e6aeb6394
wxwidgets.cfg: Added support for some wxBoxSizer functions.
2017-09-21 14:37:42 +02:00
orbitcowboy
fbb5c3b942
wxwidgets.cfg: Added support for some wxSpinCtrlDouble functions.
2017-09-21 11:29:59 +02:00
orbitcowboy
c0f92b2409
posix.cfg: Added support for tcsendbreak.
2017-09-19 21:25:19 +02:00
orbitcowboy
7a56cfbb66
windows.cfg: Added support for more functions.
2017-09-19 21:17:15 +02:00
orbitcowboy
c4e2ca2996
posix.cfg: Added support of ioctl.
2017-09-19 21:12:03 +02:00
orbitcowboy
6d69845737
posix.cfg: Added support for some <termios.h>-functions.
2017-09-19 15:10:37 +02:00
Daniel Marjamäki
b9b47809f9
Fixed #8197 (iscast: '(b)&1' is not a cast)
2017-09-08 22:52:16 +02:00
orbitcowboy
7e92535b59
std.cfg: Improved support for std::ios std::ios_base std::ofstream and std::ostream functions.
2017-09-08 16:43:40 +02:00
orbitcowboy
27be75b224
std.cfg: Improved support for returnValue types for some math functions.
2017-09-05 16:27:02 +02:00
orbitcowboy
94c1809f26
std.cfg: Improved support for returnValue types for some math functions.
2017-09-05 16:01:33 +02:00
orbitcowboy
095e435031
wxwidgets.cfg: Added support for some wxTextFile functions.
2017-09-04 14:52:10 +02:00
orbitcowboy
4734301bef
wxwidgets.cfg: Added more #defines from wx/defs.h
2017-08-29 19:51:15 +02:00
orbitcowboy
35b94a1810
wxwidgets.cfg: Improved support for some wxWidgets #defines.
2017-08-29 01:13:54 +02:00
Alexander Mai
dcc962ec37
Add configuration file for BSD os family
2017-08-28 22:48:39 +02:00
Daniel Marjamäki
0496e29910
astyle formatting
...
[ci skip]
2017-08-15 11:27:49 +02:00
orbitcowboy
06c798a81a
Cleanup comments. There are no functional changes.
2017-08-11 16:58:21 +02:00
orbitcowboy
b28b7712c1
wxwidgets.cfg: Added support for some wxColour functions.
2017-08-11 16:42:43 +02:00
orbitcowboy
cf32e565c2
wxwidgets.cfg: Added support for some wxButton-functions.
2017-08-08 17:00:29 +02:00
orbitcowboy
fb925069a5
wxwidgets.cfg: Added <use-retval/>-flag for getter-functions.
2017-08-07 16:58:19 +02:00
orbitcowboy
8f262c2c90
wxwidgets.cfg: Added support for some wxRadioBox-functions.
2017-08-07 16:45:07 +02:00
orbitcowboy
d409934bd3
wxwidgets: Added support for wxTimer functions.
2017-08-03 13:56:31 +02:00
orbitcowboy
3c7f6cf9c8
wxwidgets.cfg: Added support for some wxSlider functions.
2017-08-03 10:34:16 +02:00
orbitcowboy
bf9980b7e0
windows.cfg: Added more returnValue-types.
2017-08-03 09:57:12 +02:00
orbitcowboy
72f5c11143
wxwidgets.cfg: Added more returnValue-types.
2017-08-02 14:48:27 +02:00
orbitcowboy
cc210679a5
gnu.cfg: Added returnValue-types.
2017-08-02 14:34:06 +02:00
orbitcowboy
40985ada14
posix.cfg: Added more returnValue-types.
2017-08-02 14:11:50 +02:00
orbitcowboy
4024420a4d
posix.cfg: Added more returnValue-types and increased function support.
2017-08-02 09:26:16 +02:00
orbitcowboy
d2698733c3
posix.cfg: Added returnValue-types for some functions.
2017-08-01 20:35:30 +02:00
orbitcowboy
7ab8d758c5
std.cfg: Added more returnValue-types.
2017-08-01 14:33:12 +02:00
Daniel Marjamäki
d1dfe21121
astyle formatting
...
[ci skip]
2017-07-29 18:53:38 +02:00
orbitcowboy
49805d386b
wxwidgets.cfg: Improved cfg for some wxWidgets functions.
2017-07-29 13:16:51 +02:00
Daniel Marjamäki
62b84e31ab
ValidateCFG: Fix 'valid' pattern
2017-07-28 19:46:55 +02:00
orbitcowboy
22abfb811a
wxwidgets.cfg: Removed not needed formatstr-tag.
2017-07-28 18:05:24 +02:00
orbitcowboy
26f65689a4
wxwidgets.cfg: Added support for wxSpinCtrl::SetBase().
2017-07-28 16:56:58 +02:00
orbitcowboy
ad14d43aaf
std.cfg: Added return-type for some functions.
2017-07-28 16:47:17 +02:00
orbitcowboy
b2fcdf8a8a
std.cfg: Added return-type for some functions.
2017-07-28 16:26:19 +02:00
orbitcowboy
adab48a0e1
wxwidgets.cfg: Improved support for wxSpinCtrl getters.
2017-07-26 12:05:52 +02:00
Daniel Marjamäki
7875054f36
Fixed #8078 (cppcheck-cfg.rng outdated)
2017-07-23 12:09:41 +02:00
orbitcowboy
39ca654519
posix.cfg: Fixed wrong index. The memory is allocated at the 4'th parameter.
2017-07-17 15:21:42 +02:00
orbitcowboy
c62e46dc6e
posix.cfg: Report memory leak when memory is allocated with getaddrinfo() and it is not freeded with freeaddrinfo().
2017-07-17 15:17:20 +02:00
Rick van der Sluijs
2c3e274f0a
- Added more string constant encapsulation macros
...
- Added more format string functions (including log functions)
- Added assert macros
- Added type limits and definitions
2017-07-14 22:18:02 +02:00
Daniel Marjamäki
101303a179
Fixed #6513 (Resource leak: hSocket - false positive / enhancement needed)
2017-07-02 08:39:48 +02:00
Daniel Marjamäki
5fb59a8063
windows.cfg: reordering of podtypes and defines
2017-07-02 08:38:07 +02:00
amai2012
947ace6194
Fix false positive
2017-06-22 09:23:15 +02:00
Alexander Mai
7a0f05aaa5
Correct some wrong attributes causing false positives. Add more interfaces
2017-06-08 22:33:41 +02:00
Alexander Mai
d818b4ace1
Add more interfaces
2017-06-06 23:21:05 +02:00
Alexander Mai
a350e6c7e8
Add more interfaces
2017-06-02 22:58:39 +02:00
Alexander Mai
dc83f6783e
Fix attributes, add some interfaces
2017-06-02 00:59:13 +02:00
Alexander Mai
5755ac9eeb
Add initial configuration file for Motif
2017-06-02 00:38:29 +02:00
Alexander Mai
389b4cdf99
Remove atrribute to cure FP. Run astyle
2017-05-29 20:04:34 +02:00
alexander
49a28d00f9
Add some interfaces + small changes to existing ones
2017-05-29 00:47:24 +02:00
Daniel Marjamäki
26ec339120
wxwidgets.cfg: Define macros which don't necessarily require semicolons at the end
2017-05-28 22:16:44 +02:00
Alexander Mai
1225b4b25a
Fix false positive
2017-05-03 16:34:20 +02:00
Alexander Mai
40a5f78154
Change attributes for 2nd arg of GetTempPath
2017-05-01 20:43:03 +02:00
Alexander Mai
765a9c8660
Remove attribute from _wfopen_s,_tfopen_s to avoid false positives
2017-05-01 19:28:24 +02:00
orbitcowboy
19ce65217e
#8033 : Fixed FP and removed not-uninit-configuration from std.cfg.
2017-05-01 16:53:44 +02:00
Alexander Mai
df19d2ba5b
Remove attribute from GetTempPath,GetTempPathW,GetTempPathA
2017-04-30 20:38:28 +02:00
Alexander Mai
14be611a7e
Correct configuration to allow NULL as 2nd argument to read/write. Whether it's a legal value depends on the 3rd argument
2017-04-29 17:57:16 +02:00
orbitcowboy
0b6c726439
posix.cfg: Do not allow the second parameter of read and write to be a NULL pointer.
2017-04-26 14:25:14 +02:00
Daniel Marjamäki
6b685f5a80
qt.cfg: Add configuration for QStringList
2017-04-23 22:12:50 +02:00
Daniel Marjamäki
5eca129865
qt.cfg: Added QList configuration
2017-04-23 20:41:34 +02:00
Daniel Marjamäki
07726c1037
std.cfg: update some c++ configs
2017-04-23 19:40:45 +02:00
Daniel Marjamäki
429061b59d
qt.cfg: updated cfg for connect/disconnect/tr/SIGNAL/SLOT
2017-04-22 20:29:37 +02:00
Daniel Marjamäki
53b77aafef
qt.cfg: added some often used QString methods
2017-04-22 19:41:28 +02:00
Daniel Marjamäki
5c7b1c7ff2
astyle formatting
...
[ci skip]
2017-04-21 21:03:01 +02:00
PKEuS
5027810a79
Added sfml.cfg
...
std.cfg: Removed redundant <function> definition
2017-04-21 11:51:40 +02:00
Daniel Marjamäki
1422487769
astyle formatting
...
[ci skip]
2017-04-20 17:43:28 +02:00
orbitcowboy
c44b055fc1
windows.cfg: Added support for CreateDirectory and RemoveDirectory functions.
2017-04-19 09:42:32 +02:00
orbitcowboy
dd0158ee63
std.cfg and windows.cfg: Improved support for localtime functions.
2017-04-19 09:27:24 +02:00
Daniel Marjamäki
296f250caa
qt.cfg: configure some QString methods
2017-04-18 19:21:34 +02:00
Daniel Marjamäki
c229754a70
qt.cfg: Add configuration for QString
2017-04-18 18:04:27 +02:00
PKEuS
094b7a706f
std.cfg: Added std::streamoff and imaxdiv_t
2017-04-18 10:46:27 +02:00
orbitcowboy
16f9e1646c
windows.cfg: Improved support for string compar functions.
2017-03-31 08:40:41 +02:00
orbitcowboy
f31e2e6696
windows.cfg: Improved support for string-copy functions.
2017-03-31 08:25:56 +02:00
orbitcowboy
93816a63a8
windows.cfg: Improved support for stat() and fstat() functions.
2017-03-29 13:30:12 +02:00
Daniel Marjamäki
d6b6f31fbd
Fixed #7956 (Add Q_ENUM define in qt.cfg)
2017-03-22 07:32:31 +01:00
orbitcowboy
9f66908971
Fixed #7955 : False positive about invalid fseek argument.
2017-03-21 14:23:31 +01:00
orbitcowboy
6111b38ebb
std.cfg and windows.cfg: Improved support for freopen-functions.
2017-03-19 18:23:31 +01:00
orbitcowboy
468fadff86
std.cfg: Cleanup wrong configuration.
2017-03-15 09:39:11 +01:00
orbitcowboy
9f124b295e
std.cfg: Improved support container functions.
2017-03-15 08:49:08 +01:00
PKEuS
1a7265cd7e
std.cfg: Added lots of container functions, string functions and three operands overload of std::hypot
2017-03-14 17:52:35 +01:00
orbitcowboy
e569d96169
windows.cfg: Added support for _tcsftime().
2017-03-08 08:53:05 +01:00
orbitcowboy
0bd46ec831
windows.cfg: Added support for _strftime_l() and _wcsftime_l().
2017-03-08 08:49:13 +01:00
orbitcowboy
c87e83575a
std.cfg: Added support for std::copy().
2017-03-07 10:54:44 +01:00
orbitcowboy
428c376b61
wxwidgets.cfg: Added support for more wxString functions.
2017-03-06 16:52:55 +01:00
orbitcowboy
e3d879e43d
std.cfg: Improved support for some std::wstring functions.
2017-03-06 16:40:49 +01:00
orbitcowboy
bf68638771
std.cfg: Improved support for string to (int|double|...)-functions.
2017-03-06 16:36:14 +01:00
Daniel Marjamäki
603171201a
added some more configuration for standard containers
2017-03-05 22:03:12 +01:00
Daniel Marjamäki
34dd4935d9
updated STL configuration
2017-03-05 19:47:47 +01:00
Daniel Marjamäki
ddc73008a6
std.cfg: update configuration for STL containers
2017-03-05 18:31:03 +01:00
Daniel Marjamäki
e560ad1616
update std::string config
2017-03-05 18:19:49 +01:00
Daniel Marjamäki
339f861804
std.cfg: Configure return type for std::string::empty()
2017-03-05 11:07:14 +01:00
Daniel Marjamäki
2f2ac46243
Replaced hardcoding for char16_t and char32_t with configuration
2017-03-04 16:30:42 +01:00
VULCAIN\\Teddy
930aa3c5b2
Fixed #837 (configure istream::getline in std.cfg) Adds some rules for getline, get and readsome methods of std::istream class
2017-03-04 08:54:34 +01:00
orbitcowboy
fef52f2ea1
windows.cfg: Added support for _mbsrchr().
2017-02-23 13:43:30 +01:00
orbitcowboy
b4733a76bd
windows.cfg: Added missing _tcsclen_l() function name.
2017-02-23 13:25:50 +01:00
orbitcowboy
6ea520a561
windows.cfg: Added support for strlen()-functions.
2017-02-23 13:23:53 +01:00
orbitcowboy
245da75a2f
windows.cfg: Added support for more strdup and malloc functions.
2017-02-23 08:56:13 +01:00
orbitcowboy
6db99d105f
windows.cfg: Added support for FindFirstFileEx.
2017-02-22 15:52:39 +01:00
orbitcowboy
26f0ee6703
windows.cfg and gnu.cfg: Improved support for strtok-functions.
2017-02-22 10:27:05 +01:00
PKEuS
7de055361c
windows.cfg: Added several functions
2017-02-07 19:08:24 +01:00
amai2012
1d0b647072
#7915 false positive: "Memory leak" error after mmap return MAP_FAILED. define MAP_FAILED in posix.cfg.
2017-02-07 12:14:55 +01:00
orbitcowboy
beb72c2583
Revert changes from 9cb0941df2
.
2017-02-02 15:53:52 +01:00
orbitcowboy
9cb0941df2
std.cfg: Take the return value from fread() into account.
2017-02-02 13:33:06 +01:00
PKEuS
ae444d7e78
windows.cfg: Added PostMessage()
2017-02-02 13:23:37 +01:00
alexander
d846217641
#7906 false positive: (error) Null pointer dereference (tempnam)
2017-01-29 17:09:48 +01:00
amai2012
982991fabe
#7878 FP : Buffer is accessed out of bounds when using strncmp() with short string literal. Correct std.cfg
2017-01-11 17:45:24 +01:00
Daniel Marjamäki
c2a1c4056f
astyle formatting
...
[ci skip]
2017-01-06 12:04:36 +01:00
alexander
8eeb09ba88
Add typeid to library
2017-01-05 20:38:56 +01:00
orbitcowboy
00fd38967f
windows.cfg: SetEnvironmentVariable() the second parameter is allowed to be NULL.
2016-12-22 13:46:12 +01:00
orbitcowboy
df5c815b1b
windows.cfg: Added support for _strnicmp() functions.
2016-12-22 11:19:01 +01:00
Daniel Marjamäki
b9c65f0540
std.cfg: null pointer is allowed as first argument to wctomb
2016-12-20 16:08:28 +01:00
orbitcowboy
f8cfa72159
std.cfg: Added support for C11 memcpy_s() and memcpy_s() functions.
2016-12-16 17:23:42 +01:00
orbitcowboy
daacc0959e
windows.cfg: Updated comments. There are no functional changes.
2016-12-16 17:22:37 +01:00
orbitcowboy
227049a6b1
windows.cfg: Added support for _swap().
2016-12-16 16:58:42 +01:00
orbitcowboy
a694ebc602
std.cfg: Added a valid-tag for read streamsize.
2016-12-13 13:10:40 +01:00
orbitcowboy
f89c606031
std.cfg: Added missing argument numbers to va_arg, va_copy, va_end and va_start.
2016-12-13 11:39:10 +01:00
orbitcowboy
3598f7f2ca
std.cfg: Added more <valid>-tags.
2016-12-12 13:45:16 +01:00
orbitcowboy
1ee68a9d2a
std.cfg: Added more <valid>-tags.
2016-12-12 13:35:41 +01:00
orbitcowboy
c985723869
std.cfg: Added support for C11 function memset_s().
2016-12-12 13:31:10 +01:00
orbitcowboy
d6aef86d70
std.cfg: Added minsize configuration to strncmp() and wcsncmp().
2016-12-12 11:12:30 +01:00
orbitcowboy
af1398900c
windows.cfg: Improved support for _open() and _close() functions.
2016-12-06 13:50:45 +01:00
orbitcowboy
6829a8da14
posix.cfg and windows.cfg: Added support for memccpy().
2016-12-05 16:46:49 +01:00
orbitcowboy
942b5cdc20
windows.cfg: Improved configuration by using <valid>-tags.
2016-12-05 10:43:07 +01:00
orbitcowboy
e8aede649a
gnu.cfg: Improved configuration by using <valid>-tags.
2016-12-05 10:37:13 +01:00
orbitcowboy
7522b1b108
posix.cfg: Improved configuration by using <valid>-tags.
2016-12-05 10:30:11 +01:00
orbitcowboy
9b611f5351
std.cfg: Improved configuration by using <valid>-tags.
2016-12-05 09:48:20 +01:00
orbitcowboy
29a6a39fb5
gnu.cfg: Improved configuration of memmem().
2016-12-04 20:30:33 +01:00
Daniel Marjamäki
a5e214ab3f
astyle formatting
...
[ci skip]
2016-12-04 19:15:32 +01:00
amai2012
abf59af87d
Add a couple of interfaces
2016-12-04 12:24:26 +01:00
orbitcowboy
afb962575b
windows.cfg: Added support for _mbsstr(),_tcsstr() and _mbsstr_l().
2016-12-02 09:06:02 +01:00
orbitcowboy
df0f5e3f39
windows.cfg: Removed not needed <use-retval/> configurations.
2016-11-29 10:07:35 +01:00
PKEuS
4a7b81218b
std.cfg: Combined definitions of fget(w)c and get(w)c, removing wrong <use-retval/> from get(w)c
2016-11-29 09:37:00 +01:00
orbitcowboy
b964513611
windows.cfg: Added support for more functions like SetupDiGetClassDevs().
2016-11-29 09:18:08 +01:00
orbitcowboy
7b1ed9f415
windows.cfg and posix.cfg: Added more <use-retval/> configurations.
2016-11-28 16:58:33 +01:00
orbitcowboy
fa379b50b1
std.cfg: Cleanup fget[w]c() configuration.
2016-11-28 11:19:36 +01:00
orbitcowboy
55ae961ac2
std.cfg and windows.cfg: Improved support for <use-retval/> for functions like ftell(), [f]get[w]c().
2016-11-26 21:31:15 +01:00
orbitcowboy
b0d09926fb
std.cfg: Take return value into accoutn for ftell().
2016-11-26 18:36:05 +01:00
orbitcowboy
97b8b1ffc2
std.cfg: Take return value into accoutn for freopen().
2016-11-26 18:33:42 +01:00
orbitcowboy
83d0b42c66
windows.cfg: Ensure the return value of _wfopen_s() and _tfopen_s() is taken into account as well.
2016-11-26 16:25:19 +01:00
orbitcowboy
d5fb6da9a4
std.cfg: Ensure the return value of fopen_s() is taken into account.
2016-11-26 16:22:09 +01:00
orbitcowboy
5b1f112195
windows.cfg: Added support for GetTempPath().
2016-11-22 08:32:11 +01:00
orbitcowboy
e94407fbce
windows.cfg: Added support for more functions.
2016-11-18 11:28:34 +01:00
orbitcowboy
a4acfaa230
std.cfg: Added more <valid>-tags.
2016-11-08 09:36:24 +01:00
orbitcowboy
07aaf9999b
std.cfg: Merged identical configurations. There are no functional changes.
2016-11-08 09:08:04 +01:00
orbitcowboy
e3a9899983
std.cfg: Added <returnValue> support for wcslen().
2016-11-08 09:05:17 +01:00
orbitcowboy
d361ca7b61
std.cfg: Improved support for <returnValue> for functions like isalpha() etc.
2016-11-07 11:01:19 +01:00
orbitcowboy
0b643a2429
std.cfg: Use XML-CDATA sections to avoid usage of escape characters in <returnValue>-tags.
2016-11-07 09:43:42 +01:00
orbitcowboy
ed453d24da
std.cfg: Added returnValue support for iswdigit().
2016-11-04 14:20:59 +01:00
orbitcowboy
75124317e9
std.cfg: Added returnValue support for iswblank().
2016-11-04 14:03:48 +01:00
Daniel Marjamäki
bd37504383
Updated std.cfg
2016-11-01 15:33:17 +01:00
Daniel Marjamäki
dbb999fc13
Fix std.cfg
2016-11-01 15:19:24 +01:00
Daniel Marjamäki
0e9810b7f6
CheckStl: validation of iterators returned from functions
2016-11-01 14:08:42 +01:00
Daniel Marjamäki
7f71ad8360
Test std::find()
2016-11-01 12:25:23 +01:00
Boris Egorov
651148519e
Fixes #7787 (Mistyped container number in std.cfg for std::equal etc.)
2016-10-31 17:38:40 +07:00
Daniel Marjamäki
9c1a08ca84
move std function information from checkstl to std.cfg
2016-10-27 19:24:24 +02:00
Daniel Marjamäki
77295a429e
std.cfg: updated <returnValue>
2016-10-27 17:12:10 +02:00
Daniel Marjamäki
fd3750820d
std.cfg: configure some <algorithm> functions
2016-10-27 16:51:44 +02:00
Daniel Marjamäki
f6a5f6bb61
CheckStl::mismatchingContainers: Refactoring, use Library instead of hardcoding
2016-10-27 10:25:45 +02:00
orbitcowboy
d95a4d83bc
windows.cfg: Added support for FindClose() and FindFirstFile().
2016-10-27 09:36:33 +02:00
Daniel Marjamäki
08a618c476
Library: Add <iterator> element in <function> <arg>. Not used by any checks yet.
2016-10-25 23:07:18 +02:00
orbitcowboy
6b168aba14
windows.cfg: Added support for swprintf_s().
2016-10-25 17:03:30 +02:00
Daniel Marjamäki
c8f831b70d
Library: Allow that type of function return is specified. Fixes #7668 .
2016-10-23 23:04:15 +02:00
orbitcowboy
4130207edc
posix.cfg and windows.cfg: Added support for more functions like _popen().
2016-10-21 11:43:01 +02:00
orbitcowboy
a7e8bcab62
posix.cfg: Improved support for getpwuid_r().
2016-10-21 09:59:38 +02:00
orbitcowboy
340af57028
windows.cfg: Added missing argument.
2016-10-21 09:52:45 +02:00
orbitcowboy
73facf927b
windows.cfg: Added support for CreateWaitableTimer(), SetWaitableTimer() and WaitForSingleObject().
2016-10-21 09:38:14 +02:00
orbitcowboy
56317fe884
windows.cfg: No real changes. Cleanup a comment.
2016-10-21 08:53:44 +02:00
orbitcowboy
1ab8628f1c
Fixed #7766 by ignoring WINAPI in windows.cfg.
2016-10-20 13:23:15 +02:00
orbitcowboy
466068f55d
posix.cfg: added/updated getpwnam_r(), getgrent_r() and getpwuid_r().
2016-10-18 17:01:05 +02:00
orbitcowboy
d5a145f288
std.cfg: Added <returnValue> information to isblank().
2016-10-18 11:00:12 +02:00
orbitcowboy
56e75e5776
std.cfg: Added support <returnValue> support for imaxabs(). windows.cfg: Added support for _abs64().
2016-10-17 14:31:44 +02:00
orbitcowboy
8a216ad87e
std.cfg: Added <returnValue> support for labs() and llabs().
2016-10-17 14:26:17 +02:00
Daniel Marjamäki
fae4a4dacf
Fixed #7668 (ValueFlow: return value from abs)
2016-10-17 13:05:19 +02:00
orbitcowboy
0422d05a34
library: Added wxwidgets.cfg file.
2016-08-29 15:29:18 +02:00
orbitcowboy
90a8dd7cf3
windows.cfg: Added support for _mkdir and _wmkdir.
2016-08-29 13:45:38 +02:00
orbitcowboy
61d642cb06
windows.cfg: Added support for _rmdir, _wrmdir.
2016-08-29 11:59:59 +02:00
Daniel Marjamäki
bc08aee9ca
astyle
2016-08-27 15:09:45 +02:00
orbitcowboy
36ad0a0514
Fixed #7669 Extend support for C99 fixed width macro constants.
2016-08-27 10:11:46 +02:00
orbitcowboy
87409ea6b3
Running astyle; Improved testing of std::find; std.cfg: Added support for istream::read and ifstream::read.
2016-08-25 19:17:07 +02:00
Robert Reif
28e14f0b94
Fixed #7711 (QString::asprintf format string checking.)
2016-08-24 12:44:57 +02:00
Robert Reif
4d157af61f
Fixed #7704 (QString::sprintf format string checking)
2016-08-20 08:47:52 +02:00
Daniel Marjamäki
789aef7fde
Fixed #4920 (Microsoft ATL/MFC CString::Format argument checking)
2016-08-19 17:36:27 +02:00
orbitcowboy
8253a18646
windows.cfg and std.cfg: Improved support for vs[n]printf functions.
2016-08-11 11:45:59 +02:00
orbitcowboy
16271ffe45
windows.cfg: Added support for SetStdHandle and GetStdHandle.
2016-08-09 11:16:09 +02:00
orbitcowboy
db5e40b870
std.cfg: Added support for temnam_s; posix.cfg: Added support for fchmod.
2016-08-09 11:07:14 +02:00
orbitcowboy
b0a502227c
std.cfg: Added support for some fixed width integer sizes.
2016-08-08 15:18:05 +02:00
PKEuS
766e81cd97
std.cfg: vfwscanf takes three arguments
2016-08-06 13:38:51 +02:00
PKEuS
1a765213ad
std.cfg: Removed <formatstr/> from v*scanf/printf functions. Added two C++17 functions to std::map container declaration.
2016-08-06 12:57:40 +02:00
Boris Egorov
a0624344ce
posix.cfg: Add more functions and comments
2016-08-04 21:07:26 +02:00
PKEuS
5c92c231b8
windows.cfg: SendMessage must not be <leak-ignore/>
2016-07-26 11:57:46 +02:00
PKEuS
ded8d80b23
Library: Support arguments with default value. Fixed default value handling for <container> tags broken in last commit.
2016-07-09 12:44:17 +02:00
PKEuS
3916cd628e
windows.cfg: Fixed configuration of _tfopen_s/_wfopen_s (
2016-06-02 09:41:01 +02:00
PKEuS
2d34acae71
Fixed configuration for fopen_s and similar functions ( #7520 )
2016-05-26 21:11:32 +02:00
orbitcowboy
e76518d800
posix.cfg: Added support for fnmatch.
2016-05-24 16:17:09 +02:00
Daniel Marjamäki
ea617ee011
Fixed #7052 (Qt foreach())
2016-05-23 11:13:25 +02:00
PKEuS
9ea49d48d1
Added a bunch of functions to windows.cfg, fixed <dealloc> arg number for some functions
2016-05-22 18:57:09 +02:00
PKEuS
64d2fd2f57
Added new attribute "arg" to <alloc> and <dealloc> to specify the argument that is allocated/deallocated.
...
This fixes several issues with allocation functions in windows.cfg, such as HeapAlloc() and VirtualAllocEx() (#7503 )
2016-05-22 17:19:14 +02:00
orbitcowboy
d676022556
cfg: Added support for the Windows functions: DeleteFile() and _access().
2016-05-20 15:19:41 +02:00
orbitcowboy
fd8fb9e4f4
cfg: Fixed FP recently introduced for fopen_s() and glob().
2016-05-19 13:21:05 +02:00
orbitcowboy
5095196530
cfg: Ignore return values of fopen_s functions.
2016-05-19 11:56:52 +02:00
orbitcowboy
0514e14cad
posix.cfg: Added support for glob() and globfree().
2016-05-19 11:51:49 +02:00
orbitcowboy
b1b0c920e3
Removed sprintf_s from windows.cfg.
2016-05-19 08:22:40 +02:00
orbitcowboy
46adf180d7
cfg: Added support for fopen_s and sprintf_s functions. Fixed a wrong tests.
2016-05-18 09:31:26 +02:00
orbitcowboy
41576ee8ec
cfg: Added support for the Windows SetConsoleTextAttribute function.
2016-05-17 11:31:54 +02:00
orbitcowboy
2d1ab79d98
cfg: Added support for Windows functions PathIsDirectory,PathIsDirectoryA and PathIsDirectoryW.
2016-05-17 09:54:11 +02:00
orbitcowboy
53a37d6134
cfg: Added support for Windows function WideCharToMultiByte.
2016-05-17 09:35:30 +02:00
Pierre Schweitzer
ade7138358
windows.cfg: Add CoTaskMemAlloc() and CoTaskMemFree() functions
2016-02-20 21:44:03 +01:00
Alexander Mai
e87ac14dd0
Correct FP due to configuration for mblen
2016-01-31 15:16:59 +01:00
Alexander Mai
b82bdb222a
Correct library info for shmctl to avoid false positives
2016-01-30 18:14:08 +01:00
orbitcowboy
8ce813f241
posix.cfg: Added missing <leak-ignore>-tags.
2016-01-22 11:03:37 +01:00
orbitcowboy
8ea36fb6ec
gnu.cfg,posix.cfg: Added support for more functions.
2016-01-22 10:40:04 +01:00
orbitcowboy
b65873711a
posix.cfg,gnu.cfg: Moved a few functions from posix to gnu. Improved the documentation.
2016-01-21 16:32:00 +01:00
orbitcowboy
1464990dad
posix.cfg: Added more functions and comments.
2016-01-21 16:14:59 +01:00
orbitcowboy
82c663090e
windows.cfg, posix.cfg: Added support for more functions.
2016-01-21 15:48:08 +01:00
Alexander Mai
161412dc31
Correct posix.cfg to avoid false positives. Fix runtests.sh
2016-01-15 00:11:48 +01:00
Boris Egorov
3c85791b6a
posix.cfg: Only pointers can be null
2016-01-14 17:30:23 +06:00
orbitcowboy
023424f836
posix.cfg and gnu.cfg: Added support for more functions.
2016-01-13 11:57:21 +01:00
Alexander Mai
7802517a69
#7285 wrong var name: memset() called to fill 0 bytes of '&' memset with pointer: remove var name from message. Correct some entries in posix.cfg.
2016-01-12 23:20:48 +01:00
orbitcowboy
b6fd9e2509
posix.cfg and windows.cfg: Added support for more functions.
2016-01-12 17:00:33 +01:00
Martin Ettl
9193e14b8f
posix.cfg: Added support for the fileno() function.
2016-01-11 20:35:56 +01:00
Martin Ettl
999da2877e
windows.cfg: Added support for _stat() functions.
2016-01-11 20:25:44 +01:00
orbitcowboy
e03e9fbbcf
posix.cfg: Added support for remove().
2016-01-11 16:34:47 +01:00
orbitcowboy
8cfd1fc8d5
gnu.cfg: Fixed canonicalize_file_name() definition. This function has only one parameter.
2016-01-11 15:22:40 +01:00
orbitcowboy
5f1092825b
gnu.cfg: Added support for canonicalize_file_name() function.
2016-01-11 15:00:36 +01:00
orbitcowboy
2b3a12866a
windows.cfg and posix.cfg: Added support for more functions, found by selfchecking cppchecks code.
2016-01-11 14:54:01 +01:00
Martin Ettl
d357229da5
windows.cfg: Improved support for strdup functions.
2016-01-08 11:30:39 +01:00
Martin Ettl
8082e8130e
gnu.cfg: Added support fro functions from arpa/inet.h.
2016-01-08 10:59:00 +01:00
Martin Ettl
1cb01bae09
windows.cfg: Added support for _vsnprintf and _vsnwprintf functions.
2016-01-07 20:41:26 +01:00
PKEuS
c15c61db00
Warn about usage of posix function mktemp ( #3918 ).
2015-12-18 18:29:53 +01:00
PKEuS
8f641aaa76
Added gets_s() to std.cfg (C11), added <use-retval/> to min/max().
2015-12-18 18:09:07 +01:00
orbitcowboy
4c60c2eaa5
std.cfg: Added min, max functions to std.cfg.
2015-12-18 16:09:26 +01:00
PKEuS
37572dc109
Small refactorizations:
...
- Improved formatting of unhandled-char-constant message (Side-effect: fixes #7206 )
- Replace nr="-1" by nr="any" in windows.cfg
2015-12-10 15:47:46 +01:00
orbitcowboy
f84af529af
Extended windows.cfg and posix.cfg about missing functions, found by using --check-library on some projects.
2015-11-25 11:02:32 +01:00
orbitcowboy
78bd49c2ba
windows.cfg: Added strtok_s and wcstok_s
2015-11-25 09:53:10 +01:00
Daniel Marjamäki
9864f340f5
posix.cfg: reformatting using library editor
2015-11-22 13:34:40 +01:00
PKEuS
57d1196386
Replaced CheckNonReentrantFunctions and CheckObsoleteFunctions by generic CheckFunctions which is based on Library ( #6529 )
2015-11-22 09:18:07 +01:00
Daniel Marjamäki
c62b23c4fc
posix.cfg: saved with the Library Editor
2015-11-21 16:10:46 +01:00
Daniel Marjamäki
094b4c8b6f
astyle formatting
...
[ci skip]
2015-11-20 18:58:04 +01:00
PKEuS
6590d46013
Added missing functionality to <container> elements in Librarie, completed STL container definitions in std.cfg
2015-11-20 18:22:55 +01:00
PKEuS
53b2eca983
Reimplemented CheckStl::stlBoundaries() based on Libraries; Added support for iterators to libraries
2015-11-20 15:53:14 +01:00
PKEuS
c5b21d12cf
Removed lots of redundant tests from testmemleak.cpp, added some missing types to gtk.cfg
2015-11-19 18:51:32 +01:00
Daniel Marjamäki
ca8b15cd6b
Fixed #7124 (int32_t etc are recognised as fundamental types, but std::int32_t etc are not)
2015-11-15 17:51:27 +01:00
PKEuS
25749ab19f
Fixed another crash in clang test suite and let two times two functions in std.cfg share same configuration
2015-11-15 14:55:30 +01:00
PKEuS
da6b17d176
Refactorizations in CheckStl:
...
- Improved detection of "auto" iterators in CheckStl::iterators()
- Improved performance of CheckStl::pushback()
- Added more containers to std.cfg
2015-11-15 14:04:39 +01:00
Daniel Marjamäki
cf9f12130a
Revert "std.cfg: Added std-namespace identifiers for <cstdint> types."
...
This reverts commit 00a47546f8
.
2015-11-12 14:04:35 +01:00
orbitcowboy
00a47546f8
std.cfg: Added std-namespace identifiers for <cstdint> types.
2015-11-11 13:33:41 +01:00
amai2012
d69cc450ce
Merge pull request #701 from JIghtuse/gtk_fix
...
gtk.cfg: Fix some g_variant deallocators
2015-10-29 06:47:55 +01:00
Boris Egorov
bf2baef27b
gtk.cfg: Fix some g_variant deallocators
...
"This call makes a shallow copy; the return result should be released
with g_free(), but the individual strings must not be modified."
https://developer.gnome.org/glib/stable/glib-GVariant.html
2015-10-28 17:27:15 +06:00
Boris Egorov
0049c40689
gnu.cfg: Few improvements in backtrace* functions support
...
* first argument of backtrace() can be uninitialized
* treat second argument as size
2015-10-23 13:48:53 +06:00
Daniel Marjamäki
61cdd01ce3
std.cfg: fixed configuration for snprintf. destination string can be NULL.
2015-10-03 19:00:04 +02:00
Daniel Marjamäki
2420c8fc00
std.cfg: removed arg nr=any for formatstr functions. See #7012 .
2015-10-03 18:54:57 +02:00
Daniel Marjamäki
28e3c266b3
Fixed #7012 (False positive uninitvar - first argument to snprintf)
2015-10-03 18:35:16 +02:00
Martin Ettl
12b4bf75e0
std.cfg: Fixed false negatives regarding uninitialized variable usage and added test cases.
2015-09-30 13:10:31 +02:00
Martin Ettl
0b782853fe
Imroved std.cfg and added more test cases.
2015-09-30 12:45:40 +02:00
Martin Ettl
4fcd324ccd
Improved testing of std.cfg regarding <arg nr=any> configured functions and added more test cases.
2015-09-30 12:18:56 +02:00
Martin Ettl
c64f9cf9b1
#7012 : Fixed FP in std.cfg by explicitly definining the first parameter of snprintf.
2015-09-29 21:33:39 +02:00
Martin Ettl
7476f0d1c2
std.cfg: Added support for wmemcmp() and corresponding test cases.
2015-09-23 22:46:36 +02:00
Martin Ettl
10da5d6d2f
std.cfg: Added configuration for std::string:find.
2015-09-21 23:01:51 +02:00
Martin Ettl
3d0cc38d90
test/cfg: Attempt to fix travis build, caused by my previous commit due to wrong configuration.
2015-09-21 14:00:24 +02:00
Martin Ettl
55ccaea4a5
std.cfg: Added more functions from <cuchar> and corresponding test cases.
2015-09-21 13:40:56 +02:00
Martin Ettl
39622417b1
Improved std.cfg and added coressponding test cases to test/cfg.
2015-09-18 23:57:20 +02:00
Martin Ettl
841ad5462d
test/cfg: Improved std.cfg and added corresponding test cases.
2015-09-18 23:02:51 +02:00
Martin Ettl
fc4b9d320d
test/cfg: Improved testing of std.cfg about std::stod().
2015-09-18 16:25:05 +02:00
orbitcowboy
fd81ee9804
test/cfg: Improved testing of std.cfg regarding uninitialized and nullPointer checks.
2015-09-11 16:50:59 +02:00
orbitcowboy
3187a2b972
test/cfg: Improved testing of std.cfg regarding null pointer dereferences.
2015-09-11 16:29:39 +02:00
Daniel Marjamäki
e09f583096
GUI: library editor, edit function comments
2015-09-10 20:11:05 +02:00
orbitcowboy
5e50166135
Improved testing of std.cfg.
2015-09-10 16:45:14 +02:00
orbitcowboy
66b9d8bf38
Improved testing of std.cfg and posix.cfg.
2015-09-10 11:50:47 +02:00
orbitcowboy
2b416419de
test/cfg: Improved testing of std.cfg regarding uninitialized variables.
2015-09-09 16:59:26 +02:00
orbitcowboy
52090f5725
test/cfg: Improved testing of std.cfg regarding uninitialized variables.
2015-09-09 16:32:52 +02:00
orbitcowboy
e929e9e7d9
test/cfg: Improved testing of std.cfg regarding uninitialized variables.
2015-09-08 16:08:43 +02:00
orbitcowboy
60770a8fdc
test/cfg: Improved testing of std.cfg regarding uninitialized variables.
2015-09-08 15:43:22 +02:00
orbitcowboy
7d229f082c
test/cfg: Improved testing of std.cfg regarding uninitialized variables.
2015-09-08 11:45:13 +02:00
orbitcowboy
03495360d8
test/cfg: Improved testing of std.cfg regarding uninitialized variables.
2015-09-07 16:57:34 +02:00
Daniel Marjamäki
0e5f7fe567
GUI: fixes to save cfg files properly in the library editor
2015-09-06 08:48:13 +02:00
Daniel Marjamäki
c8662a7880
Reverted changes to std.cfg. It somehow causes test failures.
2015-09-05 20:36:22 +02:00
Daniel Marjamäki
ff0f4cef16
GUI: Add handling of containers to CppcheckLibraryData
2015-09-05 20:13:26 +02:00
Alexander Mai
b46df3d551
Correct attriutes for raise() in library
2015-09-05 16:58:46 +02:00
Alexander Mai
9255173267
Correct signal attributes in library
2015-09-05 13:09:56 +02:00
Alexander Mai
d0ab00b100
Correct library std.cfg about setjmp
2015-09-05 07:00:22 +02:00
Martin Ettl
bcb7dce97e
Fix Travis build.
2015-09-04 23:50:50 +02:00
Martin Ettl
6304eb35f9
Improved testing of std.cfg regarding uninitialized variables.
2015-09-04 23:45:31 +02:00
Martin Ettl
27b3461e84
Fixed #6974 - false negative: uninitialized variable not detected (signal).
2015-09-04 22:48:00 +02:00
orbitcowboy
5428813534
Improved testing of std.cfg regarding uninitialized variables.
2015-09-04 11:59:19 +02:00
orbitcowboy
c955fafd84
Improved testing of std.cfg regarding uninitialized variables.
2015-09-04 11:26:43 +02:00
orbitcowboy
9daf78527f
Improved testing of std.cfg regarding uninitialized variables.
2015-09-03 16:34:44 +02:00
orbitcowboy
b16a480dfe
Merge branch 'master' of https://github.com/danmar/cppcheck
2015-09-03 16:03:23 +02:00
orbitcowboy
84d8a869d0
Improved testing of std.cfg regarding uninitialized variables.
2015-09-03 16:03:16 +02:00
Daniel Marjamäki
92d3510de4
std.cfg: Removed <noreturn>true</noreturn>
...
that was added in the previous commit by library editor
2015-09-03 08:26:47 +02:00
Daniel Marjamäki
bfb70f3312
saving std.cfg with libraryeditor, applied some of the generated diffs.
2015-09-03 07:00:43 +02:00
orbitcowboy
34551203a6
Improved testing of std.cfg regarding uninitialized variables.
2015-09-02 17:08:25 +02:00
orbitcowboy
89c4e08fc4
Improved testing of std.cfg regarding uninitialized variables.
2015-09-02 15:43:52 +02:00
orbitcowboy
651e225069
Improved testing of std.cfg regarding uninitialized variables.
2015-09-02 12:00:03 +02:00
orbitcowboy
d87d2ff779
Improved testing of std.cfg regarding uninitialized variables.
2015-09-01 16:50:36 +02:00
orbitcowboy
c64e74492b
Improved testing of std.cfg regarding uninitialized variables.
2015-09-01 11:59:24 +02:00
orbitcowboy
974414645a
Improved testing of std.cfg regarding uninitialized variables.
2015-09-01 11:29:28 +02:00
orbitcowboy
f24fdb4257
Improved testing of std.cfg.
2015-08-31 17:10:10 +02:00
orbitcowboy
0dd0f2a97d
Improved testing of std.cfg and added more test cases.
2015-08-31 13:35:57 +02:00
orbitcowboy
d1ba919e39
Improved testing of std.cfg regarding uninitialized variables.
2015-08-31 11:59:57 +02:00
orbitcowboy
f653189bd4
Improved testing of std.cfg and added more test cases.
2015-08-31 11:39:25 +02:00
Martin Ettl
5e9325b4f4
test/cfg: Improved testing of std.cfg and added more test cases.
2015-08-30 12:05:38 +02:00
Martin Ettl
0e3b74fbbc
test/cfg: Improved testing of std.cfg. Fixed false negatives by adding more stdandard namespace functions and test cases.
2015-08-29 01:43:17 +02:00
Martin Ettl
08413f0112
test/cfg: Improved testing of std.cfg.
2015-08-29 00:09:33 +02:00
orbitcowboy
994ba5d5a4
Improved testing of std.cfg.
2015-08-28 17:04:47 +02:00
PKEuS
8d926d7328
Moved some simple WinAPI/MFC-specific simplifications to windows.cfg
2015-08-20 15:59:59 +02:00
versat
915b4abc12
microsoft_sal.cfg Bugfixes and enhancement
...
Added parameters where they were missing. Added some more annotations.
Renamed _Deref_inout_range_(low, hi) to _Deref_ret_range_(low, hi), the
MSDN seems to be wrong here as no sal.h i know contains the first one,
but the latter one.
2015-08-19 15:07:51 +02:00
Martin Ettl
c26ec86508
std.cfg: Readded accidentially removed functions from <cfenv> and added test cases to test/cfg/std.cpp.
2015-08-16 15:05:42 +02:00
Martin Ettl
58d7b8a3f2
std.cfg: Added more test cases.
2015-08-16 14:49:35 +02:00
Martin Ettl
2665fb9481
std.cfg: Removed some non-existent functions that accidentially declared being in standard namespace. Improved testing of std.cfg functions.
2015-08-16 14:38:13 +02:00
Martin Ettl
7e189d6b91
std.cfg: Removed complex floating point podtypes.
2015-08-16 13:58:55 +02:00
Martin Ettl
1dca7c2162
std.cfg: Added float complex, double complex and long double complex as podtype.
2015-08-16 01:43:23 +02:00
Martin Ettl
716b4d6e18
Another attempt to fix the current travis build. Improved testing of std.cfg.
2015-08-16 01:21:11 +02:00
Martin Ettl
ab0862f218
std.cfg: Fixed travis build. Added noreturn to the assert-definition in std.cfg. Improved testing of std.cfg.
2015-08-16 01:09:03 +02:00
Martin Ettl
b2bf6cde5f
std.cfg: Improved testing of libary functions. Removed some non existent such as std::sinf from the libary and added corresponding test cases to test/cfg/.
2015-08-16 00:52:52 +02:00
Daniel Marjamäki
3ccb2ba9da
astyle formatting
...
[ci skip]
2015-08-15 14:26:50 +02:00
PKEuS
aaefdd2f92
std.cfg: Unified comment style
2015-08-15 11:17:29 +02:00
PKEuS
5ca82b8c69
Refactorized std.cfg:
...
- Shrinked size of std.cfg by sharing same definitions for several similiar functions (for example round, roundf and roundl share the same definitions)
- Added a few more std::-overloads
- Fixed several typos
2015-08-15 11:17:29 +02:00
Martin Ettl
e9b1f1f0a6
test/cfg/ Started to test std::complex functions.
2015-08-14 02:06:48 +02:00
PKEuS
4180ad38d4
Fixed bugs in std.cfg
2015-08-13 14:11:16 +02:00
Daniel Marjamäki
c0998cbc11
std.cfg: add std:: functions
2015-08-13 11:03:21 +02:00
Daniel Marjamäki
8d79b9595e
Merge pull request #638 from pepsiman/freopen
...
freopen does not allocate
2015-08-11 14:29:39 +02:00
PKEuS
ebfdacb0d3
Introduced .cfg file format version to 2 (to prevent older cppcheck versions from failing silently when reading them), because 5b287fc849
introduced a backward-incompatible feature.
...
Increased format version of std.cfg, which is the only cfg file that makes use of the new backward incompatible feature.
Refactorization: Avoid a redundant std::string::find()-call
2015-08-11 14:05:01 +02:00
Malcolm Parsons
fcea689a20
freopen does not allocate
2015-08-11 12:09:46 +01:00
Martin Ettl
797cac5098
Library: Started to test functions from std-namespace.
2015-08-10 23:44:36 +02:00
Alexander Mai
a5aba110a4
Replace Tokenizer::simplifyBuiltinExpect by a suitable addition to gnu.cfg
2015-08-10 20:21:30 +02:00
Daniel Marjamäki
5b287fc849
Library: The <function> name attribute can now have a comma separated list of names
2015-08-09 21:27:57 +02:00
Daniel Marjamäki
b70fe4c609
Fixed #6711 (Add namespace support to library files)
2015-08-09 19:55:33 +02:00
Daniel Marjamäki
72706cd0b8
Fixed #6868 (Tokenizer: wrong simplification of the unlikely keyword)
2015-08-08 12:49:42 +02:00
Daniel Marjamäki
bd56381fd2
Add configuration for div/ldiv/lldiv, 2nd argument must not be 0.
2015-07-30 14:08:59 +02:00
Alexander Mai
38ac8cd594
Fix some invalid attributes in library
2015-07-15 18:41:41 +02:00
orbitcowboy
fa03a93f89
gnu.cfg: Do no require use-retval for accept().
2015-07-14 16:16:01 +02:00
orbitcowboy
c4bcd6ec4c
posix.cfg: Added support for more functions.
2015-07-14 09:21:57 +02:00
orbitcowboy
862361d807
posix.cfg and gnu.cfg: Added support for more functions.
2015-07-14 09:07:47 +02:00
Pierre Schweitzer
f27c787c4f
Handle HeapCreate()/HeapDestroy() API for Windows
2015-05-19 18:37:22 +02:00
Alexander Mai
3c97736d44
Remove functions min()/max() from std.cfg (revert f430748
)
2015-05-13 21:25:04 +02:00
orbitcowboy
1ee3620a93
gnu.cfg: Added support for atoq().
2015-05-11 08:53:54 +02:00
orbitcowboy
f430748e0c
std.cfg: Added support for min() and max() functions.
2015-05-07 08:45:38 +02:00
Alexander Mai
97f998e6dd
Remove <use-retval/> attribute from strto*() APIs fixing false positives
2015-05-03 16:38:13 +02:00
Daniel Marjamäki
88a6c2bf9d
std.cfg: Added <strz/> configurations
2015-05-03 16:04:15 +02:00
Martin Ettl
a8a11f2413
posix.cfg: Added support for more functions.
2015-04-19 00:13:30 +02:00
Martin Ettl
b0e9805620
posix.cfg: Fixed wrong function name, introducted by my last commit.
2015-04-12 12:53:29 +02:00
Martin Ettl
47e949bc63
posix.cfg: Added support for more functions.
2015-04-12 10:42:16 +02:00
orbitcowboy
282f701989
posix.cfg: Added support for more functions.
2015-04-10 08:45:32 +02:00
orbitcowboy
6610b782cf
posix.cfg: Added support for more functions.
2015-04-10 08:26:44 +02:00
Martin Ettl
c73e0a82f8
posix.cfg: Added support for more functions.
2015-04-09 21:35:18 +02:00
Martin Ettl
8a3365c23e
posix.cfg: Added missing open() and flock() functions.
2015-04-09 19:25:33 +02:00
Alexander Mai
bacc5ac1cc
Fix false positives ignoredReturnValue about some posix interfaces. Remove redundant strsignal() output from signal handler
2015-04-06 18:16:37 +02:00
Martin Ettl
435a5d0bf9
posix.cfg: Added support for uname().
2015-04-05 23:23:39 +02:00
Martin Ettl
92c364ead8
posix.cfg: Added support for more functions.
2015-04-05 23:15:23 +02:00
Martin Ettl
b5f20be151
std.cfg: Improved matching of functions. Improved documentation.
2015-04-05 22:48:53 +02:00
Martin Ettl
a16ed8f0e7
posix.cfg: Added support for more functions. std.cfg: Fixed mktime->mkxtime wrong naming and improved asctime() function checking. It is not allowed to provide a NULL pointer to asctime().
2015-04-04 23:59:05 +02:00
Martin Ettl
c89d2b16cc
std.cfg: Improved function matching of strto* functions.
2015-04-04 22:59:58 +02:00
Martin Ettl
19e4c8bed0
std.cfg: Added support for functions from <iomanip>.
2015-04-04 22:42:12 +02:00
orbitcowboy
524585f566
windows.cfg: Added support for more Comm functions.
2015-03-31 08:33:27 +02:00
orbitcowboy
f7c724e3eb
windows.cfg: Added support for more windows functions.
2015-03-30 16:25:36 +02:00
Christian Ehrlicher
18beee3e17
added more macros to qt.cfg
2015-03-21 15:26:32 +01:00
Alexander Mai
42d9afe7de
posix.cfg add more interfaces from stdlib.h. run astyle
2015-03-21 12:26:07 +01:00
orbitcowboy
ce95776abc
Reverted my previous commit 4139b6a818
.
2015-03-16 10:39:08 +01:00
orbitcowboy
4139b6a818
posix.cfg: cleanup opened, but not closed <arg>-tags.
2015-03-16 09:06:16 +01:00
Alexander Mai
cb6ed95ed3
posix.cfg: add more interfaces. Remove include from test which is missing on travis
2015-03-15 13:28:16 +01:00
Alexander Mai
3a690fd18e
posix.cfg: fix false positive and add more interfaces
2015-03-15 12:56:24 +01:00
Alexander Mai
5b8d93efda
posix.cfg: Fix false positives and add poll()
2015-03-14 23:31:56 +01:00
orbitcowboy
86a34db294
posix.cfg: Added more POSIX functions.
2015-03-12 12:06:14 +01:00
Alexander Mai
6bd7dd771d
Add some functions from <time.h> to posix.cfg (see #6577 )
2015-03-11 18:59:34 +01:00
orbitcowboy
5e8c646465
posix.cfg: Added support for more POSIX functions.
2015-03-10 14:40:12 +01:00
orbitcowboy
95923cbfea
posix.cfg: Added missing podtype: timeval.
2015-03-09 09:12:15 +01:00
Martin Ettl
0839ce5a96
posix.cfg: Removed duplicate utime() function introduced by 841a27c19d
. Added more test cases for uninitvar for utime() and utimes().
2015-03-08 21:38:43 +01:00
amai2012
3d9c2b4d97
Merge pull request #542 from MegaManSec/master
...
Add utime function to posix.cfg
2015-03-08 19:55:41 +01:00
Alexander Mai
34a61e0883
Additions to windows.cfg. Fix compiler warning in test/cfg/posix.c
2015-03-08 15:21:50 +01:00
Joshua Rogers
841a27c19d
Add utime function to posix.cfg
2015-03-09 00:43:25 +11:00
Alexander Mai
39633ef26f
Add more interfaces to posix.cfg
2015-03-08 14:24:54 +01:00
Alexander Mai
95411414c4
#6569 Add strcasestr function to gnu.cfg
2015-03-08 14:04:09 +01:00
Alexander Mai
b5f0eec44a
#6559 Regression/ false positive: Return value of allocation function OpenFile is not stored. Add required definitions to windows.cfg, include afx_msg. Add test file test/cfg/windows.cpp to check windows configuration. Fix for gnu.cfg. FileLister now features a non-recursive mode.
2015-03-05 06:48:44 +01:00
Alexander Mai
49099e78ff
Add more string conversion functions to library files
2015-03-01 20:18:26 +01:00
Daniel Marjamäki
a24891f335
std.cfg: Add <not-null/> to atoll
2015-02-26 20:14:20 +01:00
Daniel Marjamäki
18285eadc7
std.cfg: Add <not-null/> to atof/atoi/atol
2015-02-26 19:47:05 +01:00
Alexander Mai
cea71f8625
Fix false positive ignoredReturnValue about strtol
2015-02-25 22:03:10 +01:00
Alexander Mai
fd7d29447d
std.cfg: snprintf(NULL,0,) is legal. Fix some testcases in test/cfg as well
2015-02-22 14:25:25 +01:00
Alexander Mai
6bfeb71dd2
Add more interfaces to gnu and posix libraries
2015-02-21 11:08:58 +01:00
Martin Ettl
b12ebc1733
posix.cfg: utime() and utimes() second parameter is allowed to be NULL.
2015-02-20 22:43:48 +01:00
Alexander Mai
6d9eb6199d
posix.cfg: add support for sched.h and 1 bugfix
2015-02-20 20:50:20 +01:00
Alexander Mai
6a7605271a
Fix compiler warning. Add interfaces of POSIX passwd.h and pwd.h to posix.cfg
2015-02-18 20:56:44 +01:00
Daniel Marjamäki
e5c098c7de
TestUninitVar: move out posix.cfg testing
2015-02-17 18:08:19 +01:00
Alexander Mai
0a6babea74
#6181 Drop redundantGetAndSetUserId. Ensure (style-) warnings are issued if setuid()/getuid() and some related functions are ignored. Move strdupa()/strndupa() from posix.cfg to gnu.cfg
2015-02-16 22:19:51 +01:00
Daniel Marjamäki
fe8ba51f03
TestMemLeak: moved posix.cfg tests
2015-02-15 18:11:09 +01:00
Thomas Jarosch
2da43035f4
Add openlog() / syslog() / vsyslog() to posix.cfg
2015-02-14 18:50:26 +01:00
Daniel Marjamäki
2d21eb07ba
Cleaned up snprintf hardcoding in CheckBufferOverrun
2015-02-13 06:44:38 +01:00
Daniel Marjamäki
9aad4fa8ca
CheckBufferOverrun: Remove hardcoding for sprintf and rely on cfg configuration instead
2015-02-12 17:29:36 +01:00
orbitcowboy
aa77abe1c6
posix.cfg: Added comment, no functional change. [ci skip].
2015-02-11 14:27:29 +01:00
Martin Ettl
977fbc8030
posix.cfg: Added support for more podtypes.
2015-02-06 18:25:54 +01:00
Martin Ettl
c676e34887
posix.cfg: Added more podtypes.
2015-02-05 17:44:51 +01:00
orbitcowboy
d2552dd93a
posix.cfg: declared usleep() as <leak-ignore/>. Improved support for <unistd.h> functions.
2015-02-05 14:18:08 +01:00
orbitcowboy
f5a336d576
posix.cfg: Improved support for <unistd.h> functions.
2015-02-05 11:40:25 +01:00
orbitcowboy
5e3aa17a56
posix.cfg: Improved support for <unistd.h> functions.
2015-02-05 02:27:20 +01:00
orbitcowboy
e6e8decd49
posix.cfg: Improved support for <unistd.h> functions.
2015-02-06 10:47:49 +01:00
orbitcowboy
84e831c21c
posix.cfg: Improved support for functions from <unistd.h>.
2015-02-02 17:23:43 +01:00
orbitcowboy
8249be5859
Running astyle [ci skip].
2015-02-02 10:26:21 +01:00
Martin Ettl
b47f189247
posix.cfg: Added support for more POSIX types.
2015-02-01 10:40:38 +01:00
Daniel Marjamäki
7e50d7a1d0
windows.cfg: Added INVALID_HANDLE_VALUE define
2015-01-31 11:03:49 +01:00
Daniel Marjamäki
5ee6e082e8
cppcheck-cfg.rng: more strict minsize type value
2015-01-31 10:48:11 +01:00
Daniel Marjamäki
9deffc088d
cppcheck-cfg.rng: more strict about values
2015-01-31 08:08:39 +01:00
Daniel Marjamäki
0c89afcc48
cppcheck-cfg.rng: more strict about 'format' and 'valid'
2015-01-29 07:28:40 +01:00
Daniel Marjamäki
7d0f5ad7c1
cfg: added cppcheck-cfg.rng schema that cfg files can be validated against
2015-01-28 07:39:08 +01:00
Daniel Marjamäki
01601b58dd
test: move cfg/test to test/cfg
2015-01-27 18:23:28 +01:00
Daniel Marjamäki
3285f85ebf
Fixed #6460 (Library: better function/type matching)
2015-01-27 17:55:18 +01:00
orbitcowboy
3aa4f5de47
std.cfg: Fixed from spelled podtype win_t --> wint_t
2015-01-27 07:57:20 +01:00
Daniel Marjamäki
f1e7d7894f
std.cfg: arguments for rename/remove must be zero-terminated strings
2015-01-27 06:20:46 +01:00
orbitcowboy
d2b9abc4d3
std.cfg: Added missing podtypes. Fixed a FP when in fgetpos(). The second parameter is allowed to be uninitialized.
2015-01-26 11:52:41 +01:00
orbitcowboy
07ae1d4278
posix.cfg: Added support for 'DIR' dataype.
2015-01-26 08:49:35 +01:00
orbitcowboy
180d7389a0
Fixed #6457 : Added missing podtype defintions to posix.cfg.
2015-01-26 08:35:22 +01:00
Martin Ettl
e5c7766293
posix.cfg and std.cfg: Added missing type definitions.
2015-01-23 18:15:03 +01:00
Martin Ettl
4e822d7ebc
posix.cfg: blkcnt_t shall be a signed type.
2015-01-23 17:43:50 +01:00
Martin Ettl
ac551807b6
posix.cfg: Added support for blkcnt_t datatype.
2015-01-23 17:29:18 +01:00
Sebastian
b7972d5e1d
Update microsoft_sal.cfg
...
Removed some redundant entries
2015-01-22 08:10:26 +01:00
Sebastian Matuschka
6a0a92b3a6
Add microsoft_sal.cfg file
2015-01-22 06:31:59 +01:00
PKEuS
60b2b655df
Support new/delete in new uninitialized variable checking; realloc() requires an initialized first argument.
2015-01-21 23:46:52 +01:00
orbitcowboy
81aaa02c76
std.cfg: Added support for swprintf().
2015-01-19 14:30:58 +01:00
orbitcowboy
91d58a51cb
std.cfg: wcsrtombs() is allowed to have a NULL pointer as first argument.
2015-01-19 13:21:47 +01:00
orbitcowboy
7c737f0350
std.cfg: Added more functions and improved documentation.
2015-01-19 11:55:16 +01:00
Martin Ettl
e7a95e68ac
std.cfg: Improved documentation. No functional changes. [ci skip]
2015-01-18 16:11:20 +01:00
Martin Ettl
4294e7a2d9
std.cfg: Improved documentation and added support for more functions.
2015-01-18 15:31:16 +01:00
Martin Ettl
8dab677eac
std.cfg: Improved documentation and added ilogb function support.
2015-01-18 15:05:06 +01:00
Martin Ettl
7c91dd2da6
std.cfg: Improved function support and documentation.
2015-01-18 14:37:07 +01:00
Martin Ettl
b23772381d
std.cfg: Improved support for math functions.
2015-01-18 13:35:40 +01:00
orbitcowboy
42397ee8cb
std.cfg: Improved support for <cwchar> (wchar.h).
2015-01-15 23:14:10 +01:00
orbitcowboy
4e549d7d22
std.cfg: Fixed typo in previous commit, where support for wcsftime() from <cwchar> (wchar.h) was added.
2015-01-15 21:11:21 +01:00
orbitcowboy
fb984ab5e9
std.cfg: Added support for wcsftime() from <cwchar> (wchar.h).
2015-01-15 21:09:55 +01:00
orbitcowboy
4b71e5f9cb
std.cfg: Improved support for complex.h functions and improved documentation.
2015-01-15 15:25:50 +01:00
orbitcowboy
4222333785
std.cfg: Added documentation to some functions.
2015-01-15 10:43:15 +01:00
orbitcowboy
823af34c67
std.cfg: Added support for <cwtype> (wtype.h) functions.
2015-01-14 06:54:35 +01:00
orbitcowboy
c4fc2181a7
std.cfg: Added support for <csignal> (signal.h) functions.
2015-01-13 23:13:25 +01:00
orbitcowboy
da1389880a
std.cfg: Documented <csetjmp> (setjmp.h) functions. No functional changes.
2015-01-13 21:55:43 +01:00
orbitcowboy
b10a082ba5
std.cfg: Added support for <clocale> (locale.h) functions.
2015-01-13 21:49:08 +01:00
orbitcowboy
c8678c90f4
std.cfg: Fixed missing attributes of <ctime> (time.h) functions.
2015-01-13 19:29:44 +01:00
orbitcowboy
3f6933c7e3
std.cfg: Added support for <cfenv> (fenv.h) functions.
2015-01-13 19:21:22 +01:00
Martin Ettl
37c89a6b70
Fixed #6311 : Add support for GNU get_current_dir_name().
2015-01-11 10:12:39 +01:00
Martin Ettl
6f000fb16b
Fixed #6407 : Add support for C++11 float_t and double_t types.
2015-01-11 09:58:15 +01:00
Alexander Mai
b30f03709a
Remove <use-retval/> for feclearexcept() and getwchar()
2015-01-10 18:16:07 +01:00
PKEuS
c4269b3b44
Fixed #6390 , strncmp and similar functions are <pure/>
2015-01-09 14:35:12 +01:00
orbitcowboy
a5e3f2889c
std.cfg: Added functions from <cfenv>.
2015-01-09 13:39:46 +01:00
orbitcowboy
85bca7e22f
std.cfg: Improved documentation for some functions. No functional changes.
2015-01-07 20:15:08 +01:00
orbitcowboy
0202efc480
posix.cfg: Added more POSIX types.
2015-01-07 15:50:15 +01:00
orbitcowboy
346ec0e7e9
std.cfg: Added support for <cmath> functions.
2015-01-07 14:02:33 +01:00
orbitcowboy
64d81a6552
std.cfg: Improved <cstring> function strerror.
2015-01-07 10:29:53 +01:00