Commit 4a89483
committed
ClangImporter: support the MS anonymous structure extension
The Microsoft extension permits the creation of structures without a
name which effectively create an anonymous inline structure. Accommodate
that in the ClangImporter.
For more details about the extension, see:
https://docs.microsoft.com/en-us/previous-versions/a3bbz53t(v=vs.140)#anonymous-structs
Thanks to @brentdax for the suggestion of the additional check!1 parent 64ec60b commit 4a89483
File tree
3 files changed
+17
-2
lines changed- lib/ClangImporter
- test/ClangImporter
- Inputs
3 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | | - | |
| 1393 | + | |
| 1394 | + | |
1394 | 1395 | | |
1395 | 1396 | | |
1396 | 1397 | | |
| |||
2397 | 2398 | | |
2398 | 2399 | | |
2399 | 2400 | | |
| 2401 | + | |
| 2402 | + | |
2400 | 2403 | | |
2401 | 2404 | | |
2402 | 2405 | | |
| |||
4011 | 4014 | | |
4012 | 4015 | | |
4013 | 4016 | | |
4014 | | - | |
| 4017 | + | |
4015 | 4018 | | |
4016 | 4019 | | |
4017 | 4020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments