abitidy: Add method to replace old type ids of anonymous types by new ones

This replacement aims to make the anonymous type ids in the ABI XML less
prone to undergo changes randomly, since the replacement method uses new
type ids which are derived from type information that are more stable
and ensure that different hashes are possibly generated for different
types. Therefore this helps in avoiding linear probing during hash
generation for type ids.

Bug: 239910948
Signed-off-by: Sid Nayyar <sidnayyar@google.com>
Change-Id: I7ed50f0cb488c44d68c53719102171b4b49d73f5
1 file changed