================ @@ -37,6 +37,16 @@ void OptionValueEnumeration::DumpValue(const ExecutionContext *exe_ctx, } } +llvm::json::Value +OptionValueEnumeration::ToJSON(const ExecutionContext *exe_ctx) { + for (const auto &enums : m_enumerations) { + if (enums.value.value == m_current_value) + return enums.cstring.GetStringRef(); + } + + return llvm::formatv("%", PRIu64, static_cast<uint64_t>(m_current_value)); ---------------- JDevlieghere wrote:
Could this use `to_string`? ```suggestion return std::to_string(m_current_value); ``` https://github.com/llvm/llvm-project/pull/137007 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits