cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

static analysis of C/C++ code

Results 369 cppcheck issues
Sort by recently updated
recently updated
newest added

This rule catches cases where multiple `tok->next()-next()` calls can be simplified to `tok-tokAt(2)` Reference: https://github.com/danmar/cppcheck/pull/6442/files/13b2cabb6384ff5279b17a75062a63c5f240f74a#r1623220527

The existing check for the exception dispatch idiom only checks the beginning of a function. This PR checks the entire function for the idiom, and adds 3 new unit tests.

Add junit export support for MISRA addons directly. Better implementation shall be done in cppcheckdata.py Useful for CI

The suggested script now is based on git so we will always run the latest version. It also makes sure the Python dependencies are always up-to-date.

Accordint to https://endoflife.date/python python 3.7 as been EOSed 27 Jun 2023. Fileter all python code over `pupgrade --py38-plus'.