Cppcheck 2.21 is now available. This release focuses on improving stability and code analysis capabilities. Several issues and crashes have been resolved, alongside the addition of new checks and updates to project handling, configuration options, and the GUI.
Here are the full release notes for Cppcheck 2.21:
funcArgNamesDifferentUnnamed warns on function declarations/definitions where a parameter in either location is unnamed.uninitMemberVarNoCtor warns on user-defined types where some but not all members requiring initialization have in-class initializers, or where a mixture of members do and do not require initialization exists.fcloseInLoopCondition warns when fclose() is used as a while loop condition, which may skip the loop body or double-close the file handle.Import project: include path in compile_commands.json now handled correctly
Removed handling of Cppcheck Premium LOC license
engine element in a rule XML.--exitcode-suppress to specify an error ID which should not result in a non-zero exitcode.