To improve keyword
support for reverse engineering and
roundtripping so that IBM® Rational® Rhapsody® can
correctly import and roundtrip declarations that use nonstandard or
unknown keywords, you can add a list of additional user‑defined keywords
to the Preprocessing tab of the Reverse
Engineering Options window.
About this task
To
add additional keywords
for C and C++ projects:
Procedure
- On
the Add Preprocessing Symbol window,
select the Add Symbol and Additional Keywords radio
buttons.
- Enter a keyword in
the Symbol field.
- Depending on what you want to do:
- Click Apply if
you want
to enter more additional keywords.
- Click OK if
you are done
and to return to the Preprocessing tab.
- Notice on the Preprocessing tab
that your keywords with type K are added to the list
of preprocessing items.
Results
Note: You
can use the
<lang>_ReverseEngineering:Parser:AdditionalKeywords property
to add a list of comma-delimited additional keywords (for example:
far,near).
This property might already have keywords included in it that is provided
with
Rational Rhapsody.
Note the following restrictions on additional keywords:
- Keywords with parameters are not supported.
- Keywords with more than one word in them are not
supported.
- Keywords cannot be seen in the signature
for the
element.
- If the same keyword is used in more
then one place
(for example, before the type and after the type), the parser will
encounter an ambiguity and will fail to indicate the keyword use correctly.