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