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.
The GNU indent tool can do some of what you’re asking for. Not sure if it can check for documentation, but the rest sounds doable