[Lldb-commits] [lldb] [lldb] Support custom printf formatting for variables (PR #81196)

via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 14 16:36:44 PST 2024


================
@@ -658,6 +658,29 @@ static char ConvertValueObjectStyleToChar(
   return '\0';
 }
 
+static bool DumpValueWithPrintf(Stream &s, llvm::StringRef format,
+                                ValueObject &target) {
+  auto type_info = target.GetTypeInfo();
+  if (type_info & eTypeIsInteger) {
----------------
jimingham wrote:

Is there a reason not to do the same thing for eTypeIsFloat?

https://github.com/llvm/llvm-project/pull/81196


More information about the lldb-commits mailing list