Including a header file in a generated file

If you need to include an external C/C++ header file in a generated C++ file, do the following:

As always when editing C++ code using the Code view or Code editor, load the generated source (right-click in the editor and choose the command from the context menu or press Ctrl + Shift + L). By doing so, the generated C++ file gets loaded into the Code view or Code editor and all editing features of Eclipse CDT become available. If you edit without doing this step, some editing features are missing.