llvm-c166/lldb/source/Core/BugReporter.cpp
Jonas Devlieghere d9278ad4e6
[lldb] Ask the reporter what happened in a bug report (#213173)
A diagnostics bundle records the state of the debugger, never what the
user was doing or what they expected instead, so reports arrive with a
generic title and no description of the problem. Pre-fill the report
with the questions only the person filing it can answer, and print a
checklist when the bundle is written so an incomplete report doesn't get
shared as-is.

rdar://183356348
2026-07-30 17:59:44 -07:00

18 lines
662 B
C++

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "lldb/Core/BugReporter.h"
llvm::ArrayRef<llvm::StringRef> lldb_private::GetBugReportQuestions() {
static constexpr llvm::StringRef g_questions[] = {
"What were you doing?",
"What did you expect to happen?",
"What happened instead?",
};
return g_questions;
}