Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A free tool to check C/C++ source code against a set of coding standards? [closed]

People also ask

What does Cpp check do?

Cppcheck is a static analysis tool for C/C++ code. It provides unique code analysis to detect bugs and focuses on detecting undefined behaviour and dangerous coding constructs. The goal is to have very few false positives.

What are the coding standards in C?

A C coding standard is a set of rules for source code that is adopted by a team of programmers working together on a project, such as the design of an embedded system. Programming teams and companies write down their C coding standards for a variety of reasons but often bicker internally about which rules to follow.


The only tool I know is Vera. Haven't used it, though, so can't comment how viable it is. Demo looks promising.


Google c++lint from Google code style guide.


I'm sure this could help to some degree cxx checker. Also this tool seems to be pretty good KWStyle It's from Kitware, the guys who develop Cmake.


Not exactly what you ask for, but I've found it easier to just all agree on a coding standard astyle can generate and then automate the process.


Try nsiqcppstyle. It's a Python based coding style checker for C/C++. It's easy to extend to add your own rules.


There's a list. There is also a putative C++ frontend on splint.