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

unexposed_t type when template parameters are omitted. #142

Open
deadlocklogic opened this issue Aug 26, 2022 · 1 comment
Open

unexposed_t type when template parameters are omitted. #142

deadlocklogic opened this issue Aug 26, 2022 · 1 comment

Comments

@deadlocklogic
Copy link

deadlocklogic commented Aug 26, 2022

  • cppast version: latest one
  • parser: libclang_parser
  • clang version: 13.0.0

Explanation of the error.

Input:

template <typename T>
class Test {
public:
    Test(const Test&) = delete;
};

The parameter's cpp_reference_type.referee()->kind() is giving unexposed_t.

Adding explicit template parameters solves the issue.

template <typename T>
class Test {
public:
    Test(const Test<T>&) = delete;
};

Possible bug? Or limitation?

@foonathan
Copy link
Collaborator

This is a libclang limitation, unfortunately. I think it's related to #4.

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

No branches or pull requests

2 participants