Ericsson / CodeCheckerEclipsePlugin

This is an Eclipse plugin that shows C/C++ static analysis results found by Clang Static Analyzer and Clang Tidy
Eclipse Public License 1.0
32 stars 13 forks source link

Annotate bugs in the source code view #76

Open whisperity opened 8 years ago

whisperity commented 8 years ago

Existing Eclipse features – such as the internal sytax checker and debugger – use the feature of Eclipse to put annotations (see Preferences > General > Editors > Text editors > Annotations) to the source code. Such should be implemented for this plugin also.

The location where a bug was discovered should be underlined and with an appropriate line bar image (there already exists a yellow and red bug icon :grin: ), while the BugPathEvents should be annotated in a different fashion (consider it like a distinction between warning and error).

Another feature would be effectively writing to the source code window's rectangle. First, a tooltip for the bug event should be implemented (having to stretch the window to read the bug's description is way too obtuse), but a really good solution would be adding comments directly into the visible source code — just like how the web GUI does it.