Repository navigation
cpp: a lock-annotation macro below the ) is a func_start tail (Part of #3772) - #6500
Merged
Merged
Conversation
…the function name (Part of #3772) `void Mock::AllowLeak(const void* p)\n GTEST_LOCK_EXCLUDED_(mu) {` named the function after the macro. Tail narrowed to the LOCK/EXCLUDE/REQUIRE/ACQUIRE/RELEASE/GUARDED vocabulary. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…n move (Part of #3772) Resolution recall 63.8 -> 62.6 is a denominator effect: 162 more reference callers map, 67 more edges link. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
Waiting on an owner decision (asked privately, 2026-10-24). Nothing is needed from contributors; work resumes once it is answered. |
…call-resolution baseline Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…call-resolution baseline Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…call-resolution baseline Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This was referenced Oct 25, 2026
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 #3772 (cpp call graph vs libclang 18.1.1, fmtlib/fmt).
What
A thread-safety annotation macro with arguments on its own indented line below the
)(void Mock::AllowLeak(const void* p)\n GTEST_LOCK_EXCLUDED_(mu) {) was read as the function definition, so the real function lost its name and its callers were unmapped. The cppfunc_starttail (_ANNOT_MACROinlanguages/cpp.py) now accepts such a macro, narrowed to the LOCK / EXCLUDE / REQUIRE / ACQUIRE / RELEASE / GUARDED vocabulary. A same-linevoid f() MACRO(1, 2) {and any other indentedMACRO(args) {chain are unchanged.Before / after (cpp vs libclang,
call_graph_resolution.py cpp --ci)caller_unmappedC gate unchanged (100.0 / 25.3 / 58.8). Golden masters: both legs show no drift (
crucible_check.py --update --yes).pr_gates --fast,--ratchetsandaudit_check.pypass. The Go reference is not installable on this box, soall --ciwas not run; only c and cpp were gated.Needs an owner decision: resolution recall -1.2 points
This exceeds the 0.5-point gate tolerance, so I regenerated
tests/call_graph_resolution_cpp_baseline.jsondeliberately rather than leave the gate red. It is a denominator effect: 162 more reference callers become mapped (they enter the denominator) and 67 of their edges link; the other 95 fall in buckets already open (ambiguous/receiver+33,not_extracted/other+28,resolved_outside+22,confident_other_target+3,confident_unmapped_target+9). Linked edges rose by a net 67 and confident-wrong did not rise. I could not diff per-edge (triage samples are capped), so "nothing previously linked was lost" is inferred from the counts, not proven. Revert the baseline if you would rather hold the old number.Class / Sibling gaps
Class covered: a post-
)annotation macro with arguments named as the function (lock-annotation family: GTEST_LOCK_EXCLUDED_, ABSL_LOCKS_EXCLUDED, EXCLUSIVE_LOCKS_REQUIRED, GUARDED_BY chains). Sibling gaps, none needed by a burned-estate program: (1) gtestTEST(suite, name)bodies: the reference names themsuite_name_Test::TestBody, the enginename(6,092 edges; adapter naming inclang_callgraph.py, anddocs/graph_accuracy.mdnotes the qualified-step wrong links this would expose); (2) engine leading::namefor out-of-line template-class members (23); (3) overload choice by arity for cpp (89 wrong-overload links;OVERLOAD_LANGS/calls_out_arities); (4) receiver typing forambiguous/receiver(274); (5)not_extracted/other(905) andsame_name(65); (6) other overloading languages (C#, Kotlin, Scala).Merge with main
Merged origin/main (never rebased); the only conflict was
tests/call_graph_resolution_cpp_baseline.json, regenerated withcall_graph_resolution.py cpp --regenerateon the merged tree (confident precision 84.5%, recall 20.8%, resolution recall 58.1%; the "before / after" table above is relative to the pre-merge base).cpp --ciandaudit_check.pypass.Checklist: partial [c:929272d4] -- C++ clang gate exists; the sibling gaps above (TestBody naming, overload-by-arity, receiver typing) are left.
Cross-repo
None. No companion PRs. Merged after #6490 (cpp baseline and
graph_accuracy.mdoverlap); nothing to re-run elsewhere.Plan change: the plan was overload-by-arity; triage showed the unmapped-caller macro naming was the smaller, self-contained engine defect, so that was fixed instead and arity moved to sibling gaps.
🤖 Generated with Claude Code