31 Reporter = Reporter->Next;
36 : Callback(std::
move(ThreadLocalCallback)), Next(nullptr) {
41 std::atomic_signal_fence(std::memory_order_seq_cst);
49 std::atomic_signal_fence(std::memory_order_seq_cst);
Allows setting per-thread abort/kill signal callbacks, to print additional information about the cras...
static void runCrashHandlers()
Calls all currently-active ThreadCrashReporters for the current thread.
ThreadCrashReporter(SignalCallback ThreadLocalCallback)
Registers the callback as the first one in thread-local callback chain.
llvm::unique_function< void(void)> SignalCallback
~ThreadCrashReporter()
Resets the current thread's callback to nullptr.
FIXME: Skip testing on windows temporarily due to the different escaping code mode.
static thread_local ThreadCrashReporter * CurrentReporter
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//