diff --git a/cppcheck-1.88.tar.bz2 b/cppcheck-1.88.tar.bz2 deleted file mode 100644 index 28a9663..0000000 --- a/cppcheck-1.88.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb25441749977713476dc630dfe7617b3d9e95c46fec0edbec4ff8ff6fda38ca -size 1865568 diff --git a/cppcheck-1.90.tar.bz2 b/cppcheck-1.90.tar.bz2 new file mode 100644 index 0000000..b295018 --- /dev/null +++ b/cppcheck-1.90.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43758d56613596c29440e55ea96a5a13e36f81ca377a8939648b5242faf61883 +size 2025457 diff --git a/cppcheck.changes b/cppcheck.changes index a89260e..414dcff 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Wed Mar 4 12:17:56 UTC 2020 - Martin Pluskal + +- Use cmake macros + +------------------------------------------------------------------- +Wed Mar 4 11:32:52 UTC 2020 - Danny Al-Gaaf + +- Update to version 1.90 + * alias to vector element invalid after vector is changed + * improved value flow analysis for struct members + * improved value flow analysis for pointer alias + * CERT: Added ENV33-C: Do not call system() + * MISRA: added rules 2.7, 3.2, 4.2, 14.2, 21.1, 21.12 + +- update to version 1.89 + * The default warning message format was changed. The new format + is similar to GCC. If you want to get warnings in the old + format, add --template=cppcheck1 to the command line. + * improved value flow analysis for pointer aliases + * improved checking for uninitialized variables/structs + * better checking of smart pointers + * better checking of global variables + * Added Cppcheck annotations cppcheck_low(VALUE) and + cppcheck_high(VALUE) + * shadow variables; warn when argument is shadowed + * warn if local reference variable can be const + * Added API01-C: Avoid laying out strings in memory directly + before sensitive data + * Added MSC24-C: Do not use deprecated or obsolescent functions + * Added STR11-C: Do not specify the bound of a character array + initialized with a string literal + * MISRA: added rules 17.2, 18.4, 18.7 + ------------------------------------------------------------------- Mon Jul 1 08:22:46 UTC 2019 - Martin Liška diff --git a/cppcheck.spec b/cppcheck.spec index 05dddcb..e618271 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -1,7 +1,7 @@ # # spec file for package cppcheck # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: cppcheck -Version: 1.88 +Version: 1.90 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0-or-later @@ -78,11 +78,11 @@ doesn't see. -DBUILD_GUI=ON \ -DBUILD_TESTS=ON \ -DHAVE_RULES=yes -%make_jobs +%cmake_build # does not work with CMake, directly call provided Makefile from source directory cd .. -make man \ +%make_build man \ DB2MAN=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl # use python3 as interpreter @@ -90,7 +90,7 @@ sed -i "s|env python|python3|g" htmlreport/cppcheck-htmlreport %check export CXXFLAGS="%{optflags}" -%make_jobs check +%ctest %install install -Dpm 0755 build/bin/cppcheck \