I am searching for free Linux tool that can analyze C and C++ code of my program and return style improvement suggestions. I would like to check against coding standards like variable naming, capitalization, spacing, indentation, bracket placement, and so on.
If you're ok with using clang utilities you can use ClangFormat. Usually I use this to just force a certain format, but you could use the
-output-replacements-xml flag to check if anything needs to be changed.
Note that this allows you to specify what a good format is by using different coding styles like llvm, Google or Mozilla standards (you can even make your own!).