There are many tools, please see the list: http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis#C....
The more commonly used ones are cpplint and Clang Static Analyzer.
Also used the old Cppcheck
These tools are usually embedded in various IDEs in the form of plug-ins. I currently prefer cpplint, which is actually a python script that helps you check whether it complies with the Google C++ Style standard specification.
As for the detailed introduction, it is recommended to start from the Wiki and check the relevant documents to get started.
No one has answered this question for so long.
There are many tools, please see the list: http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis#C....
The more commonly used ones are cpplint and Clang Static Analyzer.
Also used the old Cppcheck
These tools are usually embedded in various IDEs in the form of plug-ins. I currently prefer cpplint, which is actually a python script that helps you check whether it complies with the Google C++ Style standard specification.
As for the detailed introduction, it is recommended to start from the Wiki and check the relevant documents to get started.
Valgrind is very good.