| commit | 89495c33260b3f637acb8f79181cc6db08771f90 | [log] [tgz] |
|---|---|---|
| author | Tom Tromey <tromey@adacore.com> | Fri Aug 01 11:11:41 2025 -0600 |
| committer | Tom Tromey <tromey@adacore.com> | Tue Aug 12 08:30:37 2025 -0600 |
| tree | 525da36fc4d6846f8b8b34ae12c449b414d38dbc | |
| parent | 55c91b7e5c7f7829ff69738f159e0380383a7356 [diff] |
Change type::fields to return an array_view This patch changes type::fields to return an array_view of the fields, then fixes up the fallout. More cleanups would be possible here (in particular in the field initialization code) but I haven't done so. The main motivation for this patch was to make it simpler to iterate over the fields of a type. Regression tested on x86-64 Fedora 41. Approved-By: Simon Marchi <simon.marchi@efficios.com>