LLDB mainline
BugReporter.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_CORE_BUGREPORTER_H
10#define LLDB_CORE_BUGREPORTER_H
11
14
15#include "llvm/Support/Error.h"
16
17namespace lldb_private {
18
19/// A pluggable destination for a diagnostics bundle.
20/// CreateBugReporterInstance() returns the first registered reporter, so
21/// downstream registers ahead of the no-op fallback to take over.
23public:
24 virtual llvm::Error File(const Diagnostics::Report &report) = 0;
25};
26
27} // namespace lldb_private
28
29#endif // LLDB_CORE_BUGREPORTER_H
A pluggable destination for a diagnostics bundle.
Definition BugReporter.h:22
virtual llvm::Error File(const Diagnostics::Report &report)=0
A class that represents a running process on the host machine.
The state a triager needs to make sense of a bug report.
Definition Diagnostics.h:50