[update] devel/cppcheck

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[update] devel/cppcheck

Igor Zinovik-3
        Hello.

Update cppcheck to 1.45.  Runs fine on i386.  Also I grabbed description
from debian cppcheck package.

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/cppcheck/Makefile,v
retrieving revision 1.2
diff -U  3 -N -p Makefile
--- Makefile 18 Oct 2010 17:47:51 -0000 1.2
+++ Makefile 31 Oct 2010 21:01:24 -0000
@@ -2,7 +2,7 @@
 
 COMMENT= C/C++ static checker
 
-DISTNAME= cppcheck-1.44
+DISTNAME= cppcheck-1.45
 
 CATEGORIES= devel
 
@@ -25,7 +25,9 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
 
 ALL_TARGET= cppcheck
 MAKE_FLAGS= BIN=${PREFIX}/bin CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
-USE_GROFF = Yes
+
+USE_GMAKE= Yes
+USE_GROFF= Yes
 
 NO_REGRESS= Yes
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/cppcheck/distinfo,v
retrieving revision 1.1.1.1
diff -U  3 -N -p distinfo
--- distinfo 23 Sep 2010 09:34:51 -0000 1.1.1.1
+++ distinfo 31 Oct 2010 21:01:24 -0000
@@ -1,5 +1,5 @@
-MD5 (cppcheck-1.44.tar.gz) = LB3e4pYjoPK1qTLvqiTIbQ==
-RMD160 (cppcheck-1.44.tar.gz) = 8ihQup/F0kgfgxPpml9dn6xFg5Y=
-SHA1 (cppcheck-1.44.tar.gz) = F/A29CJj41AkT8HQRuw3LuYAQHk=
-SHA256 (cppcheck-1.44.tar.gz) = 8OA2gDsnwKF7S9HMkNMnmr9u2Pkhxkjhp+qA30dR8Xw=
-SIZE (cppcheck-1.44.tar.gz) = 705243
+MD5 (cppcheck-1.45.tar.gz) = HSZh/CVwMxp8nEGIo1bW9w==
+RMD160 (cppcheck-1.45.tar.gz) = 3hosUlWC6c41TDscTSV3cn2TwzI=
+SHA1 (cppcheck-1.45.tar.gz) = P53HcfRKAbfQRl0Th1/NXYslx9I=
+SHA256 (cppcheck-1.45.tar.gz) = obCktxGyXP8t8Y1POs4dgfdGsLqlREW3AOenlMIxJMI=
+SIZE (cppcheck-1.45.tar.gz) = 799711
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/devel/cppcheck/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -U  3 -N -p pkg/DESCR
--- pkg/DESCR 23 Sep 2010 09:34:51 -0000 1.1.1.1
+++ pkg/DESCR 31 Oct 2010 21:01:24 -0000
@@ -1,4 +1,32 @@
-Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and
-many other analysis tools, we don't detect syntax errors. Cppcheck only
-detects the types of bugs that the compilers normally fail to detect.
-The goal is no false positives.
+Cppcheck is a command-line tool that tries to detect bugs that your
+C/C++ compiler doesn't see. It is versatile, and can check non-standard
+code including various compiler extensions, inline assembly code, etc.
+Its internal preprocessor can handle includes, macros, and several
+preprocessor commands. While Cppcheck is highly configurable, you can
+start using it just by giving it a path to the source code.
+
+It includes checks for:
+* pointers to out-of-scope auto variables;
+* assignment of auto variables to an effective parameter of a function;
+* out-of-bounds errors in arrays and STL;
+* missing class constructors;
+* variables not initialized by a constructor;
+* use of memset, memcpy, etcetera on a class;
+* non-virtual destructors for base classes;
+* operator= not returning a constant reference to itself;
+* use of deprecated functions (mktemp, gets, scanf);
+* exceptions thrown in destructors;
+* memory leaks in class or function variables;
+* C-style pointer cast in C++ code;
+* redundant if;
+* misuse of the strtol or sprintf functions;
+* unsigned division or division by zero;
+* unused functions and struct members;
+* passing parameters by value;
+* misuse of signed char variables;
+* unusual pointer arithmetic (such as "abc" + 'd');
+* dereferenced null pointers;
+* incomplete statements;
+* misuse of iterators when iterating through a container;
+* dereferencing of erased iterators;
+* use of invalidated vector iterators/pointers;
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/cppcheck/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -U  3 -N -p pkg/PLIST
--- pkg/PLIST 23 Sep 2010 09:34:51 -0000 1.1.1.1
+++ pkg/PLIST 31 Oct 2010 21:01:24 -0000
@@ -1,3 +1,3 @@
-@comment $OpenBSD: PLIST,v 1.1.1.1 2010/09/23 09:34:51 jasper Exp $
+@comment $OpenBSD$
 @bin bin/cppcheck
 @man man/man1/cppcheck.1

Reply | Threaded
Open this post in threaded view
|

Re: [update] devel/cppcheck

Igor Zinovik-3
On Nov 01, Igor Zinovik wrote:
> Hello.
>
> Update cppcheck to 1.45.  Runs fine on i386.  Also I grabbed description
> from debian cppcheck package.
>

Updated version with proper spacing.

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/cppcheck/Makefile,v
retrieving revision 1.2
diff -U  3 -N -p Makefile
--- Makefile 18 Oct 2010 17:47:51 -0000 1.2
+++ Makefile 31 Oct 2010 21:21:47 -0000
@@ -1,33 +1,35 @@
 # $OpenBSD: Makefile,v 1.2 2010/10/18 17:47:51 espie Exp $
 
-COMMENT= C/C++ static checker
+COMMENT = C/C++ static checker
 
-DISTNAME= cppcheck-1.44
+DISTNAME = cppcheck-1.45
 
-CATEGORIES= devel
+CATEGORIES = devel
 
-HOMEPAGE= http://cppcheck.sourceforge.net/
+HOMEPAGE = http://cppcheck.sourceforge.net/
 
-MAINTAINER= Igor Zinovik <[hidden email]>
+MAINTAINER = Igor Zinovik <[hidden email]>
 
 # GPLv3
-PERMIT_PACKAGE_CDROM= Yes
-PERMIT_PACKAGE_FTP= Yes
-PERMIT_DISTFILES_CDROM= Yes
-PERMIT_DISTFILES_FTP= Yes
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP = Yes
+PERMIT_DISTFILES_CDROM = Yes
+PERMIT_DISTFILES_FTP = Yes
 
-WANTLIB= c m stdc++
+WANTLIB = c m stdc++
 
-BUILD_DEPENDS= ::textproc/docbook-xsl \
+BUILD_DEPENDS = ::textproc/docbook-xsl \
  ::textproc/libxslt
 
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
+MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=cppcheck/}
 
-ALL_TARGET= cppcheck
-MAKE_FLAGS= BIN=${PREFIX}/bin CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
-USE_GROFF = Yes
+ALL_TARGET = cppcheck
+MAKE_FLAGS = BIN=${PREFIX}/bin CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
 
-NO_REGRESS= Yes
+USE_GMAKE = Yes
+USE_GROFF = Yes
+
+NO_REGRESS = Yes
 
 post-build:
  cd ${WRKSRC} && \
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/cppcheck/distinfo,v
retrieving revision 1.1.1.1
diff -U  3 -N -p distinfo
--- distinfo 23 Sep 2010 09:34:51 -0000 1.1.1.1
+++ distinfo 31 Oct 2010 21:21:47 -0000
@@ -1,5 +1,5 @@
-MD5 (cppcheck-1.44.tar.gz) = LB3e4pYjoPK1qTLvqiTIbQ==
-RMD160 (cppcheck-1.44.tar.gz) = 8ihQup/F0kgfgxPpml9dn6xFg5Y=
-SHA1 (cppcheck-1.44.tar.gz) = F/A29CJj41AkT8HQRuw3LuYAQHk=
-SHA256 (cppcheck-1.44.tar.gz) = 8OA2gDsnwKF7S9HMkNMnmr9u2Pkhxkjhp+qA30dR8Xw=
-SIZE (cppcheck-1.44.tar.gz) = 705243
+MD5 (cppcheck-1.45.tar.gz) = HSZh/CVwMxp8nEGIo1bW9w==
+RMD160 (cppcheck-1.45.tar.gz) = 3hosUlWC6c41TDscTSV3cn2TwzI=
+SHA1 (cppcheck-1.45.tar.gz) = P53HcfRKAbfQRl0Th1/NXYslx9I=
+SHA256 (cppcheck-1.45.tar.gz) = obCktxGyXP8t8Y1POs4dgfdGsLqlREW3AOenlMIxJMI=
+SIZE (cppcheck-1.45.tar.gz) = 799711
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/devel/cppcheck/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -U  3 -N -p pkg/DESCR
--- pkg/DESCR 23 Sep 2010 09:34:51 -0000 1.1.1.1
+++ pkg/DESCR 31 Oct 2010 21:21:47 -0000
@@ -1,4 +1,32 @@
-Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers and
-many other analysis tools, we don't detect syntax errors. Cppcheck only
-detects the types of bugs that the compilers normally fail to detect.
-The goal is no false positives.
+Cppcheck is a command-line tool that tries to detect bugs that your
+C/C++ compiler doesn't see. It is versatile, and can check non-standard
+code including various compiler extensions, inline assembly code, etc.
+Its internal preprocessor can handle includes, macros, and several
+preprocessor commands. While Cppcheck is highly configurable, you can
+start using it just by giving it a path to the source code.
+
+It includes checks for:
+* pointers to out-of-scope auto variables;
+* assignment of auto variables to an effective parameter of a function;
+* out-of-bounds errors in arrays and STL;
+* missing class constructors;
+* variables not initialized by a constructor;
+* use of memset, memcpy, etcetera on a class;
+* non-virtual destructors for base classes;
+* operator= not returning a constant reference to itself;
+* use of deprecated functions (mktemp, gets, scanf);
+* exceptions thrown in destructors;
+* memory leaks in class or function variables;
+* C-style pointer cast in C++ code;
+* redundant if;
+* misuse of the strtol or sprintf functions;
+* unsigned division or division by zero;
+* unused functions and struct members;
+* passing parameters by value;
+* misuse of signed char variables;
+* unusual pointer arithmetic (such as "abc" + 'd');
+* dereferenced null pointers;
+* incomplete statements;
+* misuse of iterators when iterating through a container;
+* dereferencing of erased iterators;
+* use of invalidated vector iterators/pointers;
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/cppcheck/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -U  3 -N -p pkg/PLIST
--- pkg/PLIST 23 Sep 2010 09:34:51 -0000 1.1.1.1
+++ pkg/PLIST 31 Oct 2010 21:21:47 -0000
@@ -1,3 +1,3 @@
-@comment $OpenBSD: PLIST,v 1.1.1.1 2010/09/23 09:34:51 jasper Exp $
+@comment $OpenBSD$
 @bin bin/cppcheck
 @man man/man1/cppcheck.1

Reply | Threaded
Open this post in threaded view
|

Re: [update] devel/cppcheck

Steven Mestdagh-3
Igor Zinovik [2010-11-01, 00:23:08]:
> On Nov 01, Igor Zinovik wrote:
> > Hello.
> >
> > Update cppcheck to 1.45.  Runs fine on i386.  Also I grabbed description
> > from debian cppcheck package.
> >
>
> Updated version with proper spacing.

ok.

Reply | Threaded
Open this post in threaded view
|

Re: [update] devel/cppcheck

Stuart Henderson
In reply to this post by Igor Zinovik-3
On 2010/11/01 00:23, Igor Zinovik wrote:
> On Nov 01, Igor Zinovik wrote:
> > Hello.
> >
> > Update cppcheck to 1.45.  Runs fine on i386.  Also I grabbed description
> > from debian cppcheck package.
> >
>
> Updated version with proper spacing.

I think the new DESCR is a bit long, there's no hard rule but I think
having two screens full of output from pkg_info cppcheck is a bit much.
Do you mind if we just use the first paragraph? Otherwise it's ok with me.