List of all errors in project in CLion

≡放荡痞女 提交于 2019-12-10 14:39:51

问题


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.


回答1:


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:




回答2:


In version 2017.2, I have it under Code | Inspect Code....

You can also right click a folder in Project view and select Inspect Code... there to be able to check only that folder.



来源:https://stackoverflow.com/questions/38592863/list-of-all-errors-in-project-in-clion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!