cppcheck/addons/test/misra
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-suppressions1-test.c
misra-suppressions2-test.c
misra-test.c misra.py: R14.2: Verify for loop counter modification (#2409) 2019-12-15 18:23:12 +01:00
misra-test.cpp misra.py: Fix crash on c++ code (#2414) 2019-12-01 14:51:12 +01:00
misra-test.h
misra2012_rules_dummy_ascii.txt
misra2012_rules_dummy_utf8.txt
misra2012_rules_dummy_windows1250.txt
misra_rules_dummy.txt
misra_rules_empty_lines.txt
misra_rules_multiple_lines.txt Loosen restrictions on MISRA rules text structure (#2157) 2019-09-09 21:43:44 +02:00
misra_rules_structure.txt
suppressions.txt