Commit 2a5e7cc
Fix cross-partition remaps, fn ptr direction, and suffix filter
- Fix fn ptr alreadyPointer pattern: when the prototype name has a P/LP
prefix and the alias doesn't, remap alias→proto (not proto→alias).
Added FnPtr_AlreadyPointer_AliasRemappedToPointerName test.
- Fix suffix-adding remaps (GLUnurbs→GLUnurbsObj): filter out remaps where
the typedef is longer than the tag and starts with the tag name, since
the tag name is already the canonical name. Added SuffixAdding_Filtered test.
- Add missing #include directives to 8 partition main.cpp files to resolve
cross-partition typedef gaps (e.g., Security.WinTrust needs mssip.h for
SIP_DISPATCH_INFO typedef).
- Cross-partition consistency check tracks header file paths and generates
actionable error messages with specific #include suggestions.
- Add RuntimeIdentifier to test project for native lib resolution.
- Remove 12,197 manual --remap entries and 160 fn ptr fixups (kept as
auto-discovered). 526 genuinely manual entries remain.
- Winmd identical to baseline (24,328,704 bytes), 0 errors, 0 consistency
errors, all 39 tests pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 65bbe3d commit 2a5e7cc
17 files changed
Lines changed: 298 additions & 133 deletions
File tree
- generation/WinSDK
- Partitions
- Direct2D
- IpHlp
- NetMgmt
- RRas
- Security.Cryptography.Sip
- Security.WinTrust
- TermServ
- Wsw
- scripts
- sources
- GeneratorSdk/MetadataTasks
- Win32MetadataScraper
- tests/Win32MetadataScraperTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | 287 | | |
289 | 288 | | |
290 | 289 | | |
| |||
692 | 691 | | |
693 | 692 | | |
694 | 693 | | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
0 commit comments