fix(tools): preserve function bodies after line comments #1323
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1323"
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 darhebkf on 2026-10-07T23:35:07Z.
What
The checker skips a function after a line comment because DOTALL makes
//.*consume its closing brace. Restrict line comments to their line. Include functional parser and CLI regressions under a distinct filename and register them with CTest. The trusted Conventions workflow is unchanged.Tested
Rebased onto main
d70b8998. macOS 15.7.3, Apple Silicon, AppleClang 17, Python 3.14.6. The relinker-only Release build passed all 39 CTest groups on this branch, including seven checker regressions. The checker group took 0.28 s locally.The shared upstream C++ relinker sources were built in Release during this review; subsequent tool-only branches ran their affected CTest groups. Conventions and whitespace checks pass for each branch. Full Linux/Windows runtime validation requires a maintainer-dispatched Build run; no title or homebrew was executed.
Checklist
main; no other open PR implements the same fix.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T12:38:32Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)tools/tests/test_check_conventions.pytools/tests/test_check_conventions.pyImported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T13:10:22Z.
Windows run (Windows 11 Pro 25H2, Python 3.14),
a00559a2cherry-picked ontomaind70b8998:tools/tests/test_check_conventions_comments.py: passes.tools/check_conventions.pyreset tomainand the new tests kept:FAILED (failures=6), so the tests catch what the change fixes.tools/check_conventions.py --base upstream/mainwith this change passes on Windows.AI-assisted: yes