Oracle® Solaris Studio 12.4: Code Analyzer User's Guide

Exit Print View

Updated: October 2014
 
 

codean Options

The following sections explain the different options you can use for codean..

Data Type Options

The following options determine which type of data to collect.

–s

Process and display static data.

–d

Process and display dynamic data.

–c

Process and display coverage data.

You can specify multiple options or none. If none are selected, than the default is to process all possible options, depending on whether the .analyze/type/latest file exists, where type can be static, dynamic, or coverage.

Displaying Options

The following options determine the content of the text output of your results.

–-fullpath

Display the full file's path name.

–f source-file

Display only the issues in the specified source file.

–n number

Display the specified number of lines of the source code.

Filtering Options

The following options determine the types of errors and warnings that are reported in the results.

The error or warning type can be one of the following:

If the error or warning is not specified, the default is all.

The filtering options are:

–-showerrors error-type

Show only errors of the specified error type.

–-showwarnings warning-type

Show only warnings of the specified warning type.

–-hideerrors error-type

Do not show errors of the specified error type.

–-hidewarnings warning-type

Do not show warnings of the specified warning type.

Saving Results Options

You can save your latest results in a file, placed in a specific directory with specific tag names.

–-save

Save the latest reports.

–-tag tag-name

When paired with –-save, names the saved copy with the tag name tag-name. If a saved copy has the same tag name, codean issues a warning message and then exits without overwriting the file. If no tag name is specified, codean checks the last modified time of the latest report of the executable and uses the time stamp as the tag name.

–t

Overwrite the saved report with the same tag name.

–D directory

Save the report to the directory directory.

Comparing Results Options

The following options enable you to compare your results to a previously generated report.

–-whatisnew

Show only new issues. This option cannot be used with –-whatisfixed.

–-whatisfixed

Show only fixed issues. This option cannot be used with –-whatisnew.

–-tag tag-name

When paired with –-whatisnew or –-whatisfixed, uses the historic copy of the report with tag name tag-name to compare against newly generated report. If no tag name is specified, the latest report is compared against the last saved copy.

–-ref file|directory

Must be paired with –-whatisnew or –-whatisfixed and must have a path name following it. This option specifies which file or directory to compare the new report against.