Using SoftBench Static Analyzer

Simplifying Query Results

Simplifying Query Results

SoftBench Static Analyzer provides filtering mechanisms that allow you to focus only on the query results in which you are interested. These filters reduce the chance of information overload. SoftBench Static Analyzer also provides specific filters for graphical queries, which are described in “Simplifying Graph Displays” on page 292.

Table 9-1

SoftBench Static Analyzer Display Options

 

 

 

 

Command

Description

 

 

 

 

"View: Display Results"

Controls what data attributes are

 

submenu

displayed in the Query Results

 

 

Area.

 

 

 

 

"View: Sort Results"

Allows you to sort results by file,

 

submenu

result, or attribute.

 

 

 

 

"View: Filter Results…"

Provides numerous toggle button

 

 

settings for filtering C++ data. (See

 

 

“Filtering C++ Query Results” on

 

 

page 268.)

 

 

 

 

"Options: Behavior

Provides access to the filter that

 

Settings…"

limits queries to the analysis file set.

 

 

 

Filtering Results Using the File Set

SoftBench Static Analyzer provides a filter to focus queries only on the code in your project. For example, there are many instances when you are not interested in code libraries developed by other teams, or the identifiers declared in the /usr/include directory. Choose "Show: Source Files" to display the source files SoftBench Static Analyzer uses for query results. Without a filter, this query produces a list similar to the one displayed in Figure 9-3.By default, SoftBench Static Analyzer reports results from all files that were compiled, including header files.

266

Chapter 9