Alastair Robertson
e86ebb7aff
TypeGraph: Support bitfields
...
- Change member and parent offsets to work in bits, not bytes
- Printer still displays offsets in bytes, with decimals when using
bitfields
- AddPadding: Don't pad bitfields
- CodeGen: Emit code for bitfields
2023-07-05 13:23:23 +01:00
Alastair Robertson
00b46377a1
Unit tests: Remove unnecessary make_unique calls
...
This was a purely mechanical change made with some find-and-replace
macros.
2023-07-04 17:18:43 +01:00
Alastair Robertson
24d707cf56
Flattener: Flatten class template parameters
2023-06-29 11:58:39 +01:00
Alastair Robertson
1bb0c62987
Flattener: Attempt to take params from parent allocator in case of bad DWARF
2023-06-27 14:06:02 +01:00
Alastair Robertson
4c96b65038
Flattener: Handle classes which inherit from containers
...
Turn the parent container into a member so that we process it along
with any extra members that this derived class has.
2023-06-23 19:51:19 +01:00
Alastair Robertson
5b6a9434b7
Tests: Use shared functions from type_graph_utils
2023-06-23 15:55:42 +01:00
Alastair Robertson
bd919ae4e4
TypeGraph: Add core code
...
This code mostly works, but is obviously not complete. This commit just
adds the code and tests, but does not enable it in OID or OIL.
2023-05-30 13:27:23 +01:00