SymbiFlow / uxsdcxx

generate C++ reader/writer from XSD schema
Apache License 2.0
6 stars 2 forks source link

Unstable output order #33

Open litghost opened 4 years ago

litghost commented 4 years ago

The code generator generate functions in an order that is dependent on the hash order from python, which is unstable. This causes unneeded diffs when re-running the generator.

In generally, function output order should be constant when possible.

duck2 commented 4 years ago

The complex types are sorted in the schema according to tree height. Maybe the order between types with equal tree height is varying? Should we also sort alphanumerically?