Reland "[ASTMatchers] Output currently matching node on crash"
authorNathan James <n.james93@hotmail.co.uk>
Tue, 5 Apr 2022 20:47:06 +0000 (21:47 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Tue, 5 Apr 2022 20:47:16 +0000 (21:47 +0100)
commitb4ad3c3891e550b04db3aca73e1f34007e94eaa8
tree8851bb1c216c802b9dbfb818838efd7db1914909
parentf2ea125ea09d9e4512fa08a89eac5e0069d83738
Reland "[ASTMatchers] Output currently matching node on crash"

Extend D120185 to also log the node being matched on in case of a crash.
This can help if a matcher is causing a crash or there are not enough interesting nodes bound.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D122529

This reverts commit 61d67c8eecd2547bc690f9a6bba61b9ba814c71b.

This relands commit 6e33e45b943061f79ab6de1b60d04d4c6f32f8f9.

Fixing the build issue on 32bit machines due to not enough free bits in the PointerUnion.
clang/lib/ASTMatchers/ASTMatchFinder.cpp
clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp