cppcheck/addons/test
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 Misra false positive fixes for rules 8.7 and 5.9 (#3844) 2022-02-27 19:17:48 +01:00
path1 Fix per file excludes (#1437) 2018-10-18 09:17:57 +02:00
threadsafety threadsafety shall not warn about const vars (in C++11) (#2847) 2020-10-23 11:58:25 +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: Fix FP on pointer types (#3800) 2022-02-05 14:02:01 +01:00
cert-test.cpp cert.py: Fix EXP05C crash (#2392) 2019-11-23 17:41:47 +01:00
misc-test.cpp Fixed #9971 (missing system includes in addon/test test files) 2020-11-15 12:46:28 +01:00
naming_test.c Fixed #9971 (missing system includes in addon/test test files) 2020-11-15 12:46:28 +01:00
naming_test.cpp naming.py: Fix FP for constructors/destructors (#2375) 2019-11-18 18:41:57 +01:00
namingng_test.c Fixed #9971 (missing system includes in addon/test test files) 2020-11-15 12:46:28 +01:00
test-cert.py addons: Fix arguments parser when running pytest (#3327) 2021-07-06 22:13:04 +02:00
test-misra.py addons: Fix arguments parser when running pytest (#3327) 2021-07-06 22:13:04 +02:00
test-y2038.py addons: Fix arguments parser when running pytest (#3327) 2021-07-06 22:13:04 +02:00
util.py misra; implemented rule 20.8 2021-07-22 08:46:28 +02:00