Reverse engineering comments

During reverse engineering, a comment that comes immediately before the code for an element is considered a comment for that element, and the comment text will be brought into IBM® Rational® Rhapsody® as the description for that element.

You can use the <lang>_ReverseEngineering::ImplementationTrait::PreCommentSensibility property to specify the maximum number of lines by which a comment can precede the code for an element and still be considered a comment for that element. Any comment that precedes an element by more than the number of lines specified will be considered a floating comment. For example, a value of 1 means that a comment must appear on the line before the code for an element to be considered a comment for that element. The default is 2.

If a C or C++ project has been reverse engineered, the comments are imported as text elements in the relevant SourceArtifacts and are read in as whole blocks. (The comments that are not became a description of some element that is imported.) Then when the code is generated or roundtripped, the comment/text element is placed in its correct place based on its original location.

The following properties are set by default for this feature:

For information about code preserving and SourceArtifacts, see Reverse engineering SourceArtifacts.

Note the following information:


Feedback