================
@@ -658,6 +658,33 @@ static char ConvertValueObjectStyleToChar(
return '\0';
}
+static bool DumpValueWithLLVMFormat(Stream &s, llvm::StringRef options,
+ ValueObject &target) {
+ std::string formatted;
+ std::string llvm_format = ("{0:" + options + "}").str();
----------------
adrian-prantl wrote:
Is there any way we can make this string static, by switching over the
supported options?
Or let me ask another way — what happens if options contained "}{1}" is this
well-defined in llvm::formatv because it knows the template arguments and thus
will not lead to corruption and crashes?
If the answer is yes, then this is okay.
https://github.com/llvm/llvm-project/pull/81196
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits