[NFC][Coroutines] Use structured binding with llvm::enumerate in CoroSplit (#116879)
[llvm-project.git] / lldb / tools / lldb-dap / ExceptionBreakpoint.h
blobb83c5ef77735252188b6d42a0c7ad20f9f51fb74
1 //===-- ExceptionBreakpoint.h -----------------------------------*- C++ -*-===//
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 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_TOOLS_LLDB_DAP_EXCEPTIONBREAKPOINT_H
10 #define LLDB_TOOLS_LLDB_DAP_EXCEPTIONBREAKPOINT_H
12 #include "DAPForward.h"
13 #include "lldb/API/SBBreakpoint.h"
14 #include "lldb/lldb-enumerations.h"
15 #include <string>
16 #include <utility>
18 namespace lldb_dap {
20 struct ExceptionBreakpoint {
21 DAP &dap;
22 std::string filter;
23 std::string label;
24 lldb::LanguageType language;
25 bool default_value = false;
26 lldb::SBBreakpoint bp;
27 ExceptionBreakpoint(DAP &d, std::string f, std::string l,
28 lldb::LanguageType lang)
29 : dap(d), filter(std::move(f)), label(std::move(l)), language(lang),
30 bp() {}
32 void SetBreakpoint();
33 void ClearBreakpoint();
36 } // namespace lldb_dap
38 #endif