Intel® C++ Compiler XE 13.1 User and Reference Guides

diag-enable sc-enums, Qdiag-enable:sc-enums

Tells static analysis to treat enumeration variables as known values equal to any one of the associated enumeration literals.

IDE Equivalent

Windows: Diagnostics > Treat Enumerations as Known Ranges

Linux: Compilation Diagnostics > Treat Enumerations as Known Ranges

OS X: None

Architectures

All

Syntax

Linux:

-diag-enable sc-enums

OS X:

None

Windows:

/Qdiag-enable:sc-enums

Arguments

None

Default

OFF

If static analysis is enabled, it treats unknown enumeration variables as unknown integer values.

Description

This option tells static analysis to treat enumeration variables as known values equal to any one of the associated enumeration literals. By default, static analysis treats unknown enumeration variables as unknown integer values. Setting this option may find additional errors but tends to create more false positives.

This option is ignored unless static analysis diagnostics are enabled by providing one or more of the following options:

Alternate Options

None

See Also


Submit feedback on this help topic