================ @@ -37,14 +39,12 @@ MakeArgv(const llvm::ArrayRef<std::string> &strs) { return argv; } -static uint32_t SetLaunchFlag(uint32_t flags, const llvm::json::Object *obj, - llvm::StringRef key, lldb::LaunchFlags mask) { - if (const auto opt_value = GetBoolean(obj, key)) { - if (*opt_value) - flags |= mask; - else - flags &= ~mask; - } +static uint32_t SetLaunchFlag(uint32_t flags, bool flag, + lldb::LaunchFlags mask) { + if (flag) + flags |= mask; + else + flags &= ~mask; ---------------- ashgti wrote:
Technically, whatever lldb-dap does is the source of through here. I think the package.json description is actually out of date for a few fields. I'll send a PR to fix those. https://github.com/llvm/llvm-project/pull/133624 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits