Commits

Ben Langmuir committed e9211c8e4f3
[SourceKit] Fix cursor-info crash with mismatched pre/post callbacks The problem was that shouldPrint returned true, but shouldPrintInContext returned false, so we called printDeclPost without ever printing anything and therefore never calling the pending printDeclPre. Also remove the avoidPrintDeclPost in the annotation printer, since it was incorrectly assuming that avoidPrintDeclPost was paired with printDeclPre (it's not clear to me that it isn't sometimes paired though...). Future work: remove or properly document the difference between the two shouldPrint* variants; and ensure that callbacks will always be paired even if we don't end up printing anything. Also verify that avoidPrintDeclPost behaves correctly with respect to printDeclPre being called (or not).