cppcheck: remove, used for updating devel/cppcheck

This commit is contained in:
Thomas Klausner 2020-06-29 15:07:08 +02:00
parent 48bd547cd0
commit 90bfd766a8
7 changed files with 0 additions and 201 deletions

View File

@ -500,7 +500,6 @@ SUBDIR+= coxeter
SUBDIR+= cpdup
SUBDIR+= cpluff
SUBDIR+= cpm
SUBDIR+= cppcheck
SUBDIR+= cppzmq
SUBDIR+= cpqarrayd
SUBDIR+= cpuminer-multi

View File

@ -1,4 +0,0 @@
cppcheck is a tool for static C/C++ code analysis intended to
complement the checking of the compiler. It checks for memory
leaks, mismatching allocation-deallocation, buffer overrun, unused
functions, coding style, and much more.

View File

@ -1,54 +0,0 @@
# $NetBSD: Makefile,v 1.68 2020/06/02 08:23:34 adam Exp $
DISTNAME= cppcheck-2.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= reed@reedmedia.net
HOMEPAGE= http://cppcheck.sourceforge.net/
COMMENT= Tool for static C/C++ code analysis
LICENSE= gnu-gpl-v3
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments
USE_LANGUAGES= c c++0x
USE_TOOLS+= gmake
#USE_CMAKE= yes
BUILD_TARGET= all man
BUILD_MAKE_FLAGS+= DB2MAN=${PREFIX}/share/xsl/docbook/manpages/docbook.xsl
# tell cppcheck where its CPP files are
MAKE_FLAGS+= FILESDIR=${PREFIX}/share/cppcheck
# rules support (needs pcre)
MAKE_FLAGS+= HAVE_RULES=yes
MAKE_FLAGS+= USE_Z3=yes
#CMAKE_ARGS+= -DBUILD_TESTS=ON
#CMAKE_ARGS+= -DHAVE_RULES=ON
#CMAKE_ARGS+= -DUSE_Z3=ON
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-4.[0-5]*) || !empty(CC_VERSION:Mgcc-3.*)
CXXFLAGS+= -include lib/cxx11emu.h
.endif
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
REPLACE_PYTHON+= htmlreport/cppcheck-htmlreport
TEST_TARGET= test
.include "options.mk"
.PHONY: man-install
post-install: man-install
man-install:
${INSTALL_DATA} ${WRKSRC}/cppcheck.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../lang/python/application.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../math/z3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -1,62 +0,0 @@
@comment $NetBSD: PLIST,v 1.8 2020/04/16 21:50:35 wiz Exp $
bin/cppcheck
${PLIST.qt5}bin/cppcheck-gui
bin/cppcheck-htmlreport
man/man1/cppcheck.1
share/cppcheck/addons/__init__.py
share/cppcheck/addons/cert.py
share/cppcheck/addons/cppcheckdata.py
share/cppcheck/addons/findcasts.py
share/cppcheck/addons/misc.py
share/cppcheck/addons/misra.py
share/cppcheck/addons/naming.py
share/cppcheck/addons/namingng.py
share/cppcheck/addons/threadsafety.py
share/cppcheck/addons/y2038.py
share/cppcheck/cfg/avr.cfg
share/cppcheck/cfg/boost.cfg
share/cppcheck/cfg/bsd.cfg
share/cppcheck/cfg/cairo.cfg
share/cppcheck/cfg/cppcheck-lib.cfg
share/cppcheck/cfg/cppunit.cfg
share/cppcheck/cfg/daca.cfg
share/cppcheck/cfg/embedded_sql.cfg
share/cppcheck/cfg/gnu.cfg
share/cppcheck/cfg/googletest.cfg
share/cppcheck/cfg/gtk.cfg
share/cppcheck/cfg/kde.cfg
share/cppcheck/cfg/libcerror.cfg
share/cppcheck/cfg/libcurl.cfg
share/cppcheck/cfg/libsigc++.cfg
share/cppcheck/cfg/lua.cfg
share/cppcheck/cfg/mfc.cfg
share/cppcheck/cfg/microsoft_atl.cfg
share/cppcheck/cfg/microsoft_sal.cfg
share/cppcheck/cfg/motif.cfg
share/cppcheck/cfg/nspr.cfg
share/cppcheck/cfg/opencv2.cfg
share/cppcheck/cfg/opengl.cfg
share/cppcheck/cfg/openmp.cfg
share/cppcheck/cfg/openssl.cfg
share/cppcheck/cfg/posix.cfg
share/cppcheck/cfg/python.cfg
share/cppcheck/cfg/qt.cfg
share/cppcheck/cfg/ruby.cfg
share/cppcheck/cfg/sdl.cfg
share/cppcheck/cfg/sfml.cfg
share/cppcheck/cfg/sqlite3.cfg
share/cppcheck/cfg/std.cfg
share/cppcheck/cfg/tinyxml2.cfg
share/cppcheck/cfg/windows.cfg
share/cppcheck/cfg/wxwidgets.cfg
share/cppcheck/cfg/zlib.cfg
share/cppcheck/platforms/aix_ppc64.xml
share/cppcheck/platforms/arm32-wchar_t2.xml
share/cppcheck/platforms/arm32-wchar_t4.xml
share/cppcheck/platforms/arm64-wchar_t2.xml
share/cppcheck/platforms/arm64-wchar_t4.xml
share/cppcheck/platforms/avr8.xml
share/cppcheck/platforms/cray_sv1.xml
share/cppcheck/platforms/msp430_eabi_large_datamodel.xml
share/cppcheck/platforms/unix32-unsigned.xml
share/cppcheck/platforms/unix64-unsigned.xml

View File

@ -1,6 +0,0 @@
$NetBSD: distinfo,v 1.15 2020/04/16 21:50:35 wiz Exp $
SHA1 (cppcheck-2.1.tar.bz2) = 3cf4c1bc20d25f8876fdc78cdb19586561dda470
RMD160 (cppcheck-2.1.tar.bz2) = b35d3e49ab0b833f7a7a5e6dba796702975c8866
SHA512 (cppcheck-2.1.tar.bz2) = ddf10ea394fc7e862fefb4380e5aa4cdece4d9b135dc959c6e37c6dbdd85c77c4e3f4eac3af1b51415543eb16d3e225694963658530241250835586983dba4ae
Size (cppcheck-2.1.tar.bz2) = 2480943 bytes

View File

@ -1,49 +0,0 @@
2.1
This is a minor release.
We have tweaked build scripts.
* When you use USE_Z3=yes, we will handle new versions of z3 better. If you have an old z3 library and get compilation problems you will need to add a z3_version.h in externals.
* The cmake scripts was updated.
There was a couple of bug fixes.
New check:
* for "expression % 1" the result is always 0.
2.0
Overview
The command line is not changed drastically. Your old cppcheck scripts should work as before.
Compiling: There is a new dependency Z3. When compiling with the Makefile it is highly recommended to use "USE_Z3=yes".
Improved clang-tidy integration
Several fixes to;
improve parsing
detect more bugs with existing checks
fix false alarms
Clang import
Clang is a C/C++ compiler that has a very robust and well made parser.
Cppcheck will always use its internal parser by default. However there is now an option to use the Clang parser instead.
It is recommended that you use the default internal Cppcheck parser unless you notice that it fails to parse your code properly (syntax errors, strange false alarms).
Bug hunting
There is a new "soundy" analysis in Cppcheck that should detect most bugs. You should expect false alarms, however the false alarms will not be overwhelming.
This new "soundy" analysis is not intended to replace normal Cppcheck analysis. There are use cases where false alarms can not be tolerated.
We have added 1 checker and that checks for division by zero:
It detects all "integer division by zero" bugs in the Juliet test suite.
It detects all "division by zero" bugs in the ITC test suite.
There was 28 division by zero CVEs published in 2019 for C/C++ open source projects, and we could quickly see that 21 of the bugs are found by Cppcheck. There is no CVE bug that we know Cppcheck fails to diagnose. But there are 7 CVEs that would require additional investigation to establish if it is really detected or not.
You can read more about this analysis in the "Bug hunting" chapter in the manual.

View File

@ -1,25 +0,0 @@
# $NetBSD: options.mk,v 1.6 2016/09/19 11:05:53 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cppcheck
PKG_SUPPORTED_OPTIONS= qt5
.include "../../mk/bsd.options.mk"
PLIST_VARS+= qt5
.if !empty(PKG_OPTIONS:Mqt5)
PLIST.qt5= yes
USE_LIBTOOL= yes
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qttools/buildlink3.mk"
post-build:
cd ${WRKSRC}/gui && \
${CONFIGURE_ENV} QTDIR=${QTDIR} HAVE_RULES=yes ${QTDIR}/bin/qmake gui.pro && \
${MAKE_ENV} QTDIR=${QTDIR} make
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/gui/cppcheck-gui ${DESTDIR}${PREFIX}/bin
.endif