fix(tools): check exports through local ABI aliases #9568
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9568"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by SnekPolylepis on 2026-10-22T02:38:30Z.
Refresh: October 26 refresh: merged current upstream main at c8254c160. Windows conventions and git diff --check pass; 181 conventions tests pass (Python 3.13). The earlier test results below refer to the previous head.
What
Local calling-convention aliases such as
#define NATIVE_SYSV APS5_VABIcurrently hide exports from the conventions checker's duplicate-export and silent-stub checks. Expand local single-line object-like aliases before identifying exports, including alias chains, redefinitions, undefinitions and cycles. Preserve the original source for comment checks.Add regression cases showing that aliased exports cannot bypass either check. This changes tooling only and adds no dependencies.
Tested
git diff --checkpassed.tools/pr_overlap.py --branch fix/abi-alias-export-check: no overlap with open pull requests. Related PR #8777 covers assembly exports; merge-tree check with its fetched head was clean.Scope: local single-line object-like aliases only; this does not implement a full C++ preprocessor.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-22T02:38:54Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Pull request closed