[lldb] Add some formatting to variable.rst (NFC)

This commit is contained in:
Dave Lee 2024-12-13 15:10:05 -08:00
parent 5c3db5a87e
commit 1b0becf739

View File

@ -1226,13 +1226,13 @@ By default, several categories are created in LLDB:
- CoreServices: CS classes
- VectorTypes: compact display for several vector types
If you want to use a custom category for your formatters, all the type ... add
provide a --category (-w) option, that names the category to add the formatter
If you want to use a custom category for your formatters, all the ``type ... add``
provide a ``--category`` (``-w``) option, that names the category to add the formatter
to. To delete the formatter, you then have to specify the correct category.
Categories can be in one of two states: enabled and disabled. A category is
initially disabled, and can be enabled using the type category enable command.
To disable an enabled category, the command to use is type category disable.
initially disabled, and can be enabled using the ``type category enable`` command.
To disable an enabled category, the command to use is ``type category disable``.
The order in which categories are enabled or disabled is significant, in that
LLDB uses that order when looking for formatters. Therefore, when you enable a