Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPA: no namespace when printing instantiation-dependent parameter variables #50

Open
hartogss opened this issue Feb 18, 2021 · 0 comments

Comments

@hartogss
Copy link
Owner

hartogss commented Feb 18, 2021

PrintingPolicy.PrintCanonicalTypes causes instantiation-dependent types' to be printed not qualified. Example:

void func(std::vector<int> v);

template<typename T>
void func(std::vector<T> v);

The reported types of the 2 v's are
std::vector<int> and
vector<type-parameter-0-0> respectively.
This has as effect that we cannot compute any statistics about types of parameters that are instantiation-dependent used in function template decls, because they are indistinguishable due to missing namespace qualifications.
This is not a really big problem, because we can't do that always anyway, e.g. there will be many function template parameter variable of type type-parameter-0-0, which aren't indicative either.
I suspect this to be a clang bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant