[all-commits] [llvm/llvm-project] 6e33e4: [ASTMatchers] Output currently matching node on crash

Nathan James via All-commits all-commits at lists.llvm.org
Wed Mar 30 09:14:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e33e45b943061f79ab6de1b60d04d4c6f32f8f9
      https://github.com/llvm/llvm-project/commit/6e33e45b943061f79ab6de1b60d04d4c6f32f8f9
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2022-03-30 (Wed, 30 Mar 2022)

  Changed paths:
    M clang/lib/ASTMatchers/ASTMatchFinder.cpp
    M clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list