fix(tests): recognize data alias header declarations #13452

Merged
kyon-eth merged 7 commits from upstream-pr/13452 into main 2026-10-31 00:08:45 +00:00
kyon-eth commented 2026-10-30 15:28:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kyon-eth on 2026-10-30T15:28:20Z.


What

The public-header audit treats every APS5_EXPORT alias target as a function. A valid alias to an externally declared data object therefore fails even when its data declaration is reachable. Recognize external data declarations for alias-only exports while continuing to require a function declaration whenever the source defines a function.

Tested

  • Focused audit fixtures pass for a reachable data declaration, missing or duplicate data declarations, a valid function declaration, and rejection of a function declared as data. They are included in the existing registered NID test suite; the focused cases were run directly.
  • Repository-wide public-header audit passed: 374 libraries and 23,663 exports checked.
  • Conventions and whitespace checks passed. The open-PR overlap scan found no overlap on this head.
  • No Linux or Windows run was performed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5086804569 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13452). Originally posted by [kyon-eth](https://github.com/kyon-eth) on 2026-10-30T15:28:20Z. --- ### What The public-header audit treats every `APS5_EXPORT` alias target as a function. A valid alias to an externally declared data object therefore fails even when its data declaration is reachable. Recognize external data declarations for alias-only exports while continuing to require a function declaration whenever the source defines a function. ### Tested - Focused audit fixtures pass for a reachable data declaration, missing or duplicate data declarations, a valid function declaration, and rejection of a function declared as data. They are included in the existing registered NID test suite; the focused cases were run directly. - Repository-wide public-header audit passed: 374 libraries and 23,663 exports checked. - Conventions and whitespace checks passed. The open-PR overlap scan found no overlap on this head. - No Linux or Windows run was performed. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!13452
No description provided.