search

Home  >  Q&A  >  body text

code - C++静态代码扫描工具都有哪些?

最近有一个想法,一个比较大的项目,随着时间推移,实际上很多时候文件管理上就不是那么清晰了。可能会有什么冗余文件出现的。之后在网上搜到了这个静态代码扫描工具的。不过搜了很多好像都没什么详细介绍。感觉这东西应该也算是常用工具的。

想在这里问一下大大们:

  1. C++静态代码扫描工具都有什么,每种都有什么特点,优缺点。
  2. 如果能阐释一下这种工具的制作原理,那必然是极好的了。

先谢过大大们~~

伊谢尔伦伊谢尔伦2807 days ago554

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 11:52:46

    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.

    reply
    0
  • 阿神

    阿神2017-04-17 11:52:46

    Valgrind is very good.

    reply
    0
  • Cancelreply