Macro collecting in C and C++

Macro collecting allows IBM® Rational® Rhapsody® to understand macros automatically in code that will be reverse engineered. This macro collecting enhances the process for re‑using legacy C and C++ code within the product, providing an easier adoption of Model-driven Development (MDD) while enabling a more code‑centric workflow.

During reverse engineering, Rational Rhapsody imports "include" files according to the options selected on the Input tab of the Reverse Engineering Advanced Options window. "Include" files that do not satisfy the specified criteria are not imported into the model.

This can lead to problems if there are files that use macros from "include" files that not will not be imported into the model according to the reverse engineering options selected. To prevent any such problems, the product goes through all "include" files and collects any macros defined in them.

Note: During reverse engineering, macro collection takes place before import of the files so the macros are taken into account when the model is built.

Feedback