User and Reference Guide for the Intel® C++ Compiler 14.0
Tells static analysis to treat enumeration variables as known values equal to any one of the associated enumeration literals.
Linux OS: | -diag-enable sc-enums |
OS X: | None |
Windows OS: | /Qdiag-enable:sc-enums |
None
OFF |
If static analysis is enabled, it treats unknown enumeration variables as unknown integer values. |
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 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.
Windows: Diagnostics > Treat Enumerations as Known Ranges
Linux: Compilation Diagnostics > Treat Enumerations as Known Ranges
OS X: None
None