[Lldb-commits] [lldb] [lldb] Add format eFormatEnumWithValues to ensure raw enum value is always shown (PR #90059)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue May 28 02:21:13 PDT 2024
================
@@ -195,11 +195,15 @@ enum Format {
///< character arrays that can contain non printable
///< characters
eFormatAddressInfo, ///< Describe what an address points to (func + offset
- ///< with file/line, symbol + offset, data, etc)
- eFormatHexFloat, ///< ISO C99 hex float string
- eFormatInstruction, ///< Disassemble an opcode
- eFormatVoid, ///< Do not print this
+ ///< with file/line, symbol + offset, data, etc)
+ eFormatHexFloat, ///< ISO C99 hex float string
+ eFormatInstruction, ///< Disassemble an opcode
+ eFormatVoid, ///< Do not print this
eFormatUnicode8,
+ eFormatEnumWithValues, ///< Format as an enum but if the value matches one or
+ ///< more enumerators, print the enumerator name and
+ ///< value of those enumerators. For example "foo (1)"
+ ///< instead of "foo".
----------------
DavidSpickett wrote:
This enum is used in the API so I've added to the end of it.
https://github.com/llvm/llvm-project/pull/90059
More information about the lldb-commits
mailing list