[PATCH] D122529: [ASTMatchers] Output currently matching node on crash

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 26 08:56:50 PDT 2022


njames93 created this revision.
njames93 added reviewers: klimek, aaron.ballman, LegalizeAdulthood.
Herald added a project: All.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Extend D120185 <https://reviews.llvm.org/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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122529

Files:
  clang/lib/ASTMatchers/ASTMatchFinder.cpp
  clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122529.418400.patch
Type: text/x-patch
Size: 13776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220326/b850e2a2/attachment-0001.bin>


More information about the cfe-commits mailing list