Alex Rivera | Logout

Testing of coding and naming conventions of C/C++ code

Asked 2010-04-04T12:52:25.413
10

I'm looking for a script/tool that can be customized to check and enforce coding/naming conventions on a C/C++ code.

It should check for example:

  • Code lines are wrapped at some length.
  • Private variables have prefix _
  • Code is indented properly.
  • All functions are documented.

Many of the projects I'm working on are outsourced by customers which tend to have various internal coding and naming conventions.

Edit
Report

1 Answer

0

If you have a lot of money, you should check out Klocwork. It has the ability to check source code for following style guidelines. I've used it at different shops. A lot of work to set up and maintain, but very powerful.

answered 2010-04-04T19:27:38.440

Your Answer