cppast icon indicating copy to clipboard operation
cppast copied to clipboard

`unexposed_t` type when template parameters are omitted.

Open deadlocklogic opened this issue 3 years ago • 1 comments

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

deadlocklogic avatar Aug 26 '22 19:08 deadlocklogic

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

foonathan avatar Aug 31 '22 16:08 foonathan