Consider this header:
```
struct Foo {
struct {
int x;
union {
int y;
int z;
};
};
};
```
Jextract generates this:
```
private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
MemoryLayout.structLayout(
foo_h.C_INT.withName("x"),
MemoryLayout.unionLayout(
foo_h.C_INT.withName("y"),
foo_h.C_INT.withName("z")
).withName("$anon$7:9")
).withName("$anon$5:5")
).withName("Foo");
```
As it can be seen, the nested anon layouts are not indented as they should and this causes the layout declaration to be not very readable.
```
struct Foo {
struct {
int x;
union {
int y;
int z;
};
};
};
```
Jextract generates this:
```
private static final GroupLayout $LAYOUT = MemoryLayout.structLayout(
MemoryLayout.structLayout(
foo_h.C_INT.withName("x"),
MemoryLayout.unionLayout(
foo_h.C_INT.withName("y"),
foo_h.C_INT.withName("z")
).withName("$anon$7:9")
).withName("$anon$5:5")
).withName("Foo");
```
As it can be seen, the nested anon layouts are not indented as they should and this causes the layout declaration to be not very readable.