[Lldb-commits] [lldb] [lldb][docs] Clean Variable Formatting Documentation (PR #193907)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 24 03:15:32 PDT 2026
================
@@ -203,9 +205,14 @@ Note, that qualifiers such as const and volatile will be stripped when matching
(const int) y = 0x00000002
(volatile int) z = 0x00000004
-Two additional options that you will want to look at are --skip-pointers (-p)
-and --skip-references (-r). These two options prevent LLDB from applying a
-format for type T to values of type T* and T& respectively.
+Type formats *can* be applied to pointers and references (by using the
+``pointer`` "adjective" before the type in the ``type format`` command)
+but they specify the format to be applied to the pointer or reference
+and not the value at the pointer or reference. The ``--skip-pointers`` (``-p``)
----------------
DavidSpickett wrote:
"and not the value being referenced or pointed to"
As "at the pointer" doesn't quite make sense, pointers point to locations so "at the pointer" could be taken as meaning where the pointer itself is stored.
https://github.com/llvm/llvm-project/pull/193907
More information about the lldb-commits
mailing list