thibaultmarin / hpp2plantuml

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

Keep order of members #17

Open mxmlnkn opened 3 years ago

mxmlnkn commented 3 years ago

Hello,

Thank you for providing this useful tool!

I tried it on some headers and it is a good start but I noticed that the members seem to have a complete random order, neither alphabetical nor the order as defined in the original headers.

I think it would be helpful to keep the order as defined in the input headers.

As for reproducing the problem if it is code dependend. I ran:

hpp2plantuml -i 'indexed_bzip2/*.hpp' > ParallelBZ2Reader.puml

on indexed_bzip2.

thibaultmarin commented 3 years ago

Currently, class members should be ordered alphabetically by type then name. It may be possible to implement an option to sort by input filename and position in the filename, I will look into this in a coming version.