Exploring Generated Code
Use code generation reports to explore and understand the generated code
After you generate code, inspect the source code and output results. The code generation report provides an interactive interface for inspecting the generated C/C++ source files, generated data types, and other code insights. Access a subset of information from the code generation report programmatically by using the report information object.
Functions
getLineColumn | Find locations of beginning and end of MATLAB code involved in code generation |
Properties
| coder.BuildLog Properties | Build logs produced during code generation |
| coder.CodeFile Properties | Description of file containing text that is involved in code generation |
| coder.File Properties | Description of file without text that is involved in code generation |
| coder.Function Properties | Description of MATLAB function used in code generation |
| coder.Message Properties | Description of message produced during code generation readiness analysis or during code generation |
| coder.Method Properties | Description of method in a MATLAB class used in code generation |
| coder.ReportInfo Properties | Code generation report information |
| coder.Summary Properties | Summary of code generation from MATLAB code |
Topics
Code Generation Reports
- Code Generation Reports
View code generation results. - Tracing Generated C/C++ Code to MATLAB Source Code
Generate traceability tags. - Access Code Generation Report Information Programmatically
Access information about code generation such as input files, generated files, and error messages by using a report information object.
Troubleshooting
- Avoid Duplicate Functions in Generated Code
Reduce the occurrence of duplicate functions in the generated code.
