If there are problems with code formatting, you can force the call of code decoders in checkin to the repository (astyle, indent, ...)
The next PC-lint / Flexelint tool , which also has rules for applying various standard encoding rules. But he is not free. You should familiarize yourself with it and configure it correctly to avoid false positives.
You can also check Vera ++ , but I have no experience with it.
source share