代码外观
配置代码外观会影响代码生成:
减少潜在的标识符名称冲突
允许您选择自定义保留字,代码生成器将不会在生成的标识符中使用这些保留字
主题
- Configure Code Comments
Configure how code generator inserts comments into generated code.
- Include MATLAB Code as Comments in Generated Code
Correlate code generated for a MATLAB Function block with MATLAB® source code.
- Construction of Generated Identifiers
For GRT and RSim targets, the code generator automatically constructs identifiers for variables and functions in the generated code.
- Identifier Name Collisions and Mangling
In identifier generation, a circumstance that would cause generation of two or more identical identifiers is called a name collision.
- Specify Identifier Length to Avoid Naming Collisions
Use the Maximum identifier length parameter to limit the number of characters in function, type definition, and variable names.
- Reserved Keywords
If you use the code generator to produce C or C++ code, your model must not contain keywords that are reserved for internal use.
- Specify Reserved Names for Generated Identifiers
Specify a set of names that the code generation process should not use.