abitidy: normalise anonymous type names
Currently libabigail exposes the internal names used for anonymous
types in ABI XML. The names are not stable - they are subject to
renumbering - resulting in "harmless" diffs and difficulties in
keeping ABI XML under version control.
* tools/abitidy.cc (set_attribute): Store an attribute
value.
(normalise_anonymous_type_names): Normalise anonymous type
names by stripping off numerical suffices.
(main): Add normalise-anonymous option processing and action.
Bug: 181269148
Change-Id: Ic4d29605a4d4f7f6951ff9f27b536e5f76f32c74
Signed-off-by: Giuliano Procida <gprocida@google.com>
1 file changed