HomeSolus

Update cppcheck to 2.5

Authored by silke on Jul 12 2021, 10:17 AM.

Description

Update cppcheck to 2.5

Summary:
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.

Reviewers: Triage Team, JoshStrobl

Reviewed By: Triage Team, JoshStrobl

Subscribers: JoshStrobl

Differential Revision: https://dev.getsol.us/D11454

Details

Committed
JoshStroblJul 12 2021, 10:18 AM
Pushed
JoshStroblJul 12 2021, 10:18 AM
Reviewer
Triage Team
Differential Revision
D11454: Update cppcheck to 2.5
Parents
R562:95225a57ced1: Rebuild against z3
Branches
Unknown
Tags
Unknown
References
HEAD -> master, tag: cppcheck-2.5-15