Closed simonjwright closed 4 years ago
Hi Simon,
I'm assuming that the clause for Interfaces is required by child packages, but have not checked.
Pat,
The complete STM32F4 set will build happily without the use clause, and so would NRF51 were it not for two other problems (and even those are because of my pesky use of -gnatwe).
Since the uses of Interfaces are (for STM32F4, anyway) only to declare types in the top-level package, e.g. type UInt32 is new Interfaces.Unsigned_32;
, rather than subtypes, wouldn’t any operations be OK without the use clause?
Yes, that specific type would have the operations visible, but I was thinking perhaps child packages referenced the content of package Interfaces directly. But if not then I agree we can remove it.
Fixed in #64
I run svd2ada with e.g.
and compile with switches including
-gnatwe
and getThe offending use clause can be removed without any trouble (so far as I can tell; I did try other options, no problems, but no other MCUs).
I did work out a patch:
but since that call is the only one in which
New_With_Clause.Use_Visible
is passed asTrue
perhapsUse_Visible
should be eliminated altogether?