Daniel Marjamäki
|
e73057eb44
|
Fixed #10275 (ValueFlow: condition 'x>=0 && x < 10')
|
2021-05-16 10:34:22 +02:00 |
Daniel Marjamäki
|
2c10e0747a
|
extracttests: ensure error comment is written on proper line
|
2021-05-16 08:40:04 +02:00 |
Daniel Marjamäki
|
8476900a62
|
checkuninitvar; refactor code a bit
|
2021-05-16 08:38:51 +02:00 |
keinflue
|
eee27b975f
|
gtk.cfg: g_strdup and g_strcmp0 allow NULL args (#3258)
|
2021-05-15 22:24:55 +02:00 |
Daniel Marjamäki
|
a07ea7e9e9
|
testbufferoverrun: refactor TODO test cases. Use TODO_ASSERT_EQUALS.
|
2021-05-15 21:08:07 +02:00 |
Daniel Marjamäki
|
a2ff7752b4
|
testbufferoverrun; refactor TODO test cases
|
2021-05-15 20:42:57 +02:00 |
Daniel Marjamäki
|
a40b85ccc6
|
testbufferoverrun: refactor TODO test case for strcat
|
2021-05-15 20:37:16 +02:00 |
Daniel Marjamäki
|
b8314289c6
|
testbufferoverrun; fixed TODO test cases for pointer arithmetic overflows
|
2021-05-15 20:32:46 +02:00 |
Daniel Marjamäki
|
680a1ee1b9
|
testbufferoverrun; remove TODO strncat/strcat test cases
|
2021-05-15 20:12:36 +02:00 |
Daniel Marjamäki
|
db050d0796
|
extracttests: write expected warning as comment in testfile
|
2021-05-15 19:59:28 +02:00 |
Daniel Marjamäki
|
26e9525683
|
testbufferoverrun; test case cleanup, ensure there is not uninitialized reads etc
|
2021-05-15 15:35:14 +02:00 |
Daniel Marjamäki
|
e66427c395
|
testnullpointer; fix extracttests syntax error
|
2021-05-15 14:59:00 +02:00 |
Daniel Marjamäki
|
3c885df74d
|
testunusedvar: Remove test cases that have undefined behavior
|
2021-05-15 14:55:35 +02:00 |
orbitcowboy
|
e072c2d786
|
uninitvar: Added a regression test for #7736
|
2021-05-15 14:16:46 +02:00 |
Daniel Marjamäki
|
899b88754f
|
uninitialized variables; fix false positive in loop
|
2021-05-15 11:16:47 +02:00 |
Paul Fultz II
|
eb96e4980e
|
Fix issue 10268: ValueFlow; Wrong value in for loop (#3257)
|
2021-05-15 08:39:20 +02:00 |
Daniel Marjamäki
|
c67e618627
|
self check; Fix shadow variable
|
2021-05-14 23:05:27 +02:00 |
Daniel Marjamäki
|
2fcc0c3959
|
Remove extra syntax checking of test cases, it's too pedantic for now
|
2021-05-14 22:32:30 +02:00 |
Daniel Marjamäki
|
11c0cc3a6e
|
extracttests; Fix syntax error in new unit test
|
2021-05-14 22:29:15 +02:00 |
Daniel Marjamäki
|
105bb78775
|
CI; fix test/cfg/openmp.c
|
2021-05-14 22:16:54 +02:00 |
Daniel Marjamäki
|
809c70b9c3
|
uninitialized variables; fix FP in for loop
|
2021-05-14 21:36:51 +02:00 |
Daniel Marjamäki
|
404b82fc21
|
unused var; fix todo test cases, redundant assignment of array in loop
|
2021-05-14 19:07:30 +02:00 |
Daniel Marjamäki
|
56410c3d00
|
testunusedvar: fix mismatching allocation/deallocation in test
|
2021-05-14 14:01:39 +02:00 |
Daniel Marjamäki
|
5b3227db8d
|
CI; extract tests and perform syntax check
|
2021-05-14 13:55:25 +02:00 |
Daniel Marjamäki
|
c29997b117
|
uninitvar: fixed TODO assertion
|
2021-05-14 11:54:18 +02:00 |
Daniel Marjamäki
|
56bc5536aa
|
testunusedvar: move UB testcase to testuninitvar
|
2021-05-14 11:24:39 +02:00 |
Daniel Marjamäki
|
ffac1d1b00
|
testunusedvar.cpp: remove test cases that has undefined behavior
|
2021-05-14 11:06:44 +02:00 |
Daniel Marjamäki
|
45eb9f82a0
|
Fix CI; Cppcheck find some more unusedAllocatedMemory violations in test/cfg/..
|
2021-05-13 23:08:58 +02:00 |
Daniel Marjamäki
|
fd31f0846e
|
unused var; remove test case that has undefined behavior
|
2021-05-13 21:53:06 +02:00 |
Daniel Marjamäki
|
1def0d797b
|
extracttests: disable TestUnusedVar::localvar2 tests they do not make sense externally
|
2021-05-13 21:31:44 +02:00 |
Daniel Marjamäki
|
2925627eb6
|
extracttests.py: add a few missing includes
|
2021-05-13 20:50:24 +02:00 |
Daniel Marjamäki
|
6d3d907e10
|
extracttests.py: Fix syntax error
|
2021-05-13 20:33:27 +02:00 |
Daniel Marjamäki
|
d549770b5b
|
updated extracttests.py. fix syntax errors in test cases.
|
2021-05-13 20:21:02 +02:00 |
Daniel Marjamäki
|
7ba9e37296
|
unhandled char literal; changed severity to 'portability'. hopefully there will not be warnings for standard character literals.
|
2021-05-13 13:51:53 +02:00 |
Daniel Marjamäki
|
fca7a270bf
|
daca@home; show unhandled chars diagnostics
|
2021-05-13 13:44:32 +02:00 |
Daniel Marjamäki
|
22ab9ccd7f
|
Fixed #10273 (False negative; Uninitialized variable in for loop)
|
2021-05-11 20:35:15 +02:00 |
keinflue
|
c77caf637c
|
Bump simplecpp (#3255)
|
2021-05-10 22:46:31 +02:00 |
Daniel Marjamäki
|
75311fba0f
|
Fixed #10218 (FP uninitvar with input from stringstream in for loop)
|
2021-05-10 19:48:07 +02:00 |
Daniel Marjamäki
|
db7be3e91b
|
Fixed #9810 (Improve check: uninitialized struct member not detected)
|
2021-05-10 19:24:03 +02:00 |
Daniel Marjamäki
|
c37b8ea55c
|
Fixed #8299 (false negative: uninitialized struct member)
|
2021-05-10 18:38:44 +02:00 |
Daniel Marjamäki
|
271acf8aee
|
Refactoring; Use isUnaryOp instead of simpleMatch
|
2021-05-10 18:18:21 +02:00 |
Rikard Falkeborn
|
b013f1b3d0
|
Fix test case for #10186 (#3253)
|
2021-05-10 08:01:30 +02:00 |
Daniel Marjamäki
|
040069ab4d
|
Fixed Cppcheck self-check warnings
|
2021-05-09 23:27:53 +02:00 |
Daniel Marjamäki
|
2c24af02c8
|
Fixed self-check error. Use Token::simpleMatch for simple pattern.
|
2021-05-09 23:02:35 +02:00 |
Daniel Marjamäki
|
2e2d766e2b
|
Fixed #6766 (Improve check; struct member is assigned value that is never used)
|
2021-05-09 20:09:10 +02:00 |
Daniel Marjamäki
|
3b37c14b3c
|
Parser; Partial C++20 support, explicit(bool)
|
2021-05-09 18:47:02 +02:00 |
Daniel Marjamäki
|
32b28d568f
|
Refactoring; Check structured binding in isVariableChanged()
|
2021-05-08 20:46:46 +02:00 |
Daniel Marjamäki
|
895a96f9dd
|
Tokenizer::findGarbageCode: detect wrong struct declaration
|
2021-05-08 15:28:21 +02:00 |
Daniel Marjamäki
|
a197e94573
|
Fixed #10266 (False positive; parameter can be const)
|
2021-05-08 13:40:52 +02:00 |
Daniel Marjamäki
|
abb4200316
|
Fixed #10196 ("Unhandled char constant 'x'" with non-standard escape character)
|
2021-05-08 12:54:18 +02:00 |