6 Commits

Author SHA256 Message Date
8b2ea34550 Accepting request 1296714 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1296714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=53
2025-07-31 15:47:04 +00:00
c774de81ce - testcondition.patch: fix expected output in TestCondition::alwaysTrue
and TestCondition::alwaysTrueContainer

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=154
2025-07-31 07:40:54 +00:00
1510136346 Accepting request 1296293 from devel:tools
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1296293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=52
2025-07-30 09:45:08 +00:00
39065c0c88 - update to 2.18.0:
* Updated path matching syntax for -i, --file-filter,
    suppressions, GUI excludes, and project file excludes.
  * Old patterns that use a `*` may need to use `**` instead if
    it is intended to match path separators. More details can be
    seen in the manual.
  * Support for building with Qt 5 will be removed in Cppcheck
    2.19.
  * The platform 'unix32-unsigned' has been deprecated and will
    be removed in Cppcheck 2.19. Please use '--platform=unix32
    --funsigned-char' instead.
  * The platform 'unix64-unsigned' has been deprecated and will
    be removed in Cppcheck 2.19. Please use '--platform=unix64
    --funsigned-char' instead.
  * Updated Qt to 6.9.1 (official Windows release only).
  * added CMake target `run-clang-tidy-csa` to run Clang Static
    Analyzer
  * added CMake option `ENABLE_CSA_ALPHA` to enable the Clang
    Static Analyzer alpha checkers
  * Updated TinyXML-2 to v11.0.0
  * The minimum supported Python version has been bumped to 3.7.
  * CMake will now unconditionally use Boost.Containers if
    available. If CMake option `USE_BOOST` is specified it will
    now bail out when it is not found.
  * Fix checking a project that contains several project file
    entries for the same file.
  * Fixed --file-filter matching of looked up files in provided
    paths.
  * Split up cstyleCast checker; dangerous casts produce
    portability/warning reports, safe casts produce style

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=152
2025-07-22 09:50:50 +00:00
562633c396 Accepting request 1286981 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1286981
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cppcheck?expand=0&rev=51
2025-06-20 14:49:53 +00:00
b3f896559d fix Leap 16 build
OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=150
2025-06-19 13:18:38 +00:00
5 changed files with 76 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4792f9487aef94546606fabe45edeb9a78f4557b07ef887accc1d804287a2e9c
size 3872580

3
cppcheck-2.18.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dc74e300ac59f2ef9f9c05c21d48ae4c8dd1ce17f08914dd30c738ff482e748f
size 3928107

View File

@@ -1,3 +1,51 @@
-------------------------------------------------------------------
Wed Jul 30 14:05:12 UTC 2025 - Andreas Schwab <schwab@suse.de>
- testcondition.patch: fix expected output in TestCondition::alwaysTrue
and TestCondition::alwaysTrueContainer
-------------------------------------------------------------------
Tue Jul 22 09:50:25 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 2.18.0:
* Updated path matching syntax for -i, --file-filter,
suppressions, GUI excludes, and project file excludes.
* Old patterns that use a `*` may need to use `**` instead if
it is intended to match path separators. More details can be
seen in the manual.
* Support for building with Qt 5 will be removed in Cppcheck
2.19.
* The platform 'unix32-unsigned' has been deprecated and will
be removed in Cppcheck 2.19. Please use '--platform=unix32
--funsigned-char' instead.
* The platform 'unix64-unsigned' has been deprecated and will
be removed in Cppcheck 2.19. Please use '--platform=unix64
--funsigned-char' instead.
* Updated Qt to 6.9.1 (official Windows release only).
* added CMake target `run-clang-tidy-csa` to run Clang Static
Analyzer
* added CMake option `ENABLE_CSA_ALPHA` to enable the Clang
Static Analyzer alpha checkers
* Updated TinyXML-2 to v11.0.0
* The minimum supported Python version has been bumped to 3.7.
* CMake will now unconditionally use Boost.Containers if
available. If CMake option `USE_BOOST` is specified it will
now bail out when it is not found.
* Fix checking a project that contains several project file
entries for the same file.
* Fixed --file-filter matching of looked up files in provided
paths.
* Split up cstyleCast checker; dangerous casts produce
portability/warning reports, safe casts produce style
reports.
* Removed deprecated '--showtime=' value 'top5'. Please use
'top5_file' or 'top5_summary' instead.
-------------------------------------------------------------------
Thu Jun 19 12:22:56 UTC 2025 - Max Lin <mlin@suse.com>
- Do not build with rules support on Leap 16 due to pcre deleted
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 1 21:02:32 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de> Tue Apr 1 21:02:32 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@@ -16,18 +16,19 @@
# #
%if 0%{?suse_version} > 1600 %if 0%{?suse_version} >= 1600
%bcond_with rules %bcond_with rules
%else %else
%bcond_without rules %bcond_without rules
%endif %endif
Name: cppcheck Name: cppcheck
Version: 2.17.1 Version: 2.18.0
Release: 0 Release: 0
Summary: A tool for static C/C++ code analysis Summary: A tool for static C/C++ code analysis
License: GPL-3.0-or-later License: GPL-3.0-or-later
URL: https://github.com/danmar/cppcheck URL: https://github.com/danmar/cppcheck
Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source: https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: testcondition.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: docbook-xsl-stylesheets BuildRequires: docbook-xsl-stylesheets
BuildRequires: fdupes BuildRequires: fdupes

22
testcondition.patch Normal file
View File

@@ -0,0 +1,22 @@
Index: cppcheck-2.18.0/test/testcondition.cpp
===================================================================
--- cppcheck-2.18.0.orig/test/testcondition.cpp
+++ cppcheck-2.18.0/test/testcondition.cpp
@@ -4583,7 +4583,7 @@ private:
if (std::numeric_limits<char>::is_signed) {
ASSERT_EQUALS("[test.cpp:6:18]: (style) Condition 'o[1]=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
} else {
- ASSERT_EQUALS("[test.cpp:4] -> [test.cpp:6]: (style) Condition 'o[1]=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
+ ASSERT_EQUALS("[test.cpp:4:25] -> [test.cpp:6:18]: (style) Condition 'o[1]=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
}
check("void f(int x) {\n" // #11449
@@ -5323,7 +5323,7 @@ private:
if (std::numeric_limits<char>::is_signed) {
ASSERT_EQUALS("[test.cpp:5:22]: (style) Condition 'buffer.back()=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
} else {
- ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:5]: (style) Condition 'buffer.back()=='\\0'' is always false\n", errout_str());
+ ASSERT_EQUALS("[test.cpp:3:22] -> [test.cpp:5:22]: (style) Condition 'buffer.back()=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
}
// #9353