Repository navigation
Call graph (perl): bare no-argument built-ins time, wait, wantarray, fork, eof, pos (Part of #6433) - #7004
Merged
Conversation
…fork, eof, pos (Part of #6433) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #6433. Slice 6: no-argument and optional-argument Perl built-ins written without parentheses.
Changes
_PERL_BUILTINgainstime times wait wantarray fork getppid getlogin eof pos study fileno readline chroot rewinddir telldir.(?<!sub )(?<!sub\t)guard keepssub wait {from reading as a call. Hash keys ({time},time =>) were already excluded.golden-lock.sh crucible_check.py --update --yes. Drift is perlcalls_out_toonly (bugzilla CGI.pm gainswantarray) and the hashes derived from it.Class / Sibling gaps
Class: Perl calls written without parentheses where the callee is a bare no-argument or optional-argument built-in missing from
_PERL_BUILTIN. All members listed above are handled in this PR with tests. I picked the shape from reading the pattern and its test, not from a measured corpus gap. Sibling gaps: (1) user-defined paren-less calls with no argument (foo;): needs a symbol table, not feasible regex-only; (2)ambiguous_function_call_expressionshapes (188) and engine-attributes (731) from #6433; (3) a call-graph resolution re-measure for perl; (4)sub waitwith two or more blanks is not guarded (fixed-width lookbehind).Gates
pr_gates --fast9/9 pass,--ratchets9/9 pass, perl test files pass.🤖 Generated with Claude Code