Skip to content

Improvements to wrapper code

David Gobbi requested to merge dgobbi/vtk:wrapper-notused into master

This MR contains three improvements to the wrapper code:

The hard-coded expansion of vtkNotUsed(), VTK_LEGACY() and VTK_EXPORT have been removed from the parser. These macros are now expanded by the preprocessor, as they should be.

The parser rules for "friend" members have been corrected to allow for custom attribute specifiers after the "friend" specifier. For example, several classes in VTK have a "friend VTK_EXPORT" declaration for "operator<<".

Finally, the custom attribute flags used by the wrappers have been moved to their own 32-bit bitfield, which will make it possible to define many more wrapper-specific attributes in the future.

Edited by David Gobbi

Merge request reports