| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | struct-init: Support range inits for local vars | Michael Matz | 2016-12-15 | 1 | -0/+4 |
| | | | | | Implement missing support for range init for local variables. | ||||
| * | struct-init: Allow member initialization from qualified lvalues | Michael Matz | 2016-12-15 | 1 | -3/+25 |
| | | | | | See testcase. | ||||
| * | struct-init: Correctly parse unnamed member initializers | Michael Matz | 2016-12-15 | 1 | -0/+23 |
| | | | | | | | | | | | | | | For union U { struct {int a,b}; int c; }; union U u = {{ 1, 2, }}; The unnamed first member of union U needs to actually exist in the structure so initializer parsing isn't confused about the double braces. That means also the a and b members must be part of _that_, not of union U directly. Which in turn means we need to do a bit more work for field lookup. See the testcase extension for more things that need to work. | ||||
| * | struct-init: Cleanup | Michael Matz | 2016-12-15 | 1 | -0/+11 |
| | | | | | | | | Remove dead code and variables. Properly check for unions when skipping fields in initializers. Make tests2/*.expect depend on the .c files so they are automatically rebuilt when the latter change. | ||||
| * | struct-init: Implement initializing subaggregates | Michael Matz | 2016-12-15 | 1 | -0/+139 |
| E.g. "struct { struct S s; int a;} = { others, 42 };" if 'others' is also a 'struct S'. Also when the value is a compound literal. See added testcases. | |||||
