cppcheck/addons/test
Georgy Komarov c46e44e39e misra.py: R14.2: Verify for loop counter modification (#2409)
* misra.py: R14.2: Verify for counter modification

Add additional check to detect modification of loop counter in loop
body. Related issue: https://trac.cppcheck.net/ticket/9490

Add small fix that treat all assignment operators defined in N1750
6.5.16 as has side affects. This will affects rules 13.1, 13.3, 13.5
and allow to catch some false negatives.

* Add tests for fixed FPs for R13.{1,5,6}

* fix

* use isAssignmentOp from cppcheck data

* remove unused set

* handle case with empty body or syntax error

* add test with outer variable

* Fix FP in nested loops, add tests

* Fix FP on outer variables

* Fixup false positives for not loop counters
2019-12-15 18:23:12 +01:00
..
misra misra.py: R14.2: Verify for loop counter modification (#2409) 2019-12-15 18:23:12 +01:00
path1 Fix per file excludes (#1437) 2018-10-18 09:17:57 +02:00
y2038 y2038 addon: Fix that check can never return True, add tests (#2417) 2019-12-03 18:49:11 +01:00
__init__.py misra.py: Fix up and improve load rules parser. (#1895) 2019-06-17 21:17:29 +02:00
cert-test.c cert.py: Add ENV33-C-EX1 exception (#2396) 2019-11-24 10:31:08 +01:00
cert-test.cpp cert.py: Fix EXP05C crash (#2392) 2019-11-23 17:41:47 +01:00
misc-test.cpp String concatenation in array: Improved handling of macros 2018-04-28 23:01:29 +02:00
naming_test.c addons/naming.py: Fix crash on unnamed arguments, add regex validation. (#1762) 2019-03-26 18:54:09 +01:00
naming_test.cpp naming.py: Fix FP for constructors/destructors (#2375) 2019-11-18 18:41:57 +01:00
namingng_test.c Added a new naming check addon. Also verifies variable and function p… (#1456) 2018-11-06 20:46:07 +01:00
test-cert.py addons/test/test-*.py: Improve documentation about running the tests 2019-09-20 13:39:38 +02:00
test-misra.py addons/test/test-*.py: Improve documentation about running the tests 2019-09-20 13:39:38 +02:00
test-y2038.py y2038 addon: Fix that check can never return True, add tests (#2417) 2019-12-03 18:49:11 +01:00
util.py [windows] cannot run test-misra (binary not found) (#2441) 2019-12-10 18:32:41 +01:00