Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What tools exist for comparing C++ code to coding guidelines? [closed]

There exist tools for comparing code against a custom specified set of coding guidelines/standards for a variety of languages (rather than pure static analysis for common defects). Examples include FxCop for .Net code and CheckStyle for Java, but I was wondering what examples people know of in the C++ world.

An existing question was asked regarding free tools which provided examples like Vera but I was also wondering about commercial tools that may be available.

like image 622
dlanod Avatar asked Mar 13 '09 00:03

dlanod


2 Answers

A tool used by us was CodeWizard from Parasoft. But I think the new version is called "Parasoft C++ Test". From the homepage:

  • Static analysis of code for compliance with user-selected coding standards
  • Graphical RuleWizard editor for creating custom coding rules
  • Static code path simulation for identifying potential runtime errors
  • Automated code review with a graphical interface and progress tracking
  • Automated generation and execution of unit and component-level tests
  • Flexible stub framework
  • Full support for regression testing
  • Code coverage analysis with code highlighting
  • Runtime memory error checking during unit test execution
  • Full team deployment infrastructure for desktop and command line usage
like image 197
BtD Avatar answered Oct 05 '22 23:10

BtD


The full list that I managed to generate:

  • PRQA's QA C++
  • Parasoft's C++Test
  • MS Visual Studio Team System seems to have some functionality but it's hard to tell via their website.
  • GrammaTech CodeSonar
  • Coverity Extend

The last two provide some functionality but not particularly customisable ones:

  • Klocwork Insight
  • Rational PurifyPlus
like image 24
dlanod Avatar answered Oct 05 '22 22:10

dlanod