Menu

Cppcheck 1.78

Cppcheck-1.78 has been released.

General changes:
- Reduced memory usage by up to 10% by reducing size of token list

New checks:
- Mismatching argument names between function declaration and definition
- Detect classes which have a copy constructor but no copy operator and vice versa

Checking improvements:
- Improved matching of overloaded functions
- Improved ValueType analysis, especially related to allocations with "new" and C++11's "auto"
- Improved support for C++11 brace initialization
- Improved ValueFlow analysis
- Improved template parsing
- Improved detection of memory leaks
- Improved nullpointer checking when nullptr and NULL are used
- Detect array out of bounds across compilation units
- Extended windows.cfg, posix.cfg and std.cfg

Additionally, lots of false positives and bugs have been fixed and several existing checks have been improved.

Posted by Daniel Marjamäki 2017-04-01
  • Anonymous

    Anonymous - 2017-04-01

    Hi Daniel. In 1.77 my colleague and I found an issue where the set of warnings found and reported were completely different dependent on whether an include path is set or not. Do you know if that is a known issue and, if so, whether 1.78 addresses it? If not, how best to report? Thanks

     
  • Daniel Marjamäki

    that is hard to say. for instance I made a fix in the preprocessor that means better configurations are extracted.

    It is best to report problems in our Trac: http://trac.cppcheck.net

     
  • eliza

    eliza - 2017-06-18
    Post awaiting moderation.

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.