Adding keywords (C and C++)
To improve keyword support for reverse engineering and roundtripping so that 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 Set pre-processor options window.
About this task
To add additional keywords for C and C++ projects:
Procedure
- In the Add defines, undefines and keywords section on Set pre-processor options window, click New icon.
- In the new row, select the type of the entry from the options and add the value.
- Notice on the Set pre-processor options window that
your keywords with type
Keyword
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 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.