Commit Graph

380 Commits

Author SHA1 Message Date
chrchr-github 3b5601dbea
Add tests for , ()
* Add test for 

* Add test for 
2022-10-25 19:41:48 +02:00
chrchr-github cb6f04a16c
Fix FP zerodivcond from enum definition / FP unassignedVariable with static variable ()
* Fix  FP zerodivcond from enum definition

* Simplify Boolean expression

* Fix  FP unassignedVariable with static variable
2022-09-17 18:50:07 +02:00
Oliver Stöneberg b3ec225480
iwyu.yml: use `debian:unstable` to always get latest include-what-you-use / cleaned up includes ()
* iwyu.yml: use debian:unstable to always get latest include-what-you-use

* cleaned up includes based on include-what-you-use

* mitigated include-what-you-use false positives
2022-09-16 07:15:49 +02:00
Oliver Stöneberg 1b4141cbe5
added more missing `sstream` includes () 2022-08-19 18:23:15 +02:00
chrchr-github 15f8c71ec3
Fix FP: unassignedVariable when operator() is called subsequently () 2022-07-24 17:52:14 +02:00
chrchr-github 1aceded300
Fix FP noExplicitConstructor with variadic template () 2022-07-24 10:18:19 +02:00
chrchr-github 457a0cff87
Fix FP unusedStructMember when used through iterator (regression) ()
* Format

* Fix  FP unusedStructMember when used through iterator (regression)

* Format

* Fix test

* Format

* Nullptr check
2022-07-19 20:42:54 +02:00
chrchr-github 6dc606fd6a
Add tests for , , () 2022-07-18 18:03:08 +02:00
chrchr-github b08aabefee
Fix FP unreadVariable (incomplete code; missing macro definition) () 2022-07-17 19:40:39 +02:00
chrchr-github 4894cdab8f
Fix FP unreadVariable with unique_ptr and unknown c'tor ()
* Fix  FP unreadVariable with unique_ptr and unknown c'tor

* Fix test
2022-07-16 23:46:55 +02:00
chrchr-github a658baf962
Fix FP: unreadVariable (remove simplifyMathExpressions()) ()
* Fix  FP: unreadVariable (remove simplifyMathExpressions())

* Remove unused function, tests
2022-06-21 15:42:23 +02:00
chrchr-github de9b65c737
Add tests for , , , , ()
* Add test for 

* Add test for 

* Fix test

* Add test for 

* Add test for 

* Add test for 

* Format

* Format

* Fix test

* Remove duplicate test

* Add valueflow test

* Rebuild

* Add tests for , , , , 
2022-06-14 13:05:07 +02:00
chrchr-github 6d22d6a8ae
Fix FP unusedVar with side effects in destructor () 2022-06-14 09:55:22 +02:00
chrchr-github 69834d537b
Fix False negative: variable is not used () 2022-06-07 21:20:33 +02:00
chrchr-github f962436826
Fix FN badBitmaskCheck for binary or with 0 ()
* Fix  FN badBitmaskCheck for binary or with 0

* Add test for 
2022-06-04 17:25:10 +02:00
chrchr-github d5d6da0dd4
Fix FP unreadVariable with unique_ptr and unknown type () 2022-05-27 17:17:50 +02:00
chrchr-github 2ceaf308de
Fix : ValueType for pointer typedef, don't warn for typedef'd pointers, improve error message ()
* Fix ValueType for pointer typedef

* Add test

* Don't warn for typedef'd pointers, improve error message

* Fix tests

* Add TODO

* Fix test

* Set isSimplifiedTypedef() for more tokens, add test

* Add test
2022-05-24 10:09:48 +02:00
chrchr-github 112b1573c5
Fix FN constructing string from nullptr / FN unread variables ()
* Fix  FN constructing string from nullptr /  FN unread variables

* Format
2022-05-18 13:52:44 +02:00
orbitcowboy 9f7c34272d Added a regression test for ticket - No UnreadVariable for simple class 2022-05-03 06:58:03 +02:00
chrchr-github 0636018df3
Fix FP: unassignedVariable with structured binding () 2022-04-09 14:50:30 +02:00
chrchr-github 7b97230dd2
Fix FP unreadVariable for lock_guard variable () 2022-03-28 21:45:49 +02:00
chrchr-github 190506db40
Fix Regression: unusedStructMember ()
* Fix  Regression: unusedStructMember

* Add test for 

* simpleMatch
2022-03-13 06:27:17 +01:00
chrchr-github c3506b5186
Fix regressions with static variables and multiple assignments ()
* Fix regressions with static variables and multiple assignments

* Fix test

* Fix test cases
2022-03-13 06:26:21 +01:00
chrchr-github 4c85ac0d7b
Fix FP unused struct member (inner struct in C code) ()
* Fix  FP unused struct member (inner struct in C code)

* Redundant findType() call, add test
2022-03-12 06:16:29 +01:00
chrchr-github 2616046461
Partial fix for FP: unusedStructMember () 2022-03-09 20:25:58 +01:00
chrchr-github 557263acde
Partial fix for FP: unusedStructMember (II) ()
* Preliminary

* Fix member search, add tests
2022-03-09 18:22:30 +01:00
orbitcowboy 1d2beb0431 Added a regression test for ticket 6928 - Improve check: unused variables, goto 2022-03-07 10:12:57 +01:00
chrchr-github 0b0a8cad39
Fix FP unreadVariable within a macro (regression) ()
* Fix  FP unreadVariable within a macro (regression)

* Format

* Format
2022-03-05 08:14:57 +01:00
chrchr-github 9c50136571
Fix FN unreadVariable for pointer assignment when destructor exists (regression) ()
* Fix  FN unreadVariable for pointer assignment when destructor exists (regression)

* unused variable

* Issue warning for missing cfg

* Format
2022-03-02 11:11:44 +01:00
chrchr-github 441b437cea
Fix FN: unusedStructMember () 2022-02-26 18:53:00 +01:00
chrchr-github 172aafdeb8
Fix FN: redundant assignment in loop () 2022-02-22 09:51:44 +01:00
chrchr-github 0a99e3b6fc
Partial fix for FN redundant assignment/unreadVariable () 2022-02-12 15:32:08 +01:00
Oliver Stöneberg f32583e097
removed OVERRIDE and FINAL defines and use the keywords directly () 2022-02-10 23:02:24 +01:00
Daniel Marjamäki 3989408738 Update copyright year 2022-02-05 11:45:17 +01:00
chrchr-github 8cf5c8fbf2
Fix FP unusedStructMember with static object () 2022-02-02 19:28:16 +01:00
chrchr-github 127b3bb1c4
Fix FP unreadVariable caused by invalid template injection () 2022-02-01 17:15:27 +01:00
Oliver Stöneberg 171da2e6f9
avoid dependency on transitive includes - based on include-what-you-use () 2022-01-27 19:03:20 +01:00
chrchr-github c132235a76
Add test for ()
* Fix  False positive: uninitStructMember

* Fix  False positive: unreadVariable alias

* Use Token::Match

* Add test for 
2022-01-25 22:05:54 +01:00
chrchr-github d05e43ce15
Fix False positive: unreadVariable alias () 2022-01-24 21:52:45 +01:00
chrchr-github 089ca67d78
Use TODO_ASSERT () 2022-01-18 22:03:52 +01:00
chrchr-github 95dc05b21d
Fix false negative: (style) Unused variable: std::pair () 2022-01-13 08:05:05 +01:00
chrchr-github 7aa0ec3e95
Fix regression: unreadVariable for trivial initialization () 2022-01-12 22:06:03 +01:00
chrchr-github 1670805a8d
Fix FP unreadVariable with std::shared_lock () 2022-01-10 07:43:02 +01:00
chrchr-github df3da38483
Fix Unused QString / unused std::array / unused variable with c++11 braced initializer not detected () 2022-01-10 07:36:49 +01:00
chrchr-github 5a95ece15e
: add TODO () 2021-12-21 10:24:38 +01:00
chrchr-github bb327be8e8
Fix FP unusedStructMember with value-initialized struct and typedef () 2021-12-18 22:55:52 +01:00
chrchr-github ca311ebcdf
ASSERT() on calls to Tokenizer::tokenize() in test code () 2021-11-29 07:34:39 +01:00
Daniel Marjamäki 3f7093004a Fixed (FP unusedStructMember for array size) 2021-10-30 19:34:46 +02:00
chrchr f363d8948b Fix test case 2021-10-30 19:04:50 +02:00
Daniel Marjamäki 1f01845efb Fixed (FP unreadVariable with reference and *=) 2021-10-25 19:34:19 +02:00