Adding keywords (C and C++)

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

  1. On the Add Preprocessing Symbol window, select the Add Symbol and Additional Keywords radio buttons.
  2. Enter a keyword in the Symbol field.
  3. 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.
  4. 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:


Feedback