9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SUPPORT_THREADCRASHREPORTER_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SUPPORT_THREADCRASHREPORTER_H
12#include "llvm/ADT/FunctionExtras.h"
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(ThreadCrashReporter &&RHS)=delete
Moves are disabled to ease nesting and escaping considerations.
ThreadCrashReporter & operator=(ThreadCrashReporter &&)=delete
ThreadCrashReporter & operator=(const ThreadCrashReporter &)=delete
ThreadCrashReporter(const ThreadCrashReporter &)=delete
llvm::unique_function< void(void)> SignalCallback
~ThreadCrashReporter()
Resets the current thread's callback to nullptr.
llvm::unique_function< void(llvm::Expected< T >)> Callback
A Callback<T> is a void function that accepts Expected<T>.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//