devel/cppcheck: update 2.12.1 → 2.13.4

This commit is contained in:
Dmitry Marakasov 2024-02-28 00:14:58 +03:00
parent 7e012a1420
commit 29c816e912
5 changed files with 49 additions and 4 deletions

View file

@ -1,5 +1,5 @@
PORTNAME= cppcheck
PORTVERSION= 2.12.1
PORTVERSION= 2.13.4
CATEGORIES= devel
MAINTAINER= amdmi3@FreeBSD.org
@ -58,6 +58,9 @@ CHARTS_CMAKE_BOOL= WITH_QCHART
CHARTS_IMPLIES= GUI
CHARTS_USE= QT=charts
post-patch:
@${REINPLACE_CMD} -e 's|%%WRKSRC%%|${WRKSRC}|' ${WRKSRC}/test/testfilelister.cpp
post-install-HTMLREPORT-on:
${INSTALL_SCRIPT} ${WRKSRC}/htmlreport/cppcheck-htmlreport ${STAGEDIR}${PREFIX}/bin

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1695753260
SHA256 (danmar-cppcheck-2.12.1_GH0.tar.gz) = 2a3d4ba1179419612183ab3d6aed6d3b18be75e98cd6f138ea8e2020905dced2
SIZE (danmar-cppcheck-2.12.1_GH0.tar.gz) = 3579702
TIMESTAMP = 1709055380
SHA256 (danmar-cppcheck-2.13.4_GH0.tar.gz) = d6ea064ebab76c6aa000795440479767d8d814dd29405918df4c1bbfcd6cb86c
SIZE (danmar-cppcheck-2.13.4_GH0.tar.gz) = 3646131

View file

@ -0,0 +1,13 @@
--- cli/cppcheckexecutor.cpp.orig 2024-02-16 08:46:10 UTC
+++ cli/cppcheckexecutor.cpp
@@ -64,6 +64,10 @@
#include <windows.h>
#endif
+#if !defined(WIN32) && !defined(__MINGW32__)
+#include <sys/wait.h> // WIFEXITETED and friends
+#endif
+
class CmdLineLoggerStd : public CmdLineLogger
{
public:

View file

@ -0,0 +1,11 @@
--- test/testfilelister.cpp.orig 2024-02-16 08:46:10 UTC
+++ test/testfilelister.cpp
@@ -43,7 +43,7 @@ class TestFileLister : public TestFixture { (private)
// TODO: generate file list instead
static std::string findBaseDir() {
- std::string basedir;
+ std::string basedir = "%%WRKSRC%%/";
while (!Path::isDirectory(Path::join(basedir, ".github"))) {
const std::string abspath = Path::getAbsoluteFilePath(basedir);
basedir += "../";

View file

@ -0,0 +1,18 @@
--- test/testother.cpp.orig 2024-02-16 08:46:10 UTC
+++ test/testother.cpp
@@ -2173,6 +2173,7 @@ class TestOther : public TestFixture { (private)
"}\n");
ASSERT_EQUALS("[test.cpp:1]: (performance) Function parameter 't' should be passed by const reference.\n", errout.str());
+#ifndef __i386__
check("struct S {\n" // #12138
" union {\n"
" int a = 0;\n"
@@ -2191,6 +2192,7 @@ class TestOther : public TestFixture { (private)
" if (s.x > s.y) {}\n"
"}\n");
ASSERT_EQUALS("", errout.str());
+#endif
check("struct S { std::list<int> l; };\n" // #12147
"class C { public: std::list<int> l; };\n"