Difference between revisions of "Cppcheck"

From Free Software Directory
Jump to: navigation, search
(Debian import)
 
(Added Debian link)
Line 1: Line 1:
 
{{Entry
 
{{Entry
|Status=
 
|User level=
 
|Submitted by=Debian import
 
|Computer languages=C, C++
 
 
|Name=Cppcheck
 
|Name=Cppcheck
|Submitted date=2013-03-20
 
 
|Short description=tool for static C/C++ code analysis
 
|Short description=tool for static C/C++ code analysis
|VCS checkout command=
 
 
|Full description=Cppcheck is a command-line tool that tries to detect bugs that
 
|Full description=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
 
your C/C++ compiler doesn't see. It is versatile, and can check
Line 33: Line 27:
 
when iterating through a container;  * dereferencing of erased
 
when iterating through a container;  * dereferencing of erased
 
iterators;  * use of invalidated vector iterators/pointers;
 
iterators;  * use of invalidated vector iterators/pointers;
|Component programs=
 
 
|Homepage URL=http://cppcheck.wiki.sourceforge.net/
 
|Homepage URL=http://cppcheck.wiki.sourceforge.net/
 +
|Computer languages=C, C++
 +
|Accepts cryptocurrency donations=No
 +
|Last review by=Bendikker
 +
|Last review date=2018/02/08
 +
|Submitted date=2013-03-20
 
|Is GNU=No
 
|Is GNU=No
}}
 
{{Import
 
|Date=2013-03-20
 
|Source=Debian import
 
|Source link=http://packages.debian.org/sid/cppcheck
 
 
}}
 
}}
 
{{Project license
 
{{Project license
|License verified date=2013-03-20
+
|License=GPLv3orlater
|License verified by=Debian
 
 
|License copyright=©  
 
|License copyright=©  
 
© Copyright 2007-2013, Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
 
© Copyright 2007-2013, Daniel Marjamäki <hyd_danmar@users.sourceforge.net>
Line 67: Line 59:
 
© Copyright 2011-2013, Philipp Kloke <philipp.kloke@web.de>
 
© Copyright 2011-2013, Philipp Kloke <philipp.kloke@web.de>
 
© Copyright 2011-2013, Thomas Jarosch <thomas.jarosch@intra2net.com>
 
© Copyright 2011-2013, Thomas Jarosch <thomas.jarosch@intra2net.com>
 
+
|License verified by=Debian
|License=GPLv3orlater
+
|License verified date=2013-03-20
 
|License note=License: GPL-3+
 
|License note=License: GPL-3+
  
Line 76: Line 68:
 
}}
 
}}
 
{{Project license
 
{{Project license
|License verified date=2013-03-20
+
|License=Zlib
|License verified by=Debian
 
 
|License copyright=© 2000-2007, Lee Thomason <leethomason@mindspring.com>
 
|License copyright=© 2000-2007, Lee Thomason <leethomason@mindspring.com>
 
© 2002-2004, Yves Berquin <yvesb@users.sourceforge.net>
 
© 2002-2004, Yves Berquin <yvesb@users.sourceforge.net>
 
+
|License verified by=Debian
|License=Zlib
+
|License verified date=2013-03-20
 
|License note=License: ZLIB
 
|License note=License: ZLIB
  
Line 104: Line 95:
 
}}
 
}}
 
{{Project license
 
{{Project license
|License verified date=2013-03-20
+
|License=Zlib
|License verified by=Debian
 
 
|License copyright=© 2000-2007, Lee Thomason <leethomason@mindspring.com>
 
|License copyright=© 2000-2007, Lee Thomason <leethomason@mindspring.com>
 
© 2002-2004, Yves Berquin <yvesb@users.sourceforge.net>
 
© 2002-2004, Yves Berquin <yvesb@users.sourceforge.net>
 
© 2005, Tyge Lovset
 
© 2005, Tyge Lovset
 
+
|License verified by=Debian
|License=Zlib
+
|License verified date=2013-03-20
 
|License note=License: ZLIB
 
|License note=License: ZLIB
  
Line 133: Line 123:
 
}}
 
}}
 
{{Project license
 
{{Project license
 +
|License=GPLv2orlater
 +
|License copyright=© Copyright 2008-2013, Reijo Tomperi <aggro80@users.sourceforge.net>
 +
|License verified by=Debian
 
|License verified date=2013-03-20
 
|License verified date=2013-03-20
|License verified by=Debian
 
|License copyright=© Copyright 2008-2013, Reijo Tomperi <aggro80@users.sourceforge.net>
 
 
|License=GPLv2orlater
 
 
|License note=License: GPL-2+
 
|License note=License: GPL-2+
  
Line 145: Line 134:
 
}}
 
}}
 
{{Resource
 
{{Resource
 +
|Resource audience=Debian
 +
|Resource URL=http://tracker.debian.org/pkg/cppcheck
 +
}}
 +
{{Resource
 +
|Resource kind=Download
 
|Resource URL=https://sourceforge.net/projects/cppcheck
 
|Resource URL=https://sourceforge.net/projects/cppcheck
|Resource kind=Download
+
}}
 +
{{Software category}}
 +
{{Featured}}
 +
{{Import
 +
|Date=2013-03-20
 +
|Source=Debian import
 +
|Source link=http://packages.debian.org/sid/cppcheck
 
}}
 
}}

Revision as of 13:47, 8 February 2018


[edit]

Cppcheck

http://cppcheck.wiki.sourceforge.net/
tool for static C/C++ code analysis

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;



Download




Categories





Licensing

License

Verified by

Verified on

Notes

Verified by

Debian

Verified on

20 March 2013

Notes

License: GPL-2+

GPL-2+ On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-2'

file.

License

Zlib

Verified by

Debian

Verified on

20 March 2013

Notes

License: ZLIB

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any source

distribution.

Verified by

Debian

Verified on

20 March 2013

Notes

License: GPL-3+

GPL-3+ On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL-3'

file.




Leaders and contributors

Resources and communication

AudienceResource typeURI
Debian (Ref)https://tracker.debian.org/pkg/cppcheck
Downloadhttps://sourceforge.net/projects/cppcheck


Software prerequisites




Entry
















"Debian" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.








Date 2013-03-20
Source Debian import
Source link http://packages.debian.org/sid/cppcheck

[[Category:]]



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.