Skip to content
New issue

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

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

Already on GitHub? # to your account

Arguments in a template specialization are not exposed #9

Open
foonathan opened this issue Apr 18, 2017 · 0 comments
Open

Arguments in a template specialization are not exposed #9

foonathan opened this issue Apr 18, 2017 · 0 comments

Comments

@foonathan
Copy link
Collaborator

  • cppast version: latest one
  • parser: libclang_parser
  • clang version: 3.9.1+

Due to a libclang limitation, the arguments in a template specialization are only available as a string unless the specialization is in a friend declaration.

Input:

template <typename T, int I>
struct foo {};

template <>
struct foo<int, 42> {};

Here, the only information available about the specialization arguments is the string "int, 42".

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

No branches or pull requests

1 participant