Commit Graph

218 Commits

Author SHA1 Message Date
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
Alexander Mai a2f669eff7 Using the return value of strtok() is not mandatory since it the first argument may be modified (fixing a FP in LibreOffice) 2014-10-18 08:29:42 +02:00
Daniel Marjamäki 44420bdbf1 cfg: formatted the cfg files with the runastyle script 2014-10-14 06:46:47 +02:00
Daniel Marjamäki a19545eb3a Reverted 5e08784b5c. There are unwanted changes, for instance for closedir. The use-retval should only be used when it's pointless to call the function without taking the return value. 2014-10-14 06:20:07 +02:00
orbitcowboy 5e08784b5c Fixed #6196: Posix support for ignoreReturnValue and improved indentation of posix.cfg 2014-10-08 07:57:14 +02:00
PKEuS 374ea8f039 Fixed false positive ignoredReturnValue on unknown member function log() (#6197) 2014-09-29 19:55:32 +02:00
PKEuS cbb8360b30 Added version attribute to .cfg files (#5928) 2014-09-29 16:26:17 +02:00
PKEuS df01bf5006 Fixed false positive introduced recently: return value of time() does not need to be taken 2014-09-28 10:04:33 +02:00
PKEuS 210294443e New check: Check for unused return values (#653) 2014-09-27 21:31:04 +02:00
Alexander Mai b0c34390cd Fix FP: tmpnam() expects a valid pointer, an uninitialized array (of conforming size) is fine 2014-09-27 20:29:54 +02:00
Alexander Mai 98d4c944e3 #6163 False nullPointer for strtok(NULL, ...). Correct std.cfg 2014-09-15 20:57:34 +02:00
PKEuS 6c2943d33d Extended std.cfg 2014-09-11 21:37:39 +02:00
PKEuS fd2346e4ec Added strtok and assert to std.cfg 2014-09-11 20:27:04 +02:00
PKEuS a0d8fc1df4 Fixed 32 wrongly configured functions (#6120) and added support for second argument of strchr() to std.cfg. 2014-09-02 17:55:59 +02:00
PKEuS f717f4c6b8 Set <pure/> attribute for various functions in std.cfg 2014-09-02 13:39:34 +02:00
PKEuS d118a56b42 Added support for several Qt integer types (#5094) 2014-09-02 09:18:39 +02:00
Alexander Mai f94e208862 #6116 False positive uninitvar - first argument to wcstombs(). Correct stf.cfg 2014-09-01 19:53:24 +02:00
PKEuS 40e5dab9dc Refactorization in checkmemoryleak.cpp:
- Use Library to detect noreturn/notnoreturn functions
- Removed realloc from std.cfg as long as there is no proper way to configure such functions
2014-09-01 13:54:33 +02:00
Alexander Mai 3aeecb8a05 #6100 False positive nullPointer - calling mbstowcs(NULL,). wcstombs has also been fixed 2014-08-27 19:32:53 +02:00
Daniel Marjamäki d414aa0ae5 astyle formatting 2014-08-15 16:01:48 +02:00
Daniel Marjamäki 62cde673ee qt.cfg: Define Q_DECL_EXPORT and Q_DECL_IMPORT 2014-07-29 16:56:15 +02:00
amai2012 77095e2b05 Add some more functions to posix.cfg which allow to enable TestBufferOverrun::buffer_overrun_1_posix_functions
Fix some compiler warnings on MSVC
2014-07-05 22:47:10 +02:00
Daniel Marjamäki a3acc3241e Library: Added <minsize> element used for buffer overrun checking 2014-07-05 20:31:43 +02:00
PKEuS 220f7503ce Fixed wrong configuration of itoa in std.cfg 2014-07-01 19:25:26 +02:00
orbitcowboy ff9a39d1f6 avr.cfg and posix.cfg: Added support for more functions. 2014-06-26 16:22:49 +02:00
orbitcowboy 0b39fedd45 avr.cfg: Added support for more functions. 2014-06-26 11:35:28 +02:00
orbitcowboy d19b6f181d Extended std.cfg, posix.cfg and avr.cfg 2014-06-25 15:09:03 +02:00
orbitcowboy c7310c0ab0 std.cfg: Added support for more functions. 2014-06-25 14:27:01 +02:00
orbitcowboy 95c49ec5dc Extended std.cfg about more missing functions. Moved POSIX functions to posix.cfg. Extended posix.cfg about more memory allocating functions. 2014-06-25 12:00:24 +02:00
PKEuS ac4e727da7 Removed redundant code (replaced by libaries, should fix #5934). 2014-06-24 21:57:19 +02:00
orbitcowboy 731180b7dd std.cfg: Added support for qsort and improved stro* functions. 2014-06-24 14:16:54 +02:00
orbitcowboy 0a17473962 std.cfg: Added support for bsearch. 2014-06-23 14:43:56 +02:00
orbitcowboy f90445e947 Extended std.cfg and avr.cfg about more functions. 2014-06-23 14:15:47 +02:00
orbitcowboy f57e875351 Astyle run; Extended std.cfg and avr.cfg about a few more functions. 2014-06-23 11:59:14 +02:00
Martin Ettl be51637c1c avr.cfg: Added support for some stdio.h macros. 2014-06-20 09:49:06 +02:00
Daniel Marjamäki dec251ac44 ValueFlow: Refactoring. Use utility function isVariableChanged. 2014-06-19 05:41:19 +02:00
Martin Ettl e8f0da845b avr.cfg: Removed NAN definition. 2014-06-18 05:38:05 +02:00
Martin Ettl 2ee0723ad4 avr.cfg: Added macros of stdint.h. 2014-06-18 05:34:31 +02:00
Martin Ettl 156300b2bf avr.cfg: Added accidently commented out define. 2014-06-18 05:20:33 +02:00
Martin Ettl f0099905e9 avr.cfg: Added more defines. 2014-06-18 05:18:48 +02:00
orbitcowboy 0804997c9b avr.cfg: Cleanup. 2014-06-18 11:58:32 +02:00
orbitcowboy 5d579dc21b avr.cfg: Added more defines. 2014-06-18 08:31:32 +02:00
Daniel Marjamäki b983a8795f runastyle
[ci skip]
2014-06-18 05:43:44 +02:00
orbitcowboy 2255ece5c5 Extended std.cfg about alloca function and avr.cfg about a few definitions. 2014-06-17 17:00:27 +02:00
orbitcowboy 11cf4d3215 avr.cfg: Added more podtypes. 2014-06-17 13:04:48 +02:00
orbitcowboy 5a4cf3be53 Cleanup avr.cfg file. 2014-06-17 09:02:04 +02:00
orbitcowboy fc84e9dcff Running astyle, no functional changes. [ci skip]. 2014-06-17 08:55:22 +02:00
orbitcowboy b501708b6f Added cfg for AVR microcontrollers. This config file contains podtype definitions so far. 2014-06-16 15:14:33 +02:00
orbitcowboy be49185471 Fixed #5925: The first include in path.cpp is not path.h and astyle run. 2014-06-16 15:11:44 +02:00
orbitcowboy c8e4ac1b03 Astyle run [ci skip] 2014-06-16 14:01:56 +02:00
orbitcowboy 50e15f3f02 posix.cfg: Add more podtype definition for POSIX systems. 2014-06-16 14:01:25 +02:00
orbitcowboy 072dc4881c posix.cfg: Started to add podtype definition for POSIX systems. 2014-06-16 13:45:32 +02:00
Pierre Schweitzer cd69b000c4 Add a few more types for Windows 2014-06-14 17:11:28 +02:00
Pierre Schweitzer 2a027039c7 Add Windows type sizes when possible 2014-06-13 23:17:01 +02:00
Pierre Schweitzer d055d9e3dc Add sign information for a few Windows types 2014-06-13 18:17:06 +02:00
Daniel Marjamäki 977af89fa9 std.cfg: configure standard types 2014-06-12 06:43:19 +02:00
Daniel Marjamäki 42c3b3c89d Library: Change range operator in validation pattern to ':' 2014-06-08 18:12:11 +02:00
PKEuS 35f644542e Added HeapReAlloc to windows.cfg (as suggested in #3155) 2014-05-22 11:07:44 +02:00
Daniel Marjamäki 8e13c74695 Fixed #5778 (False positive: Deallocating a deallocated pointer when exit function is called) 2014-05-10 21:26:27 +02:00
Martin Ettl b363d0641a posix.cfg: Fixed FP for getcwd().First and second parameter is allowed to be zero. 2014-05-02 04:56:12 +02:00
Daniel Marjamäki 44a66e6a5a Fixed #1416 (false negative resource leak when calling fdopen) 2014-04-20 10:50:32 +02:00
Daniel Marjamäki a9990bbe33 windows.cfg: add allocation functions that use free to dealloc. This reverts b13e3ac5. 2014-04-19 13:19:08 +02:00
Martin Ettl ed54b93317 Fixed FP in posix.cfg and mkdir() for second parameter. 2014-04-18 21:46:32 +02:00
Pierre Schweitzer cf12f2aaac updated posix.cfg 2014-04-18 15:20:16 +02:00
orbitcowboy 66329fe8b8 posix.cfg: Fixed FP for isatty() function and added unit cases. 2014-04-10 17:53:04 +02:00
orbitcowboy baf8d09a0d Fixed FP for nullpointer dereference when using putchar. 2014-04-09 17:02:17 +02:00
Pierre Schweitzer a9e53026bd Work on windows.cfg: - Add more resource/memory functions - Complete the information about some functions 2014-04-09 10:30:57 +02:00
orbitcowboy dd61c5db47 Fixed FP, nullpointer for memchr. 2014-04-08 18:39:50 +02:00
unknown 9ae59290dd #5645 False positive Null pointer derefence about first argument to fputc() 2014-04-07 12:08:34 +02:00