-
Notifications
You must be signed in to change notification settings - Fork 746
clang::Type::num_template_args should return Option<u32> #135
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
Comments
Please make a comment here if you intend to work on this issue. Thank you! |
Hi, I'll be happy to take this one. |
Hello, This function used to return a signed 'c_int' (i32). If so, how should be best handle calling clang::Type::template_arg_type?
|
That sounds right, in general, it makes sense to return an It also makes sense for |
Right now it returns -1 if the type is not a class template specialization. We should check for this case and return
None
, otherwiseSome
. This will be one less foot gun for callers of this method.http://clang.llvm.org/doxygen/group__CINDEX__TYPES.html#ga13f25981892e38c345d609b56ae1ee9c
I can mentor whoever would like to work on this.
The text was updated successfully, but these errors were encountered: