CLion项目中所有错误的列表 [英] List of all errors in project in CLion

查看:1327
本文介绍了CLion项目中所有错误的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CLion 2016.2有助于检测您正在编辑的文件中的潜在错误,可以在代码右侧的验证栏中看到。

CLion 2016.2 helpfully detects potential errors in the file you're editing, which can be seen in the validation bar to the right of the code.

这只是一个单个文件,是否有办法(如工具窗口)获取整个项目或其中特定部分的所有此类警告的列表?

That's just a single file though, is there a way (like a tool window) to get a list of all such warnings in the whole project, or specific parts of it?

奖励积分如果它也列出了来自编译器的警告和错误,虽然这不太重要,因为编译器输出已经包含它找到的任何内容。

Bonus points if it also lists warnings and errors from the compiler, though that's less important, because the compiler output already includes any it found.

推荐答案

是的,这是可能的。您正在寻找的功能称为 Inspector

Yes, it is possible. The feature you are looking for is called the Inspector.

执行:查找操作... |检查代码。它将显示一个弹出窗口,允许您选择范围:文件,整个项目,自定义和检查配置文件(您可以选择要查看的错误类型):

Do: Find Action... | Inspect Code. It will show a pop-up that will allow you to select the scope: file, whole project, custom, and the Inspection profile (you can choose the type of errors you want to see):

单击确定后,这是一个示例输出,您可以使用鼠标或键盘快捷键导航:

After clicking OK, this is an example of the output, that you can navigate with the mouse or with keyboard shortcuts:

这篇关于CLion项目中所有错误的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆