There's a bug in libclang in which it tries to evaluate a statement cursor as a declaration cursor, because that statement still has a pointer to the declaration parent. This patch fixes it.
rdar://38888477
Differential D49051
[libclang] check that the cursor is declaration before trying to evaluate the cursor like a declaration arphaman on Jul 6 2018, 7:11 PM. Authored by
Details
There's a bug in libclang in which it tries to evaluate a statement cursor as a declaration cursor, because that statement still has a pointer to the declaration parent. This patch fixes it. rdar://38888477
Diff Detail
Event TimelineComment Actions LGTM.
|