![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Compile > Show > UnusedThe Compile > Show > Unused command shows, in a viewer window, the names of units containing declarations that are unused in the specified closure (see next page). If only one unit is found to contain unused declarations, that unit is displayed in an editor window instead off a viewer window. When you choose this command, the Show Unused dialog box appears.
Show Unused Dialog Box Fields:
Name Field
In the Name field, enter the names of the unit in which you want to search for unused declarations. If you call this command from the language editor, the default is the current unit; if you call it from the directory viewer, the default is any unit selected in the viewer.
Context Field
Use the Context field to specify the context of the units specified in the Name field. The default is the current context.
Radio Buttons
You can use wildcards in this field to specify one or more units. The two radio buttons determine how the wildcard expression in the Name field is expanded.
- Use the language Resolution
Expands any language naming wildcards, including:
'spec Resolves to the spec of the named unit - Ada only
'body Resolves to the body of the named unit - Ada only
@ or * Matches zero or more characters not containing a period (.)
This option is the default in the language editor.
- Use File Resolution
Expands any wildcard notation using standard UNIX wildcard conventions. This is the default in the directory viewer.
Scope Field
Use the Scope field to expand the search to include any units in the import closure of the views specified there. The default closure is the current context.
Import Closure Check Box
- Select the Use import closure for views from scope check box to search the import closure specified in the Scope field.
Direct execution of show-unused from a language unit will cause declarations in that unit that are unused in the scope of the enclosing view to be marked.
Unused Declarations Viewer
If multiple units contain unused declarations, an Unused declarations viewer is opened. It displays the names of each unit and any unused declarations in that unit.
If you double-click on a unit name in the viewer, the language editor is opened on that unit with each unused declaration shaded. In the language editor, you can move among unused declarations using the two View > Message commands.
If you double-click on an unused declaration in the viewer, the language editor is opened on that unit; the occurrence of the specified declaration is highlighted.
Command Line Interface: show_unused
Additional Topics
Rational Software Corporation http://www.rational.com support@rational.com techpubs@rational.com Copyright © 1993-2001, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |