User and Reference Guide for the Intel® C++ Compiler 14.0

diag-enable sc-include, Qdiag-enable:sc-include

Tells a source code analyzer to process include files and source files when issuing diagnostic messages.

Syntax

Linux OS:

-diag-enable sc-include

OS X:

None

Windows OS:

/Qdiag-enable:sc-include

Arguments

None

Default

OFF

The compiler issues certain diagnostic messages by default. If static analysis is enabled, include files are not analyzed by default.

Description

This option tells the static security analyzer to process include files and source files when issuing diagnostic messages. Normally, when static analysis diagnostics are enabled, only source files are analyzed.

This option is ignored unless you enable static analysis diagnostics by specifying option [Q]diag-enable setting sc[n] or setting sc-mode.

This static analysis feature requires installation of another product. For more information, see Feature Requirements.

IDE Equivalent

Windows: Diagnostics > Analyze Include Files

Linux: Compilation Diagnostics > Analyze Include Files

OS X: Diagnostics > Analyze Include Files

Alternate Options

Linux and OS X: -diag-enable sv-include (this is a deprecated option)

Windows: /Qdiag-enable:sv-include (this is a deprecated option)

Example

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

-diag-enable sc -diag-enable sc-include    ! Linux systems
/Qdiag-enable:sc /Qdiag-enable:sc-include  ! Windows systems

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

See Also


Submit feedback on this help topic