https://github.com/samestep updated https://github.com/llvm/llvm-project/pull/149311
>From af8f67a8ed9b0f66dc9aad7d0a0358471a25968f Mon Sep 17 00:00:00 2001 From: Sam Estep <s...@samestep.com> Date: Thu, 17 Jul 2025 09:45:31 -0400 Subject: [PATCH 1/2] Clean up LLDB `type format delete` doc paragraph --- lldb/docs/use/variable.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lldb/docs/use/variable.rst b/lldb/docs/use/variable.rst index 212e5c5f8a140..0b5f044802739 100644 --- a/lldb/docs/use/variable.rst +++ b/lldb/docs/use/variable.rst @@ -224,10 +224,11 @@ format, which means you are effectively formatting the address stored in the pointer rather than the pointee value. For this reason, you may want to use the -p option when defining formats. -If you need to delete a custom format simply type type format delete followed -by the name of the type to which the format applies.Even if you defined the -same format for multiple types on the same command, type format delete will -only remove the format for the type name passed as argument. +If you need to delete a custom format, simply type ``type format delete`` +followed by the name of the type to which the format applies. Even if you +defined the same format for multiple types on the same command, +``type format delete`` will only remove the format for the type name passed as +argument. To delete ALL formats, use ``type format clear``. To see all the formats defined, use type format list. >From 2c033c356e6cbd12d131180a94e19f236de67a73 Mon Sep 17 00:00:00 2001 From: Sam Estep <s...@samestep.com> Date: Thu, 17 Jul 2025 09:50:29 -0400 Subject: [PATCH 2/2] Also improve formatting about `type format list` --- lldb/docs/use/variable.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/docs/use/variable.rst b/lldb/docs/use/variable.rst index 0b5f044802739..686cbcee7645e 100644 --- a/lldb/docs/use/variable.rst +++ b/lldb/docs/use/variable.rst @@ -231,7 +231,7 @@ defined the same format for multiple types on the same command, argument. To delete ALL formats, use ``type format clear``. To see all the formats -defined, use type format list. +defined, use ``type format list``. If all you need to do, however, is display one variable in a custom format, while leaving the others of the same type untouched, you can simply type: _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits