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
orbitcowboy
fa5375bf94
Added more functions from <cwchar> to std.cfg.
2015-01-07 10:16:58 +01:00
orbitcowboy
fd9134fe5b
Added more functions to std.cfg from <cwchar> (wchar.h).
2015-01-07 03:08:34 +01:00
orbitcowboy
ba837a6f2d
Added support for strpbrk to std.cfg. Running astyle.
2015-01-07 02:34:41 +01:00
Daniel Marjamäki
f998871d59
astyle formatting
2015-01-04 13:51:49 +01:00
PKEuS
e06a4cdf00
Refactorized CheckStl::if_find():
...
- Added support for find()-like functions to Library::Container
- Use <container> information from library
- Fixed false positive #6402
2015-01-04 12:43:50 +01:00
PKEuS
e39729ffcc
Library: Add <container> tag to Libraries, provide configuration for std::vector, std::deque, std::array and STL strings
...
Token: Added function to jump to the next template argument
2015-01-03 22:18:33 +01:00
Daniel Marjamäki
b8371ebd87
Revert 2e45df3b
. Because there are FP.
2014-12-18 06:37:15 +01:00
PKEuS
27af2bf35d
Fixed #6335 : Added definition for Q_PROPERTY to qt.cfg
2014-12-17 20:03:11 +01:00
orbitcowboy
2e45df3b72
Fixed #6341 : false negative uninitvar pattern "return foo ( %var%"
2014-12-17 17:43:31 +01:00
orbitcowboy
32cd7d727d
Fixed #6325 : false negative: uninitialized variable usage (write, posix).
2014-12-15 10:05:44 +01:00
Martin Ettl
87a42cd0f6
running Astyle. No functional changes.
2014-12-14 01:52:00 +01:00
PKEuS
fef8083ff7
Fixed #6324 : Added definition of Q_DISABLE_COPY to qt.cfg
2014-12-14 14:23:29 +01:00
Thomas Jarosch
6b78ae7c46
Add mmap() / mmap64() / munmap() to posix.cfg. Enables basic leak tracking
...
Includes function prototype in posix.cfg as comment
for easier overview of the function arguments.
2014-12-14 13:30:24 +01:00
orbitcowboy
ac4f7879db
posix.cfg: Added support for rewinddir().
2014-12-10 16:10:03 +01:00
Thomas Jarosch
269a4419f0
Fixed false positives about strdupa() / strndupa() memleak
...
strdupa() / strndupa() allocates memory on the stack using alloca().
This memory is freed automatically once the current function is left.
2014-12-10 22:23:52 +01:00
orbitcowboy
def3491829
posix.cfg: Added support for readdir().
2014-12-10 17:44:21 +01:00
PKEuS
520424324d
Fixed wrong configuration of modf in std.cfg ( #6312 )
2014-12-10 16:33:04 +01:00
Alexander Mai
d11eb4931a
#6306 false positive with strxfrm NULL argument. Adjust std.cfg in favor of no false positive
2014-12-07 15:24:27 +01:00
Robert Reif
42f709c09d
Fixed #6229 (Move Windows builtin types __intXX to library)
2014-10-21 06:11:19 +02:00
Robert Reif
e2f72b4cb1
Fixed #6215 (Move Windows platform types into library)
2014-10-19 07:34:40 +02:00