extract: C++ global-scope ::fn handovers are dropped

Open
#196 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp, rust
Domain
devtools

Research direction

Read the qualified use-site reduction described in the issue and the behavior documented in commit ee63003; the payload does not name a file or test. Start by locating where owner::leaf is reduced and where the leading :: case is rejected, then inspect the handover tests for register_dev. Done when register_dev(::my_read) records a handover target of my_read without the leading ::.

Written by the indexing model from the issue text.

Description

Passing a global-scope qualified C++ function (::my_read) as a callback argument records no handover row.

Reproducer

void f() { register_dev(::my_read); }

No ArgumentFunction handover row is recorded for register_dev, whereas register_dev(ns::my_read) and register_dev(my_read) both record target = "my_read".

Cause

Documented in ee63003: qualified use-site reduction strips owner::leaf to leaf, but rejects a lone leading :: because it has no namespace/owner segment before ::.

Expected behavior

register_dev(::my_read) should record a handover row targeting my_read (without leaving a malformed ::my_read target string).

Dominant language
Rust
Stars
187
Forks
53
Avg merge
1d 9h
Merged PRs (30d)
79

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebookexperimental/semcode

All issues in facebookexperimental/semcode

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.