title: Is there a Findbugs and / or PMD equivalent for C/C++?
body: <p>I was recently asked about alternatives to <a href="http://www.coverity.com/products/static-analysis-features.html" rel="noreferrer">Coverity Prevent</a> for a code base that includes both C/C++ and Java.  Obviously, on the Java side, the free tools available include Findbugs (compiled code analysis) and PMD (static code analysis).  They are very powerful, especially when you start investigating integration with IDEs (which, again, are free).</p>
  
  <p>However, things are dicey when you start moving into the C/C++ realm with the various compilers, architectures, etc.</p>
  
  <p>I have proposed a variety of tools for the Java side, including both Findbugs and PMD.  What I am looking for is the best option for the C/C++ side when considered using the following metrics:</p>
  
  <ol>
  <li>Price: free is better but can be beaten by better value.  However, pricing models that charge per line of code are horrifying.</li>
  <li>Feature set: how does this tool make my life better?  In what ways does it detect my mistakes before I check them in, before we ship the code, etc.?</li>
  <li>Usability: can I use the tool at my desk?  Can I share the reports and / or findings?  Can I integrate the tool with Fogbugz (which we use in my group)?  Can I integrate the tool into CruiseControl (or the equivalent)?</li>
  </ol>
  
  <p>The ultimate tool would be something that is as useful and usable as a combination of Findbugs and PMD with identical feature set, all for zero dollars per seat.</p>