sourcegraph / scip-clang

Apache License 2.0
56 stars 7 forks source link

Attempt to match number of template arguments to prune references for unresolved lookup expressions #439

Closed varungandhi-src closed 2 weeks ago

varungandhi-src commented 1 year ago

In the following code

template <typename T>
void f() {}

template <typename T, typename U>
void f() {}

template <typename T>
void g() { f<T>(); }

Here, even though f is unresolved, it cannot match the second case because U doesn't have a default value.