diag-enable sv-include, Qdiag-enable sv-include

Tells the Static Verifier to analyze include files and source files when issuing diagnostic messages.

IDE Equivalent

Windows: Diagnostics > Analyze Include Files

Linux: Compilation Diagnostics > Analyze Include Files

Mac OS X: Diagnostics > Analyze Include Files

Architectures

IA-32, IntelĀ® 64, IA-64 architectures

Syntax

Linux and Mac OS X:

-diag-enable sv-include

Windows:

/Qdiag-enable sv-include

Arguments

None

Default

OFF

The compiler issues certain diagnostic messages by default. If the Static Verifier is enabled, include files are not analyzed by default.

Description

This option tells the Static Verifier to analyze include files and source files when issuing diagnostic messages. Normally, when Static Verifier diagnostics are enabled, only source files are analyzed.

To use this option, you must also specify -diag-enable sv (Linux and Mac OS X) or /Qdiag-enable:sv (Windows) to enable the Static Verifier diagnostics.

Alternate Options

None

Example

The following example shows how to cause include files to be analyzed as well as source files:

-diag-enable sv -diag-enable sv-include    ! Linux and Mac OS systems

/Qdiag-enable:sv /Qdiag-enable:sv-include  ! Windows systems

In the above example, the first compiler option enables Static Verifier messages. The second compiler option causes include files referred to by the source file to be analyzed also.

See Also