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

Aperta
#196 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp, rust
Ambito
devtools

Direzione di ricerca

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 ::.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Rust
Stelle
187
Fork
53
Merge medio
1g 9h
PR unite (30g)
79

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di facebookexperimental/semcode

Tutte le issue di facebookexperimental/semcode

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.