Repository navigation
calls_out: LOG_AS before try is not a function-try-block head (Part of #6266) - #6990
Merged
Merged
Conversation
…#6266) doomsday's `LOG_AS("X")` has no `;`, so `LOG_AS("X")\n try {` read as a function-try-block head and the real function lost its calls to a phantom LOG_AS function. Shield LOG_AS in the cpp func_start regex; re-bless doomsday. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
3 of 5 tasks
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.
What
doomsday's
LOG_AS("Updater")opens a log section with no;, soLOG_AS("X")followed bytry {read as a function-try-block head (f() try {). The cppfunc_startregex emitted a phantomLOG_ASfunction and the real function (handleReply/finished) lost its body's calls. A shield lookahead forLOG_ASis added beside the existing macro-statement shields incpp.py.Checklist: partial [c:0254d813] -- doomsday still lists callgraph in expected_fails (3 misses, 16 scored engine-only edges left); the other 16 ports are already clear.
Evidence
--only doomsday --update --yes(LOG_ASappears in no other cloned port): callgraph_misses 5 -> 3, recall 0.9999 -> 1.0, precision 0.9687 -> 0.9684, functions 25485 -> 25484 (the phantomLOG_ASinupdater.cpp, 35 -> 34 functions). Golden re-blessed:tests/golden_doom_rosetta/doomsday.json.gz.golden-lock.sh crucible_check.py: full_precision PASS, zero_dependency PASS (zero drift).pr_gates.py --fast: 9/9 pass.pr_gates.py --ratchets: 9 pass, 0 fail, 0 skipped.test_log_as_statement_before_try_is_not_a_function_try_block_headalso pins that a realA() try : x(1) {...}constructor still yields its calls.Class / Sibling gaps
Class: a macro statement with no trailing
;that the cppfunc_startregex reads as a definition head (hereNAME(...)followed bytry {). Handled member:LOG_AS. Other no-;macros in the burned/cloned ports are already shielded (DE_FOR_EACH,IFVIRTUAL*,MOODYCAMEL_*).Sibling gaps still keeping doomsday's check 7 red (each needs its own mechanism; none checked against a burned-estate program, no burned COBOL estate involved):
at -> delta(edgetip.h:162): oracle likely readsdelta < epsilon || delta > (...)as a template call.sortSegments -> map(line.cpp:149): qualified template callde::map<decltype(segments)>(...)missed by the engine.hasSkyMaskedMaterial -> surfaceMaterialChanged(surface.h:157): callee is aDE_AUDIENCE(...)declaration.libraryfile.cpp.old,sdlnativefont.cpp.old: 4 absent edges (File,NativeFont), no class declaration anywhere.packageswidget.cpp:Impl -> Base,PackagesWidget -> GuiWidgetx2.fontlinewrapping.cpp:DE_PIMPL_NOREF -> CString(absent),-> line(member init in a nested struct).outputstate.cpp:filledLine -> isDone/remove/replace.delete_fluid_defsfont,delete_fluid_ramsfont -> context.inputdevice.cpp:description -> isActive/name(oracle likely mis-parses the_E()macro beside a string literal).catchhandler calls are not collected.Remaining slices
Close the sibling gaps above, then drop
callgraphfrom doomsday'sexpected_failsand re-bless; then the nightly-green item.Cross-repo
None.
Lessons for agents
A full
doom_rosetta_checkruns for hours; when a change touches text found in one port, use--only <port>(grep the clones first).🤖 Generated with Claude Code