[Lldb-commits] [PATCH] D154387: [lldb][NFCI] Minor cleanup of default OptionValue::GetSubValue implementation
Alex Langford via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 5 09:06:32 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfd5748cb5a45: [lldb][NFCI] Minor cleanup of default OptionValue::GetSubValue implementation (authored by bulbazord).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154387/new/
https://reviews.llvm.org/D154387
Files:
lldb/include/lldb/Interpreter/OptionValue.h
Index: lldb/include/lldb/Interpreter/OptionValue.h
===================================================================
--- lldb/include/lldb/Interpreter/OptionValue.h
+++ lldb/include/lldb/Interpreter/OptionValue.h
@@ -114,8 +114,7 @@
virtual lldb::OptionValueSP GetSubValue(const ExecutionContext *exe_ctx,
llvm::StringRef name,
Status &error) const {
- error.SetErrorStringWithFormat("'%s' is not a value subvalue",
- name.str().c_str());
+ error.SetErrorStringWithFormatv("'{0}' is not a valid subvalue", name);
return lldb::OptionValueSP();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154387.537381.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230705/d045c5f7/attachment-0001.bin>
More information about the lldb-commits
mailing list