简体   繁体   English

在代码块上安装 CppCheck

[英]Installing CppCheck on Codeblocks

I have downloaded Codeblocks in a Windows 10 computer and now I am trying to install CppCheck on it.我已经在 Windows 10 计算机中下载了 Codeblocks,现在我正在尝试在其上安装 CppCheck。

However, also surfing the net to find a solution, I can't understand how can I install CppCheck (on Codeblocks).但是,也在网上冲浪以找到解决方案,我不明白如何安装 CppCheck(在 Codeblocks 上)。 Can anyone explain it to me?谁能给我解释一下?

Steps to follow :要遵循的步骤:

  • Download Codeblocks下载的代码块
    • Cppcheck is a Contrib plugin integrated in Codeblocks Cppcheck 是一个集成在 Codeblocks 中的 Contrib 插件
    • So, choose the setup from the download page which has all the plugins available因此,从包含所有可用插件的下载页面中选择设置
  • Install Codeblocks安装代码块
    • Make sure Cppcheck plugin is selected under Contrib plugins确保在 Contrib 插件下选择了 Cppcheck 插件
  • Install Cppcheck tool for your respective platform为您各自的平台安装Cppcheck 工具
  • Open Codeblocks and open the Environment Settings via the Settings Menu打开代码块并通过设置菜单打开环境设置
    • Scroll down and select the Cppcheck/Vera++ Tab向下滚动并选择 Cppcheck/Vera++ 选项卡
    • Change the Cppcheck application field by clicking on the button with ...通过单击带有...的按钮更改 Cppcheck 应用程序字段
    • Navigate to the path where Cppcheck tool was installed (Ex: C:\\Program Files\\Cppcheck\\cppcheck.exe )导航到安装 Cppcheck 工具的路径(例如: C:\\Program Files\\Cppcheck\\cppcheck.exe
    • Click OK单击确定
  • Open a project in Codeblocks and under Plugins Menu select CppCheck to run the tool在 Codeblocks 中打开一个项目,然后在 Plugins Menu 下选择 CppCheck 以运行该工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM