Cppcheck v1.85 Release Notes

Release Date: 2018-10-14 // over 2 years ago
  • General:

    • ๐Ÿ‘ We are modernizing the Cppcheck code. Support for MSVC 2010 and GCC 4.4 is dropped. You now need a compiler that is at least as good as MSVC 2013 or GCC 4.6.
    • According to "[email protected]" (http://cppcheck.osuosl.org:8000)
      • There are fewer crashes.
      • Cppcheck-1.85 is ~25% slower than Cppcheck-1.84

    Checking improvements:

    • ๐Ÿ†• New check: Suggest STL algorithms instead of hard-coded for loops
    • ๐Ÿ†• New check: Warn about ineffective algorithms (same iterator passed)
    • ๐Ÿ†• New check: Mismatching iterators used together in operators
    • Container (STL/Qt/WxWidgets/etc) access out of bounds
    • ๐Ÿ‘Œ Improved the checkers that warns about same/opposite expressions, track variable values better.
      • logical conjunctions
      • identical/opposite inner expressions
      • same expressions around operator
      • etc
    • Variable scope: warn about references also

    Graphical user interface:

    • You can specify undefines in the project file dialog
    • ๐Ÿ›  Fixed configuration of suppressions
    • ๐Ÿ Windows: Fixed issue of wrong/no theme being applied to UI elements

    Misra:

    • ๐Ÿ‘Œ support per file excludes from cppcheck
    • ๐Ÿ‘Œ support per file suppressions from cppcheck
    • summary will now summarize results for all files again
    • ๐Ÿ›  a few false positives were fixed