Duplicate enumeration member names
Specify the action to take if the code generator detects two enumeration types with same member names
Model Configuration Pane: Code Generation / Identifiers
Description
Select the diagnostic action to take if the code generator detects two enumeration types with same member names. This parameter applies to only enumeration with imported data scope and the same storage type and value.
Settings
error
(default) | none
| warning
none
When the code generator detects two enumeration types with the same member names, the code generation proceeds.
warning
When the code generator detects two enumeration types with the same member names, the software issues a warning message and the code generation proceeds.
error
When the code generator detects two enumeration types with the same member names, the software issues an error message and terminates the code generation.
Examples
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: EnumMemberNameClash |
Type: character vector |
Value: 'none' | 'warning' | 'error' |
Default: 'error' |
Version History
Introduced in R2019b