Hi,
I'm using generate code option to generate the C++ code for a simple class and find when I try and sychronise the code back to the model (after I update the code in the C++ file) the comments get screwed up. Using EA 907.
I have the generate code | Source code Engineering | C++ options | Options for current user set to : (from default attrbute type) : int, false,plain,true,true,true,true,blank, .h,.hpp, blank,blank. Also, nothing fancy in the code generation templates.
When I generate the C++ from the model I get:
/// Class Notes for Test BCL Interface
class TestBCLInterface
{
public:
/// TEST IN DATAIN
/// \param index: index p1
/// \param frame1flag
/// \param vframe1[40]
/// \param frame2flag
/// \param vframe2[40]
/// \param msg
virtual void MSG_TEST_DATAIN(BYTE index, FrameFlag frame1flag, BYTE vframe1[40] , FrameFlag frame2flag, BYTE vframe2[40], MessageMemory& msg) =0;
};
Note the comment on the class, and on the method DATAIN, and on parameter 1. All looks ok.
Now edit the C++ code to add a comment for para 2:
/// \param frame1flag: frame flag p2
Now we do a Synchronise with Code (F7).
This updates the model from the code. BUT the comments are now screwed up!. If you click on DATAIN operation, you'll see that the operation notes are now :
TEST IN DATAIN \param index: index p1 \param frame1flag: frame flag p2 \param vframe1[40] \param frame2flag \param vframe2[40] \param msg
para1 still has the right comment, but para 2 (which should be on frame1flag) has no comment.
Help!
I've tried various options, and tried using Javadoc instead of plain style, all to no avail.
Any ideas? is it a bug? or have I got a option set wrong?
Thanks
Rob