You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should check that the cursor's referent is a template specialization and that i is not out of bounds. If either of those things don't hold, we should return None and avoid the FFI call. There is no way to check the return value for validity if we mess this up: the behavior is undefined! Otherwise, we should make the FFI call and return Some.
We should check that the cursor's referent is a template specialization and that
i
is not out of bounds. If either of those things don't hold, we should returnNone
and avoid the FFI call. There is no way to check the return value for validity if we mess this up: the behavior is undefined! Otherwise, we should make the FFI call and returnSome
.This would be a nice removal of a foot gun.
http://clang.llvm.org/doxygen/group__CINDEX__TYPES.html#ga46e363545effaa0794a2ba4bcfae1fe3
I can mentor whoever would like to work on this bug.
The text was updated successfully, but these errors were encountered: