Main Content


Customize generated identifiers

You can configure how the code generator generates identifiers for code structures. Use identifier naming rules to generate identifiers that are meaningful, unique, and traceable. You can use identifier naming rules in the model configuration set, Code Mappings Editor, and Embedded Coder® Dictionary.

You can control the maximum length of generated identifiers and include name-mangling text to avoid name collisions. You can use token decorators to control the content of an identifier using regular expressions. Certain keywords are not valid as identifiers, such as keywords from C and C++.


RTW.reservedIdentifiersGet reserved identifiers for code generation (Since R2023b)