Cppcheck Portable was designed as an user-friendly and open source software utility that provides static analysis of C/C++ code.
Cppcheck Portable is an instrument that will check for memory leaks, mismatching allocation-deallocation, buffer overrun etc.
What's New in This Release:
Commandline/Settings changes:
· Code is considered to be C++11 or C11 compatible by default, added new standards to --std= option: c89, c11, c++03
· '--inconclusive' has been made "official" and shown in help dialog
Improvements:
· Uninstantiated templates are no longer removed from token list
· Support 'using namespace std;' - 'std ::' added to C++ standard library types when 'using namespace std;' is found
· Several error messages have been improved to be more understandable and consistent
· Checking of pre-processor configurations that are considered invalid, because the macro used in #if is also used in the code, is now skipped.
New checks:
· Detect incomplete array fill with memcpy/memset/memmove (inconclusive check)
· Detect ineffective statememts like '*foo++;'
· Check for negative right operand passed to shift operator
· Detect comparison of char* variable with string literal
· Check for return value of std::remove() and container.empty() being used
· Detect member functions that can be declared s...