thibaultmarin / hpp2plantuml

Convert C++ header files to PlantUML
MIT License
223 stars 35 forks source link

#defines in enumerator is causing error #29

Open JacobNoergaard opened 1 year ago

JacobNoergaard commented 1 year ago

It might be a corner case, but a corner case I am stumbling into right now.

The following snippet is causing an error and I am not sure if the #define should be ignored in the diagram or not.


enum class states
{
    #undef ID
    #define ID(x) x,
    state
};
thibaultmarin commented 1 year ago

There seems to be an error when parsing this with robotpy-cppheaderparser (which is used for parsing). This may be improved when migrating to cxxheaderparser should happen at some time in the future.