PKEuS
|
3a5cef8a7e
|
Refactorization: Improved usage of Settings instances in test suite
|
2015-10-07 18:40:03 +02:00 |
PKEuS
|
128a926d9d
|
Collected some more garbage code tests in testgarbage.cpp; Avoid std::string creation in testgarbage.cpp
|
2015-08-16 19:12:12 +02:00 |
Daniel Marjamäki
|
9085fdc156
|
Fixed #6887 (False positive eraseDereference - container is member of member variable)
|
2015-07-30 10:13:49 +02:00 |
PKEuS
|
e95800bed4
|
Added regression test for #4816
Ran AStyle
|
2015-07-23 20:53:50 +02:00 |
Daniel Marjamäki
|
3dbf290220
|
Refactor CheckStl::erase so it doesn't use ExecutionPath
|
2015-07-23 18:53:31 +02:00 |
PKEuS
|
7f6b6e43b1
|
Support strings in CheckStl::mismatchingContainers() (#6839)
|
2015-07-21 14:13:26 +02:00 |
Alexander Mai
|
f0bc300198
|
#6510 False positive performance warning for std::list::size(). Fix this and other similar false positives. Refactoring of Variable::isStlType(), use fail-safe std::set instead of plain array. Run astyle
|
2015-05-17 20:02:41 +02:00 |
PKEuS
|
33277c6110
|
Fixed false positive #6679, fixed unit test for #6663.
|
2015-05-11 13:10:11 +02:00 |
Daniel Marjamäki
|
aab1d83075
|
Updated error message. write variable name.
|
2015-05-02 16:55:17 +02:00 |
PKEuS
|
4cbbd44d49
|
Fixed false positive #6663: Better support for loops in CheckStl::readingEmptyStlContainer()
|
2015-05-02 14:09:48 +02:00 |
Daniel Marjamäki
|
dc54676289
|
Reverted my changes I made by mistake in previous commit
|
2015-05-02 14:01:31 +02:00 |
Daniel Marjamäki
|
28985d1baa
|
manual: Document the cwe attribute
|
2015-05-02 11:43:42 +02:00 |
Alexander Mai
|
42d9afe7de
|
posix.cfg add more interfaces from stdlib.h. run astyle
|
2015-03-21 12:26:07 +01:00 |
Jakub Melka
|
a49efb13f6
|
Added auto_ptr checking for malloc
|
2015-03-19 06:41:54 +01:00 |
PKEuS
|
bc5132e0ac
|
Refactorization: Moved declaration of errout, ... to testsuite.h, uniformized style
|
2015-03-11 22:54:43 +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
|
11fa185cae
|
Fixed crash on range-based for-loop
|
2015-01-03 22:36:39 +01:00 |
PKEuS
|
7ece58c3a0
|
CheckStl::stlOutOfBounds() now uses <container> information from Libraries
|
2015-01-03 22:18:33 +01:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
PKEuS
|
1355f49af7
|
Fixed false positive: Support assignments in CheckStl::if_find()
|
2015-01-03 11:29:13 +01:00 |
PKEuS
|
8885ac3eba
|
Fixed #6217, refactorized CheckStl::if_find(): allow all comparison operators, use AST, fixed wrong unit tests
|
2015-01-03 11:07:11 +01:00 |
Daniel Marjamäki
|
051d42ae6b
|
astyle formatting
|
2014-11-20 14:20:09 +01:00 |
orbitcowboy
|
f5d804f71a
|
running astyle
|
2014-11-20 10:13:03 +01:00 |
PKEuS
|
bb8c8d53cc
|
Support do-loops in CheckStl::stlOutOfBounds()
|
2014-10-02 20:38:55 +02:00 |
PKEuS
|
865df4e207
|
Fixed false negative #4306: Detect loop access of empty STL container
|
2014-08-09 10:06:44 +02:00 |
Alexander Mai
|
2e3f26ba58
|
Patch from Dmitry-Me: reorder checks so that cheaper ones go first, reuse previously computed values, return early on edge condition
|
2014-06-16 21:36:31 +02:00 |
amai2012
|
c61d2b9f41
|
#5926 Dangerous iterator comparison using operator< on 'std::deque'.
std::deque features a random access iterator, so warning stlBoundaries
is a false positive
|
2014-06-16 20:50:47 +02:00 |
Mark de Wever
|
b4b340b7be
|
Fixed #5677 (Fix overzealous substr() warning)
|
2014-04-13 19:04:35 +02:00 |
PKEuS
|
8cb3b13e56
|
Support "else if" and do-loop in CheckStl::checkDereferenceInvalidIterator()
|
2014-04-12 20:03:07 +02:00 |
PKEuS
|
e8ac355b39
|
Refactorized iterator checking:
- Fixed false positive #5669
- Use symboldatabase in CheckStl::pushback()
- Improved support for erase on std::vector and find
|
2014-04-12 20:03:07 +02:00 |
Daniel Marjamäki
|
59cd1879db
|
Fixed #5467 (False positive incorrectly claiming use after erase)
|
2014-04-09 10:32:56 +02:00 |
PKEuS
|
7e4081f7f5
|
Treat syntaxError and cppcheckError as InternalErrors (throw as exception, #4268)
|
2014-03-27 13:15:21 +01:00 |
Alexander Mai
|
e1c565357a
|
Invalid code cause SIGSEGV since loop variable tok2 was not checked properly
|
2014-03-22 10:32:24 +01:00 |
PKEuS
|
af161fc361
|
Rewrote CheckStl::readingEmptyStlContainer(), resolving all its false positives shown on CppChecks own code
|
2014-03-18 12:38:22 +01:00 |
Pranav Khanna
|
f8a4fb91fe
|
Fixed #3796 (new check: redundant initialization with empty string)
|
2014-03-03 18:27:45 +01:00 |
Daniel Marjamäki
|
fd3a8a2a18
|
Update copyright
|
2014-02-15 07:45:39 +01:00 |
Lucas Manuel Rodriguez
|
a34d2eb7b3
|
Fixed #4938: (.empty() method false positive for non-STL classes)
|
2014-01-30 18:09:24 -03:00 |
PKEuS
|
4f0121ee2f
|
Splitted simplification out of tokenize()
|
2013-12-30 17:45:28 +01:00 |
Daniel Marjamäki
|
8687e85e56
|
Fixed #4850 (False positive: invalidIterator1 detected when iterator container is member of some struct)
|
2013-10-26 17:48:20 +02:00 |
Steve Duan
|
cf0c666d79
|
Fixed #5041 (Improve check: support 'auto' for 'Iterator used after element has been erased')
|
2013-09-28 11:50:45 +02:00 |
PKEuS
|
a9a5dc0354
|
Updated to AStyle 2.03, require this version
|
2013-08-07 16:27:37 +02:00 |
Daniel Marjamäki
|
287782a679
|
Fixed #4390 (False alarm 'Object pointed by an auto_ptr is destroyed using operator delete. You should not use auto_ptr for pointers obtained with operator new[].')
|
2013-05-01 11:11:57 +02:00 |
PKEuS
|
6f9886a1b9
|
Removed more duplicate unit tests
|
2013-04-13 02:07:18 -07:00 |
zblair
|
ecfe4eb5be
|
Fixed #3372 (New check: dereference iterator and then checking it)
|
2013-04-04 21:14:59 -07:00 |
Alexander Mai
|
b9c27699b3
|
Fixed #4684 (cppcheck crash in template function call.)
|
2013-03-29 19:29:23 +01:00 |
Ettl Martin
|
1b9c1c03fa
|
unittests: removed not needed '\n' at the end of testcases.
|
2013-03-20 15:36:16 +01:00 |
PKEuS
|
641ac5c02a
|
Fixed #4352: Ensure that class provides an iterator interface.
|
2013-03-14 09:00:22 -07:00 |
PKEuS
|
0f03995995
|
Added support for different containers, while-loops and if to CheckStl::stlOutOfBounds()
|
2013-03-04 10:59:46 -08:00 |
PKEuS
|
34b1d75a10
|
Fixed handling of std::vector::insert() in CheckStl::pushback()
|
2013-03-04 02:57:09 -08:00 |
PKEuS
|
d78c06dc3f
|
Replaced _settings->isEnabled("style") by _settings->isEnabled("warning") wherever warnings are issued
|
2013-03-03 02:41:59 -08:00 |