The following crashes on my system before this patch, but not after:
void foo(int i) { switch (i) { case 1: case 2: ... 100000 cases ... ; } } clang-query -c="match stmt(hasAncestor(stmt()))" deep.c
I'm not sure it's actually a sane testcase to run though, it's pretty slow :-)
can we make some comments explaining what this method does? I think I have a vague understanding, but would be helpful to have some documentation.