In C and C++, when you create a struct or union and add
members to it, the order of the members in the code generated by Rational® Rhapsody® is
the order that is displayed on the Attributes tab of the features
dialog. You can change the order using the arrow controls provided.
Procedure
- Open the features dialog for the struct or union.
- Select the attribute you want to move.
- Use the up/down arrows to move the attribute to a different
location in the list.
- Click Apply or OK.
Results
The next time code is generated, the order of the members
in the code will reflect the order that you specified.