You can use the C++ transformation profile to control how the C++ transformation generates code from a UML model.
Parent topic: Generating C++ code from a model
Related concepts
C++ transformation
C++ transformation profile
Related reference
Installed transformations