callgraph: same-file C++ free-function overloads stop as ambiguous regardless of arguments

Abierto
#197 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
67/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp, rust
Área
devtools

Línea de trabajo

Start by tracing how callchain resolves C++ free-function calls and compare that path with the member-call overload disambiguation mentioned in the issue. Use the reproducer and run callchain call_over --up 0 --down 3; done means it follows over(int) to over1_leaf and never follows over0_leaf.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Direct callgraph resolution for C++ free functions ignores call arity and argument types, so an unambiguous call to an overloaded free function stops at [ambiguous:] instead of following the matching overload.

Reproducer

void over0_leaf() {}
void over1_leaf() {}
void over() { over0_leaf(); }
void over(int x) { (void)x; over1_leaf(); }
void call_over() { over(1); }

Running callchain call_over --up 0 --down 3 stops at over as [ambiguous:] rather than resolving over(1) to over(int) (over1_leaf).

Expected behavior

call_over should resolve over(1) to over(int) and follow over1_leaf (while still never following over0_leaf), matching the arity/type overload disambiguation already done for member calls.

Lenguaje dominante
Rust
Estrellas
187
Forks
53
Merge medio
1 d 9 h
PR fusionados (30 d)
79

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de facebookexperimental/semcode

Todos los issues de facebookexperimental/semcode

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.