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/ADT/ArrayRef.h"
16#include "llvm/ADT/StringRef.h"
17#include "llvm/Support/Error.h"
18
19namespace lldb_private {
20
21/// A pluggable destination for a diagnostics bundle.
22/// CreateBugReporterInstance() returns the first registered reporter, so
23/// downstream registers ahead of the no-op fallback to take over.
25public:
26 virtual llvm::Error File(const Diagnostics::Report &report) = 0;
27};
28
29/// The questions only the person filing the report can answer. Shared so every
30/// reporter asks for the same thing.
31llvm::ArrayRef<llvm::StringRef> GetBugReportQuestions();
32
33} // namespace lldb_private
34
35#endif // LLDB_CORE_BUGREPORTER_H
A pluggable destination for a diagnostics bundle.
Definition BugReporter.h:24
virtual llvm::Error File(const Diagnostics::Report &report)=0
A class that represents a running process on the host machine.
llvm::ArrayRef< llvm::StringRef > GetBugReportQuestions()
The questions only the person filing the report can answer.
The state a triager needs to make sense of a bug report.
Definition Diagnostics.h:63