Page MenuHomeSolus

Update cppcheck to 2.5

Authored by silke on Jul 11 2021, 9:49 AM.



Release notes:

  • Parser
    • various fixes
    • checked that all features in c++11, c++14, c++17 are supported
    • c++20 support is improved but not complete yet
  • Core
    • improved library files, better knowledge about APIs
    • improved checks to detect more bugs
    • fixed checks to avoid unwanted warnings
  • Changed output
    • try to use relative paths when using compile databases, if compile database is accessed with relative path
    • updated XML; The file0 attribute is moved from <location> to <error></error></location>
  • Misra
    • fixed crashes and false positives
  • New checks
    • suspicious container/iterator assignment in condition
    • rethrow without current handled exception
Test Plan

Run cppcheck on a large codebase.

Diff Detail

R562 cppcheck
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

silke created this revision.Jul 11 2021, 9:49 AM
silke requested review of this revision.Jul 11 2021, 9:49 AM
JoshStrobl accepted this revision.Jul 12 2021, 10:16 AM
JoshStrobl edited the summary of this revision. (Show Details)
JoshStrobl added a subscriber: JoshStrobl.

Cleaned up your spacing, you didn't need the extra newlines. Otherwise LGTM.

This revision is now accepted and ready to land.Jul 12 2021, 10:17 AM
This revision was automatically updated to reflect the committed changes.