[Lldb-commits] [lldb] r369617 - [FormatManage] Fix the format info order

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 21 20:12:25 PDT 2019

Author: jdevlieghere
Date: Wed Aug 21 20:12:25 2019
New Revision: 369617

URL: http://llvm.org/viewvc/llvm-project?rev=369617&view=rev
[FormatManage] Fix the format info order

The format info entries need to match the order of the enum entries.
This should fix the two failing data-formatter tests.


Modified: lldb/trunk/source/DataFormatters/FormatManager.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/FormatManager.cpp?rev=369617&r1=369616&r2=369617&view=diff
--- lldb/trunk/source/DataFormatters/FormatManager.cpp (original)
+++ lldb/trunk/source/DataFormatters/FormatManager.cpp Wed Aug 21 20:12:25 2019
@@ -47,7 +47,6 @@ static constexpr FormatInfo g_format_inf
     {eFormatFloat, 'f', "float"},
     {eFormatOctal, 'o', "octal"},
     {eFormatOSType, 'O', "OSType"},
-    {eFormatUnicode8, 'u', "unicode8"},
     {eFormatUnicode16, 'U', "unicode16"},
     {eFormatUnicode32, '\0', "unicode32"},
     {eFormatUnsigned, 'u', "unsigned decimal"},
@@ -70,7 +69,9 @@ static constexpr FormatInfo g_format_inf
     {eFormatAddressInfo, 'A', "address"},
     {eFormatHexFloat, '\0', "hex float"},
     {eFormatInstruction, 'i', "instruction"},
-    {eFormatVoid, 'v', "void"}};
+    {eFormatVoid, 'v', "void"},
+    {eFormatUnicode8, 'u', "unicode8"},
 static_assert((sizeof(g_format_infos) / sizeof(g_format_infos[0])) ==

More information about the lldb-commits mailing list