[Lldb-commits] [lldb] [lldb][lldb-dap] Migrate ScopesRequest to structured types (PR #138116)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon May 12 13:57:50 PDT 2025
================
@@ -269,17 +271,16 @@ struct Capabilities {
};
llvm::json::Value toJSON(const Capabilities &);
-enum PresentationHint : unsigned {
- ePresentationHintNormal,
- ePresentationHintEmphasize,
- ePresentationHintDeemphasize,
-};
-llvm::json::Value toJSON(PresentationHint hint);
-
/// A `Source` is a descriptor for source code. It is returned from the debug
/// adapter as part of a `StackFrame` and it is used by clients when specifying
/// breakpoints.
struct Source {
+ enum PresentationHint : unsigned {
+ ePresentationHintNormal,
+ ePresentationHintEmphasize,
+ ePresentationHintDeemphasize,
+ };
----------------
JDevlieghere wrote:
I'm slightly leaning towards that too, because that would be most consistent with the other enums which are potentially shared across types.
https://github.com/llvm/llvm-project/pull/138116
More information about the lldb-commits
mailing list