Daniel Marjamäki
|
0efa113b6e
|
fixed test/cfg/posix.c code
|
2015-03-14 19:40:13 +01:00 |
Daniel Marjamäki
|
fd6bd97972
|
Fixed #6495 (Improve check: uninitialized variable, 3rd function argument)
|
2015-03-14 19:23:33 +01:00 |
Simon Martin
|
4c916641cc
|
Ticket #6347: Fix use after delete when simplifying template instantiations.
|
2015-03-14 18:46:17 +01:00 |
Daniel Marjamäki
|
42c4aa1c49
|
Fixed #4880 (false negative: uninitialized variable, handling of conditional noreturn scopes)
|
2015-03-14 17:59:11 +01:00 |
Alexander Mai
|
d52e3c8eb7
|
Fix missing suppression in test/cfg/posix.c
|
2015-03-13 18:29:46 +01:00 |
PKEuS
|
6e0302fd56
|
Refactorized CheckBool::checkComparisonOfBoolWithInt(), CheckBool::checkComparisonOfBoolExpressionWithInt() and CheckBool::pointerArithBool():
- Support more patterns in CheckBool::pointerArithBool()
- Use AST and SymbolDatabase
- Removed redundant skipping over template arguments
|
2015-03-12 20:07:48 +01:00 |
PKEuS
|
7f2b6881b3
|
Refactorization: Avoid including path.h in (almost) every source file (via library.h)
|
2015-03-11 22:54:45 +01:00 |
PKEuS
|
bc5132e0ac
|
Refactorization: Moved declaration of errout, ... to testsuite.h, uniformized style
|
2015-03-11 22:54:43 +01:00 |
PKEuS
|
cd84d78e92
|
Ran AStyle, fixed VS2015 warning in symboldatabase.h
|
2015-03-11 20:26:53 +01:00 |
PKEuS
|
9bafa3bf25
|
Fixed false positive #6575
|
2015-03-11 20:25:27 +01:00 |
Alexander Mai
|
c8bee3e1a6
|
Merge branch 'master' of https://github.com/danmar/cppcheck
|
2015-03-11 18:59:56 +01:00 |
Alexander Mai
|
6bd7dd771d
|
Add some functions from <time.h> to posix.cfg (see #6577)
|
2015-03-11 18:59:34 +01:00 |
amai2012
|
ed097d4c4f
|
Merge pull request #540 from JakubMelka/ticket_695
Ticket #695: new style check : explicit declaration of ctor
|
2015-03-11 12:15:22 +01:00 |
Jakub Melka
|
e1e1dbfe97
|
Ticket #695: Fixed VS 2010 issue, switched to "style" severity, changed error messages and updated unit tests
|
2015-03-10 19:35:12 +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 |
Jakub Melka
|
b7d92a4fc7
|
Fixed warnings of CppCheck's own code (caused by new check #695)
|
2015-03-08 18:18:09 +01:00 |
Daniel Marjamäki
|
780a530e0e
|
test/cfg/windows.cpp: Added test for #6571, Library::isNotLibraryFunction() should return true for methods.
|
2015-03-08 16:23:54 +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
|
95411414c4
|
#6569 Add strcasestr function to gnu.cfg
|
2015-03-08 14:04:09 +01:00 |
Simon Martin
|
1d973b882d
|
Ticket #6567: Handle member functions in TemplateSimplifier::getTemplateNamePosition.
|
2015-03-07 21:52:12 +01:00 |
Jakub Melka
|
2af9212b16
|
Ticket #695: new style check : explicit declaration of ctor
|
2015-03-07 20:07:54 +01:00 |
Simon Martin
|
9c6a625f91
|
Ticket #6181: Normalize '>>' into '> >' when it's closing a C++11 template parameter list.
|
2015-03-07 11:06:04 +01:00 |
Daniel Marjamäki
|
f705cdce72
|
Fixed #6556 (Tokenizer::simplifyVarDecl: doesn't simplify template variables properly)
|
2015-03-06 17:30:20 +01:00 |
Alexander Mai
|
21ab4413aa
|
Fix compiler warnings
|
2015-03-05 20:49:42 +01:00 |
Alexander Mai
|
cbc8c4f57d
|
Fix unsuppressed warning in checkcfg target
|
2015-03-05 06:57:30 +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 |
Daniel Marjamäki
|
6646a896f9
|
Fixed #6446 (FP zerodivcond on double arithmetics)
|
2015-03-03 15:50:31 +01:00 |
Daniel Marjamäki
|
925f077b8a
|
Fixed #6110 (TemplateSimplifier::simplifyCalculations: wrong simplification of 'if (VG_(strlen)(s)>=3)')
|
2015-03-02 16:27:00 +01:00 |
Daniel Marjamäki
|
86cdc8e7a6
|
Fixed #6540 (Tokenizer::simplifyKnownVariables: Missing varid for simplification in conditional code)
|
2015-03-02 06:18:00 +01:00 |
Alexander Mai
|
49099e78ff
|
Add more string conversion functions to library files
|
2015-03-01 20:18:26 +01:00 |
Daniel Marjamäki
|
830f656a25
|
Library: variables are not library functions (variable declarations can look like function calls)
|
2015-03-01 11:46:43 +01:00 |
Daniel Marjamäki
|
449b88aa0c
|
Fixed #6547 (Regression - unknown macro causes analysis error)
|
2015-02-28 11:09:39 +01:00 |
Daniel Marjamäki
|
3add466035
|
Add isFunctionHead() in Tokenizer
|
2015-02-27 18:29:34 +01:00 |
Daniel Marjamäki
|
acbf48c7fa
|
Fixed #6548 (Tokenizer: Wrong varid set after function which is throw())
|
2015-02-26 16:31:42 +01:00 |
Alexander Mai
|
cea71f8625
|
Fix false positive ignoredReturnValue about strtol
|
2015-02-25 22:03:10 +01:00 |
Daniel Marjamäki
|
d1892786b8
|
ValueFlow: Improved when using '[' on arrays and strings
|
2015-02-24 15:57:39 +01:00 |
Alexander Mai
|
8427398d9d
|
#6539 Segmentation fault in Tokenizer::duplicateTypedef. Avoid crash on garbage code
|
2015-02-24 11:15:23 +01:00 |
Robert Reif
|
130ffc5752
|
Fixed #6538 (Symboldatabase: improve isFunction)
|
2015-02-24 06:11:31 +01:00 |
Alexander Mai
|
b9cc5b5c6b
|
#6543 crash: CheckCondition::checkBadBitmaskCheck ; wine dlls/gdi32/dibdrv/primitives.c. Run astyle.
|
2015-02-23 22:06:55 +01:00 |
Daniel Marjamäki
|
fb5cc6fded
|
Fixed #5905 (isSameExpression: comparisons 'a<b' and 'a>b' are same)
|
2015-02-23 16:38:55 +01:00 |
Daniel Marjamäki
|
830d1eb3fd
|
Revert "Fixed #6538 (Symboldatabase: improve isFunction)"
This reverts commit d7ef89bbe6 .
There was crashes in a Travis job.
|
2015-02-23 08:07:19 +01:00 |
Robert Reif
|
d7ef89bbe6
|
Fixed #6538 (Symboldatabase: improve isFunction)
|
2015-02-23 06:49:50 +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 |
Daniel Marjamäki
|
d4fa656e58
|
Refactor and improve Tokenizer::sizeofAddParentheses
|
2015-02-22 13:38:06 +01:00 |
PKEuS
|
bedc935ab0
|
New check: Warn about constant expression if ( unknown | non_null_constant) (#6519)
|
2015-02-22 13:09:39 +01:00 |
PKEuS
|
5f31242ee8
|
CheckOther::checkRedundantAssignment(): Bail out on inline assembly (#6525)
|
2015-02-22 12:03:53 +01:00 |
PKEuS
|
f04070940e
|
Fixed setVarId on ternary operator in initialization list
|
2015-02-22 11:57:46 +01:00 |
Alexander Mai
|
6bfeb71dd2
|
Add more interfaces to gnu and posix libraries
|
2015-02-21 11:08:58 +01:00 |
Alexander Mai
|
6d9eb6199d
|
posix.cfg: add support for sched.h and 1 bugfix
|
2015-02-20 20:50:20 +01:00 |
PKEuS
|
6227abac73
|
Fixed GCC (testsymboldatabase.cpp) and MSVC (checkother.cpp) warnings
|
2015-02-18 21:19:36 +01:00 |
Daniel Marjamäki
|
e251a99817
|
AST: fix handling of sizeof. ticket #6515
|
2015-02-18 19:56:13 +01:00 |
Daniel Marjamäki
|
fd4d4bba33
|
test/cfg/posix.c: fix tests
|
2015-02-17 19:58:07 +01:00 |
Daniel Marjamäki
|
6363c1359d
|
TestUninitVar: moved out posix.cfg testing
|
2015-02-17 18:16:29 +01:00 |
Daniel Marjamäki
|
d900148e6b
|
TestUninitVar: Fix compile error
|
2015-02-17 18:09:23 +01:00 |
Daniel Marjamäki
|
e5c098c7de
|
TestUninitVar: move out posix.cfg testing
|
2015-02-17 18:08:19 +01:00 |
Daniel Marjamäki
|
e9663873e5
|
TestOther: refactoring library testing
|
2015-02-17 15:52:45 +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 |
Alexander Mai
|
115cefc8fb
|
#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:06:08 +01:00 |
Daniel Marjamäki
|
42b40b0c85
|
Merge pull request #525 from Dmitry-Me/moreDoubleSlashCases
Handles double slashes close to end of path, more tests
|
2015-02-16 18:02:51 +01:00 |
Daniel Marjamäki
|
d83f07dddd
|
TestOther: moved posix.cfg testing
|
2015-02-16 16:25:27 +01:00 |
Dmitry-Me
|
f0e0201c2d
|
Better handle double slashes, more tests
|
2015-02-16 13:11:13 +03:00 |
Dmitry-Me
|
764e7ff79b
|
Deduplicate a multislash test
|
2015-02-16 10:19:08 +03:00 |
Daniel Marjamäki
|
fe8ba51f03
|
TestMemLeak: moved posix.cfg tests
|
2015-02-15 18:11:09 +01:00 |
Daniel Marjamäki
|
adedb5a888
|
TestMemLeakInFunction: Moved test to cfg test
|
2015-02-15 15:56:05 +01:00 |
Daniel Marjamäki
|
cc0f61376a
|
more cleanup of std.cfg testing in TestBufferOverrun
|
2015-02-14 18:55:54 +01:00 |
Daniel Marjamäki
|
e510902d58
|
TestBufferOverrun cleanup some more std.cfg testing
|
2015-02-14 17:30:08 +01:00 |
Daniel Marjamäki
|
86cf372309
|
Merge pull request #522 from simartin/revert_6181_add_6354_6414
Revert fix for #6181, that caused #6354 and #6414.
|
2015-02-14 16:59:27 +01:00 |
Daniel Marjamäki
|
360ec9d853
|
updated TestBufferOverrun test case. Since checker doesn't use library dont load std.cfg.
|
2015-02-14 16:44:08 +01:00 |
Daniel Marjamäki
|
0c0d62171e
|
removed duplicate testcase. See testcase for #836
|
2015-02-14 16:41:51 +01:00 |
Daniel Marjamäki
|
a57d5d7eda
|
moved testcases
|
2015-02-14 16:37:48 +01:00 |
Daniel Marjamäki
|
e01b30345e
|
move testcases in TestBufferOverrun
|
2015-02-14 16:29:05 +01:00 |
Daniel Marjamäki
|
166db40af2
|
Fix TestBufferOverrun test case, it was wrongly written.
|
2015-02-14 15:51:13 +01:00 |
Daniel Marjamäki
|
c43d537726
|
renamed TestBufferOverrun test method to same name as CheckBufferOverrun method that is tested
|
2015-02-14 15:49:17 +01:00 |
Daniel Marjamäki
|
2b7c7134e1
|
TestBufferOverrun: move memset test
|
2015-02-14 15:46:00 +01:00 |
Simon Martin
|
c4c46be972
|
Revert fix for #6181, that caused #6354 and #6414.
|
2015-02-14 12:29:05 +01:00 |
Luis Díaz Más
|
22424ba54a
|
Add CMake files
|
2015-02-13 19:00:14 +01:00 |
Dmitry-Me
|
7961bba0da
|
Path: better handling of UNC paths
|
2015-02-13 16:32:45 +01:00 |
Daniel Marjamäki
|
e0d90c00be
|
TestBufferOverrun: Cleanup testcases for memory functions
|
2015-02-13 16:16:59 +01:00 |
Daniel Marjamäki
|
2d21eb07ba
|
Cleaned up snprintf hardcoding in CheckBufferOverrun
|
2015-02-13 06:44:38 +01:00 |
Daniel Marjamäki
|
a6cfd15bde
|
refactoring TestBufferOverrun
|
2015-02-12 17:36:22 +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 |
Daniel Marjamäki
|
b43c2de63a
|
refactor cfg testing in TestClass
|
2015-02-11 06:29:33 +01:00 |
Daniel Marjamäki
|
d9deabe2ce
|
TestBufferOverrun: clean up
|
2015-02-10 17:29:36 +01:00 |
Daniel Marjamäki
|
53718047f1
|
refactoring TestBufferOverrun
|
2015-02-10 06:49:48 +01:00 |
Daniel Marjamäki
|
9aa0420472
|
TestBufferOverrun: Moved out cfg tests. Created minsize-mul testing in TestBufferOverrun
|
2015-02-10 06:44:19 +01:00 |
Daniel Marjamäki
|
ce1d0099cf
|
TestBufferOverrun: Moved out cfg tests. Created minsize-argvalue testing in TestBufferOverrun
|
2015-02-10 06:35:41 +01:00 |
Daniel Marjamäki
|
631536980c
|
TestBufferOverrun: split up strncpy testing, keep checker testing in TestBufferOverrun and move cfg tests to cfg test
|
2015-02-09 16:20:28 +01:00 |
Daniel Marjamäki
|
8a1b8df1ba
|
ValueFlow: Improved handling of alias values in valueFlowForward
|
2015-02-08 19:20:05 +01:00 |
Daniel Marjamäki
|
62a5d88eb0
|
ValueFlow: Improved handling of strings
|
2015-02-07 18:14:22 +01:00 |
Daniel Marjamäki
|
29db3eb848
|
Fixed #5980 (ValueFlow: pointer cant be 0 below throw in switch)
|
2015-02-07 10:45:30 +01:00 |
Daniel Marjamäki
|
eec938dbad
|
Fixed #6249 (False positive: Incorrect detection of (assignment + comparison) inside for-clause)
|
2015-02-05 20:17:30 +01:00 |
PKEuS
|
f1714110d0
|
Fixed crash if double constants are passed as default arguments (#6494)
|
2015-02-03 22:12:05 +01:00 |
Daniel Marjamäki
|
c2b85d1032
|
Fixed testrunner
|
2015-02-03 18:35:52 +01:00 |
orbitcowboy
|
84e831c21c
|
posix.cfg: Improved support for functions from <unistd.h>.
|
2015-02-02 17:23:43 +01:00 |
Dmitry-Me
|
21fbc30d59
|
Calling a function using Class::func() syntax should not be simplified
|
2015-02-02 10:37:10 +03:00 |
PKEuS
|
451a277b18
|
Refactorization: Support function default values in ValueFlow, removed now obsolete CheckNullPointer::nullPointerDefaultArgument().
-> Use valueFlowForward() to parse values passed to functions
-> valueFlowForward(): Set value in first occurrence of a variable in a condition
|
2015-02-01 15:15:00 +01:00 |
Daniel Marjamäki
|
78b711fd7b
|
astyle formatting
|
2015-02-01 14:50:51 +01:00 |
PKEuS
|
f78744ac30
|
Fixed AST generation if expression starts with ternary operator
|
2015-02-01 14:02:19 +01:00 |