Alex Rivera | Logout

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

Asked 2008-09-18T14:50:24.997
163

It looks quite easy to find such a tool for Java (Checkstyle, JCSC), but I can't seem to find one for C/C++. I am not looking for a lint-like static code analyzer, I only would like to check against coding standards like variable naming, capitalization, spacing, identation, bracket placement, and so on.

Edit
Report

3 Answers

8

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.

answered 2009-02-11T16:54:49.970
7

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.

answered 2008-09-18T17:08:54.743
6

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

answered 2011-11-22T23:12:07.617

Your Answer