2011-01-05 03:57:16 +01:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2011-01-08 21:22:40 +01:00
|
|
|
<meta name="description" content="Cppcheck is an analysis tool for C/C++ code.
|
|
|
|
It detects the types of bugs that the compilers normally fail to detect. The
|
|
|
|
goal is no false positives." />
|
|
|
|
<meta name="keywords" content="Cppcheck, open source, analysis tool, C/C++,
|
|
|
|
code, errors, bugs, compilers, bounds checking, memory leaks, obsolete functions,
|
|
|
|
uninitialized variables, unused functions" />
|
2011-01-05 03:57:16 +01:00
|
|
|
<title>Cppcheck - A tool for static C/C++ code analysis</title>
|
2012-09-26 13:44:45 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Orbitron&text=Cppcheck" />
|
2012-11-29 16:02:25 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="/site/css/pack.css" />
|
2011-01-06 13:32:04 +01:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
|
2011-01-08 22:33:26 +01:00
|
|
|
<link rel="alternate" type="application/rss+xml" title="Project News"
|
2013-07-07 09:44:47 +02:00
|
|
|
href="http://sourceforge.net/p/cppcheck/news/feed" />
|
2011-01-05 03:57:16 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="header">
|
|
|
|
<div class="wrap">
|
2013-07-18 17:34:28 +02:00
|
|
|
<h1><a href="/">Cppcheck</a></h1>
|
2011-01-05 03:57:16 +01:00
|
|
|
<p>A tool for static C/C++ code analysis</p>
|
|
|
|
</div> <!-- .wrap -->
|
|
|
|
</div> <!-- #header -->
|
|
|
|
<div id="tabs">
|
|
|
|
<div class="wrap">
|
|
|
|
<ul>
|
|
|
|
<li><strong><a href="/">Home</a></strong></li>
|
|
|
|
<li><a href="http://sourceforge.net/apps/mediawiki/cppcheck/">Wiki</a></li>
|
|
|
|
<li><a href="http://sourceforge.net/apps/phpbb/cppcheck/">Forum</a></li>
|
2012-07-12 21:24:46 +02:00
|
|
|
<li><a href="http://sourceforge.net/apps/trac/cppcheck/">Issues</a></li>
|
2011-01-07 15:36:34 +01:00
|
|
|
<li><a href="/devinfo/" title="Developer Information">Developer Info</a></li>
|
2012-05-17 18:07:38 +02:00
|
|
|
<li><a href="/demo/">Online Demo</a></li>
|
2011-01-05 03:57:16 +01:00
|
|
|
<li><a href="http://sourceforge.net/projects/cppcheck/">Project page</a></li>
|
|
|
|
</ul>
|
|
|
|
</div> <!-- .wrap -->
|
|
|
|
</div> <!-- #tabs -->
|
2012-07-14 14:50:27 +02:00
|
|
|
<div id="anchors">
|
|
|
|
<div class="wrap">
|
|
|
|
<ul>
|
|
|
|
<li><a href="#download">Download</a></li>
|
|
|
|
<li><a href="#features">Features</a></li>
|
|
|
|
<li><a href="#news">News</a></li>
|
|
|
|
<li><a href="#documentation">Documentation</a></li>
|
|
|
|
<li><a href="#support">Support</a></li>
|
|
|
|
<li><a href="#contribute">Contribute</a></li>
|
|
|
|
</ul>
|
|
|
|
</div> <!-- .wrap -->
|
|
|
|
</div> <!-- #anchors -->
|
2011-01-05 03:57:16 +01:00
|
|
|
<div id="content">
|
|
|
|
<div class="wrap">
|
2012-11-15 16:35:07 +01:00
|
|
|
<p>
|
|
|
|
<strong>Cppcheck</strong> is a <a href="http://en.wikipedia.org/wiki/Static_analysis_tool">static analysis tool</a>
|
2011-06-24 22:18:02 +02:00
|
|
|
for C/C++ code. Unlike C/C++ compilers and many other analysis tools it does
|
|
|
|
not detect syntax errors in the code. Cppcheck primarily detects the types of
|
|
|
|
bugs that the compilers normally do not detect. The goal is to detect only real
|
2012-11-15 16:35:07 +01:00
|
|
|
errors in the code (i.e. have zero false positives).
|
|
|
|
</p>
|
2011-01-05 03:57:16 +01:00
|
|
|
|
2013-07-31 16:26:53 +02:00
|
|
|
<h2 id="download">Download</h2>
|
2012-11-15 16:35:07 +01:00
|
|
|
<p>
|
2014-05-10 13:44:29 +02:00
|
|
|
<a class="downloadnow" href="http://sourceforge.net/projects/cppcheck/files/cppcheck/1.65/cppcheck-1.65-x86-Setup.msi">
|
2013-07-31 16:19:44 +02:00
|
|
|
<span class="downButtonText">Download Now!</span>
|
2014-05-10 13:44:29 +02:00
|
|
|
<span class="downButtonVersion">Version 1.65 for Windows</span>
|
2012-11-15 16:35:07 +01:00
|
|
|
</a>
|
|
|
|
</p>
|
2014-02-08 09:40:43 +01:00
|
|
|
<p>You can download the standalone Cppcheck from our <a href="http://sourceforge.net/projects/cppcheck/">project page</a> or add it
|
2011-06-24 23:37:44 +02:00
|
|
|
as a plugin for your favorite IDE:</p>
|
2011-01-05 03:57:16 +01:00
|
|
|
<ul>
|
|
|
|
<li><strong>Code::Blocks</strong> - <em>integrated</em></li>
|
|
|
|
<li><strong>CodeLite</strong> - <em>integrated</em></li>
|
|
|
|
<li><strong>Eclipse</strong> - <a href="http://cppcheclipse.googlecode.com/">Cppcheclipse</a></li>
|
2012-05-31 20:56:37 +02:00
|
|
|
<li><strong>gedit</strong> - <a href="http://github.com/odamite/gedit-cppcheck">gedit plugin</a></li>
|
2011-01-05 03:57:16 +01:00
|
|
|
<li><strong>Hudson</strong> - <a href="http://wiki.hudson-ci.org/display/HUDSON/Cppcheck+Plugin">Cppcheck Plugin</a></li>
|
2011-04-17 14:12:27 +02:00
|
|
|
<li><strong>Jenkins</strong> - <a href="http://wiki.jenkins-ci.org/display/JENKINS/Cppcheck+Plugin">Cppcheck Plugin</a></li>
|
2013-06-10 06:51:38 +02:00
|
|
|
<li><strong>Mercurial (Linux)</strong> - <a href="http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Mercurialhook">pre-commit hook</a> - Check for new errors on commit (requires interactive terminal)</li>
|
2014-02-08 09:40:43 +01:00
|
|
|
<li><strong>Tortoise SVN</strong> - <a href="http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Tortoisesvn">Adding a pre-commit hook script</a></li>
|
2014-02-27 18:19:14 +01:00
|
|
|
<li><strong>Visual Studio</strong> - <a href="https://github.com/VioletGiraffe/cppcheck-vs-addin/releases/latest">Visual Studio plugin</a></li>
|
2011-01-05 03:57:16 +01:00
|
|
|
</ul>
|
2014-02-08 09:40:43 +01:00
|
|
|
|
|
|
|
<p>Using a battery of tools is better than using 1 tool. Therefore we recommend that you also use other tools.</p>
|
|
|
|
|
|
|
|
<p>One other tool you can use is <a href="http://www.viva64.com/en/pvs-studio/">PVS-Studio</a>. There is a
|
|
|
|
<a href="http://www.viva64.com/en/b/0149/">comparison of Cppcheck and PVS-Studio</a> and we believe it's a good and honest comparison.
|
|
|
|
PVS-Studio is commercial, however there is a free trial.</p>
|
2011-01-05 03:57:16 +01:00
|
|
|
|
2013-07-31 16:26:53 +02:00
|
|
|
<h2 id="features">Features</h2>
|
2011-01-05 03:57:16 +01:00
|
|
|
<ul>
|
|
|
|
<li>Out of bounds checking</li>
|
|
|
|
<li>Check the code for each class</li>
|
|
|
|
<li>Checking exception safety</li>
|
|
|
|
<li>Memory leaks checking</li>
|
|
|
|
<li>Warn if obsolete functions are used</li>
|
|
|
|
<li>Check for invalid usage of <acronym title="Standard Template Library">STL</acronym></li>
|
|
|
|
<li>Check for uninitialized variables and unused functions</li>
|
|
|
|
</ul>
|
|
|
|
|
2013-07-31 16:26:53 +02:00
|
|
|
<h2 id="news">News</h2>
|
2011-01-14 22:48:33 +01:00
|
|
|
<?php
|
2012-09-23 11:27:25 +02:00
|
|
|
require './site/simplepie/simplepie.php';
|
2011-01-14 22:48:33 +01:00
|
|
|
|
|
|
|
$feed = new SimplePie();
|
2013-07-07 09:44:47 +02:00
|
|
|
$feed->set_feed_url('http://sourceforge.net/p/cppcheck/news/feed');
|
2011-01-14 22:48:33 +01:00
|
|
|
$feed->set_cache_location('./site/simplepie/cache');
|
|
|
|
$feed->init();
|
|
|
|
print("<ul class=\"rssfeeditems\">\n");
|
|
|
|
foreach ($feed->get_items(0, 3) as $item) { //for the last 3 news items...
|
|
|
|
print(" <li><a href=\"".$item->get_link()."\">".$item->get_title()."</a> <em>".$item->get_date('Y-m-d')."</em></li>\n");
|
|
|
|
}
|
|
|
|
print("</ul>\n");
|
|
|
|
?>
|
2013-07-07 09:44:47 +02:00
|
|
|
<p><a href="http://sourceforge.net/p/cppcheck/news/">View all news…</a></p>
|
2011-01-14 22:48:33 +01:00
|
|
|
|
2013-07-31 16:26:53 +02:00
|
|
|
<h2 id="documentation">Documentation</h2>
|
2013-05-22 19:58:58 +02:00
|
|
|
<p>You can read the <a href="manual.pdf">manual</a> or download some
|
2011-02-03 21:23:03 +01:00
|
|
|
<a href="http://sourceforge.net/projects/cppcheck/files/Articles/">articles</a>.</p>
|
|
|
|
|
2013-07-31 16:26:53 +02:00
|
|
|
<h2 id="support">Support</h2>
|
2011-01-05 03:57:16 +01:00
|
|
|
<ul>
|
|
|
|
<li>Use <a href="http://sourceforge.net/apps/trac/cppcheck/">Trac</a> to report
|
|
|
|
bugs and feature requests</li>
|
2011-06-24 22:08:41 +02:00
|
|
|
<li>Ask questions in the <a href="http://sourceforge.net/apps/phpbb/cppcheck/">discussion forum</a>
|
2011-01-05 03:57:16 +01:00
|
|
|
or at the IRC channel <a href="irc://irc.freenode.net/">#cppcheck</a></li>
|
|
|
|
<li>For more details look at the <a href="http://sourceforge.net/apps/mediawiki/cppcheck/">wiki</a></li>
|
|
|
|
</ul>
|
2012-07-14 14:50:27 +02:00
|
|
|
|
2013-07-31 16:26:53 +02:00
|
|
|
<h2 id="contribute">Contribute</h2>
|
2012-07-14 13:34:49 +02:00
|
|
|
<p>You are welcome to contribute. Help is needed.</p>
|
|
|
|
<dl>
|
|
|
|
<dt>Testing</dt>
|
2012-09-24 21:40:00 +02:00
|
|
|
<dd>Pick a project and test it's source with latest version. Write tickets to
|
2012-07-14 13:34:49 +02:00
|
|
|
<a href="http://sourceforge.net/apps/trac/cppcheck/">Trac</a> about issues you
|
|
|
|
find from Cppcheck. If you test open source projects and write bug reports to
|
|
|
|
them, check the issues in the “<a href="http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Found_bugs">Found bugs</a>”
|
|
|
|
wiki section, and write links to the bug reports you have created e.g. to our
|
|
|
|
<a href="http://sourceforge.net/apps/phpbb/cppcheck/">forum</a>, so we can keep
|
|
|
|
a track about them.</dd>
|
|
|
|
<dt>Developing</dt>
|
|
|
|
<dd>Pick a ticket from <a href="http://sourceforge.net/apps/trac/cppcheck/">Trac</a>,
|
|
|
|
write a test case for it (and write a comment to the ticket that test case has
|
|
|
|
been created). Or pick a test case that fails and try to fix it. Make a patch
|
|
|
|
and submit it to Trac either inline if it is small, or attach it as a file.</dd>
|
|
|
|
<dt>Marketing</dt>
|
|
|
|
<dd>Write articles, reviews or tell your friends about us. The more users we
|
|
|
|
have, the more people we have testing and the better we can become.</dd>
|
|
|
|
<dt>Design</dt>
|
|
|
|
<dd>Invent new good checks and create tickets to <a href="http://sourceforge.net/apps/trac/cppcheck/">Trac</a>
|
|
|
|
about them.</dd>
|
|
|
|
<dt>Integration</dt>
|
|
|
|
<dd>Write a plugin to your favorite IDE or create a package for your distribution
|
|
|
|
or operating system.</dd>
|
|
|
|
<dt>Technical Writer</dt>
|
|
|
|
<dd>Write better documentation for the bugs we find. Currently only a few bugs
|
|
|
|
have any documentation at all.</dd>
|
|
|
|
</dl>
|
2011-01-05 03:57:16 +01:00
|
|
|
</div> <!-- .wrap -->
|
|
|
|
</div> <!-- #content -->
|
2013-08-01 09:35:52 +02:00
|
|
|
<?php include_once("analyticstracking.php") ?>
|
2011-01-05 03:57:16 +01:00
|
|
|
</body>
|
2012-11-04 14:25:17 +01:00
|
|
|
</html>
|