You can modify the source code to fix the problem that
caused the result to be generated.
Procedure
- In the right pane of the Software Analyzer Results view,
expand the rule that contains the results that you are interested
in.
- Below the rule either double-click or right-click a result
and click View Result. The
source code file is opened in a supported language editor and
is positioned to show the lines of code that are flagged by the result.
The editor that opens depends on the editor configuration and on
the editor that was last used to open a file of the same type. Typically,
this is the EGL editor.
In the case of EGL Rich UI programs, due
to the fact that the Rich UI editor is brought up by default, the
source at the problem location will not be displayed. To circumvent
this situation, you must open the EGL Rich UI program with the standard
EGL editor, instead of the EGL Rich UI editor, and then double-click
on the result. To open the EGL Rich UI program with the standard editor,
right-mouse click on the EGL source file and use the "Open with" option. The
lines are temporarily selected so that they are highlighted.
- Modify the source code to fix the problem that caused the
result to be generated. You are not limited to fixing one
problem. You can make as many updates to the source code file as you
want, as you would normally do in the editor.
- Save the file and close the editor.
- To verify that your change to the source code fixed the
problem, run the code analysis again.