[Lldb-commits] [lldb] Clean up LLDB `type format delete` doc paragraph (PR #149311)
Sam Estep via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 17 06:46:58 PDT 2025
https://github.com/samestep created https://github.com/llvm/llvm-project/pull/149311
This PR cleans up the formatting of the [LLDB doc paragraph about `type format delete`](https://lldb.llvm.org/use/variable.html#type-format) to make it more readable.
>From af8f67a8ed9b0f66dc9aad7d0a0358471a25968f Mon Sep 17 00:00:00 2001
From: Sam Estep <sam at samestep.com>
Date: Thu, 17 Jul 2025 09:45:31 -0400
Subject: [PATCH] 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.
More information about the lldb-commits
mailing list