姊妹篇:Java代碼質量度量工具大閱兵: https://www.cnblogs.com/jiangxinnju/p/10010177.html
cppcheck
- cppcheck: https://sourceforge.net/projects/cppcheck/
- 各種IDE和編輯器插件: <http://cppcheck.net/>
- 檢查項: https://blog.csdn.net/a435262767/article/details/90137573
CCCC
- C and C++ Code Counter(CCCC): https://sourceforge.net/projects/cccc/
PC-lint for C/C++
- PC-lint for C/C++: http://www.gimpel.com/html/pcl.htm
cpplint
- cpplint: https://github.com/cpplint/cpplint
Splint
Splint is a tool for statically checking C programs for security vulnerabilities and coding mistakes. With minimal effort, Splint can be used as a better lint. If additional effort is invested adding annotations to programs, Splint can perform stronger checking than can be done by any standard lint.
- Splint: http://splint.org/
Frama-C
Frama-C is a suite of tools dedicated to the analysis of the source code of software written in C.
- Frama-C: http://frama-c.com/what_is.html
Goanna Studio
- Goanna Studio(Static Analysis for C/C++): http://marketplace.eclipse.org/content/goanna-studio-static-analysis-cc/help
Visual Leak Detector
- Visual Leak Detector for Visual C++ : http://vld.codeplex.com/
MemLeak
MemLeak -- a module to debug memory leaks in C code and other problems with malloc()--free() invocations. Written in ANSI C. Distributed under GPL.
Valgrind
Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. You can also use Valgrind to build new tools.
- Valgrind: http://www.valgrind.org/
額外閱讀
- C/C++內存泄漏及檢測: http://www.cnblogs.com/skynet/archive/2011/02/20/1959162.html
- 淺談C/C++內存泄露及其檢測工具: http://www.cnblogs.com/taoxu0903/archive/2007/10/27/939261.html
歡迎和大家交流技術相關問題:
- 郵箱: jiangxinnju@163.com
- 博客園: http://www.cnblogs.com/jiangxinnju
- GitHub: https://github.com/jiangxincode
- 知乎: https://www.zhihu.com/people/jiangxinnju