Analyzing the Code

Once you have configured a project, Understand for Ada can parse (that is, analyze) the project. During analysis, the source files are examined and a data is stored in the Understand for Ada database. After parsing, the Understand for Ada database contains lots of data to browse.

When you save or modify the project configuration, a prompt to analyze the project appears automatically. You can also analyze the project by choosing either Project->Analyze Changed Files or Project->Analyze All Files from the menu bar.

For either command, the status is reported on the Status Line and the Command Results window appears with a log of the results.

There are two phases in the analysis process: determining compilation order and parsing. You do not need to specify the parse order. Understand for Ada figures out the parsing order automatically. It also reports any missing source files. You can optionally stop at errors, or continue, ignoring the errors.

When the analysis is complete, the source code for any errors or messages may be examined by double-clicking on the message in the Command Results window.

To save the Command Results log to an ASCII file, select the Command Results window and choose File->Save As. Specify the location and name of the file you want to save.

Tip: A configured project may be analyzed in batch mode using the command line program ”undada”. Refer to Using undada for details on using “undada”.


Scientific Toolworks, Inc.
http://www.scitools.com