cppcheck/addons/test/misra
José Martins b1e92fc399
Misra false positive fixes for rules 8.7 and 5.9 (#3844)
* Fix misra 8.7 false positives on single function usage

When there is a single usage of a function, we should first check if the
file it is used in, is the same one it was defined in. When this is not the
case, there is no violatior to be reported.

* Fix misra rule 5.9 false positives for exception

The exception for rule 5.9 described in the guidelines allows for
multiple definitions of internal linkage obejcts when these regard a
static inlined function defined in the same header file.

* Fix neglecting of inline keyword flag upon simplifications

When the inline keyword is being "simplified" and the inline flag is
degated to the next token. However, this information might be lost if the next
token itself is simplified/deleted in a futher pass. Therefore, we must
propagated the flag to all the next named tokens, so we can make sure the
function name token itself is tagged with this property.

* add tests for misra addon rules 8.7 and 5.9
2022-02-27 19:17:48 +01:00
..
misra-ctu-1-test.c Misra false positive fixes for rules 8.7 and 5.9 (#3844) 2022-02-27 19:17:48 +01:00
misra-ctu-2-test.c Misra false positive fixes for rules 8.7 and 5.9 (#3844) 2022-02-27 19:17:48 +01:00
misra-ctu-test.h Misra false positive fixes for rules 8.7 and 5.9 (#3844) 2022-02-27 19:17:48 +01:00
misra-suppressions1-test.c misra; implement rule 8.4 2021-07-10 20:10:44 +02:00
misra-suppressions2-test.c misra; fix test_rules_suppression 2021-09-17 08:23:48 +02:00
misra-test-avr8.c Fixed #10480 (FP: misra-c2012-10.4 (char)) 2021-09-22 13:02:11 +02:00
misra-test.c misra: fix 7.2 checking 2022-02-12 12:44:44 +01:00
misra-test.cpp fix in misra test code 2022-01-18 20:59:30 +01:00
misra-test.h CI; Improved testing of misra addon 2021-07-11 17:24:14 +02:00
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 misra; fix test_rules_suppression 2021-09-17 08:23:48 +02:00