Skip to content

unexposed_t type when template parameters are omitted. #142

Description

@deadlocklogic
  • 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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions