TOC PREV NEXT INDEX DOC LIST MASTER INDEX



Locate_Pragmas

This command locates pragmas and their parameters, if any.

Usage Tip: Pragmas imply certain attributes about the code in which they appear. Location of all pragmas can help locate all parts of the code that share this characteristic. Some projects will prohibit or restrict the use of some pragmas (such as Suppress) during certain phases of the development cycle.

Command-Line Interface

Locate_Pragmas
  -Include_Controlled_Pragmas
  -Include_Elaborate_Pragmas
  -Include_Inline_Pragmas
  -Include_Interface_Pragmas
  -Include_List_Pragmas
  -Include_Memory_Size_Pragmas
  -Include_Optimize_Pragmas
  -Include_Pack_Pragmas
  -Include_Page_Pragmas
  -Include_Priority_Pragmas
  -Include_Shared_Pragmas
  -Include_Storage_Unit_Pragmas
  -Include_Suppress_Pragmas
  -Include_System_Name_Pragmas
  -Include_Other_Pragmas
  -Pragma_Name [string-expression, default = ""]
  -Sort_By_Subsystem
  -Use_Configuration [string-expression, default = ""]
  -To_Report_Named [string-expression, default =
      <default_output_directory>/pragma_analysis]
  <list of units>

Nonstandard Parameters

Sample Output

Locate_Recursive_Subprograms

This command locates all recursive subprogram calls and places them in a hypertable. Only subprogram bodies are checked since only they can have recursive calls.

Usage Tip: Use of recursion can impact the required stack size for execution threads that use it. Unwanted recursion or corecursion can creep into software as it is developed and/or maintained by several developers.

Command-Line Interface

Locate_Recursive_Subprograms
  -Check_To_Depth [positive-expression, default = 3]
  -Sort_By_Subsystem
  -Use_Configuration [string-expression, default = ""]
  -To_Report_Named [string-expression, default =
      <default_output_directory>/recursive_analysis]
  <list of units>

Nonstandard Parameters

Sample Output

Locate_Renames

This command locates renaming declarations. The name of the existing declaration and new name introduced by the rename are included in the hypertable.

Usage Tip: This command can be used to ensure that renaming is used consistently throughout the software (that is, that one package is not given several aliases in different parts of the program). Recursive renaming (that is, renames of renames) can also be located. Repair of these inconsistencies can improve software readability.

Command-Line Interface

Locate_Renames
  -Sort_By_Subsystem
  -Use_Configuration [string-expression, default = ""]
  -To_Report_Named [string-expression, default =
      <default_output_directory>/rename_analysis]
  <list of units>

Nonstandard Parameters

All parameters are standard parameters.

Sample Output

Object Renames
Subprogram Renames

Enumeration Renames

Exception Renames

Locate_Rep_Spec_Inconsistencies

This command locates the following representation-specification problems:

Command-Line Interface

Locate_Rep_Spec_Inconsistencies
  -Sort_By_Subsystem
  -Use_Configuration [string-expression, default = ""]
  -To_Report_Named [string-expression, default =
      <default_output_directory>/rep_spec_consistency_analysis]
  <list of units>

Nonstandard Parameters

All parameters are standard parameters.

Sample Output

Inconsistencies in Length Clauses

Inconsistencies in Record Representation Specifications

Locate_Rep_Specs

This command locates all representation and length clauses and collects attributes for them. The following kinds of representation specifications are located:

Command-Line Interface

Locate_Rep_Specs
  -Include_Enumeration_Representation_Clauses
  -Include_Record_Representation_Clauses
  -Include_Address_Attribute_Clauses
  -Include_Alignment_Attribute_Clauses
  -Include_Bit_Order_Attribute_Clauses
  -Include_Component_Size_Attribute_Clauses
  -Include_External_Tag_Attribute_Clauses
  -Include_Input_Attribute_Clauses
  -Include_Machine_Radix_Attribute_Clauses
  -Include_Output_Attribute_Clauses
  -Include_Read_Attribute_Clauses
  -Include_Small_Attribute_Clauses
  -Include_Size_Attribute_Clauses
  -Include_Storage_Pool_Attribute_Clauses
  -Include_Storage_Size_Attribute_Clauses
  -Include_Write_Attribute_Clauses
  -Include_Implementation_Defined_Attribute_Clauses
  -Sort_By_Subsystem
  -Use_Configuration [string-expression, default = ""]
  -To_Report_Named [string-expression, default =
      <default_output_directory>/rep_spec_analysis]
  <list of units>

Nonstandard Parameters

Sample Output

Enumeration Representation Specifications

Record Representation Specifications

Address Attribute Clauses

Size Attribute Clauses

Storage Pool/Collection Size Attribute Clauses

'Small Attribute Clauses

Note: The report format and contents for all other attribute clauses is similar to those above.

Locate_Short_Circuit_Opportunities

This command locates the following Boolean operator usage:

Command-Line Interface

Locate_Short_Circuit_Opportunities
  -Include_Or_Operators
  -Include_Or_Else_Operators
  -Include_And_Operators
  -Include_And_Then_Operators
  -Sort_By_Subsystem
  -Use_Configuration [string-expression, default = ""]
  -To_Report_Named [string-expression, default =
      <default_output_directory>/short_circuit_analysis]
  <list of units>

Nonstandard Parameters

Sample Output

Or Operators

Or Else Operators

And Operators

And Then Operators


Rational Software Corporation  http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2000, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX DOC LIST MASTER INDEX