LLDB mainline
BugReporterNone.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_SOURCE_PLUGINS_BUGREPORTER_NONE_BUGREPORTERNONE_H
10#define LLDB_SOURCE_PLUGINS_BUGREPORTER_NONE_BUGREPORTERNONE_H
11
13
14namespace lldb_private {
15
16/// The fallback when no bug tracker is configured. Its File() returns an error
17/// rather than succeeding, so the report command surfaces it to the user.
19public:
20 static void Initialize();
21 static void Terminate();
22 static llvm::StringRef GetPluginNameStatic() { return "none"; }
23 static std::unique_ptr<BugReporter> CreateInstance();
24
25 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
26
27 llvm::Error File(const Diagnostics::Report &report) override;
28};
29
30} // namespace lldb_private
31
32#endif // LLDB_SOURCE_PLUGINS_BUGREPORTER_NONE_BUGREPORTERNONE_H
The fallback when no bug tracker is configured.
static std::unique_ptr< BugReporter > CreateInstance()
static llvm::StringRef GetPluginNameStatic()
llvm::Error File(const Diagnostics::Report &report) override
llvm::StringRef GetPluginName() override
A pluggable destination for a diagnostics bundle.
Definition BugReporter.h:22
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