[Lldb-commits] [lldb] 6d5b86f - [lldb] Add missing UTF-8 char basic type entries

Luís Ferreira via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 13 10:36:49 PDT 2022


Author: Luís Ferreira
Date: 2022-06-13T17:33:46Z
New Revision: 6d5b86f851a1ee6475c767b8f94e3598cdd5a9fe

URL: https://github.com/llvm/llvm-project/commit/6d5b86f851a1ee6475c767b8f94e3598cdd5a9fe
DIFF: https://github.com/llvm/llvm-project/commit/6d5b86f851a1ee6475c767b8f94e3598cdd5a9fe.diff

LOG: [lldb] Add missing UTF-8 char basic type entries

D120690 introduced `eBasicTypeChar8` but missed proper documentation order. This also introduces the missing bindings data on Swig, which should correspond with the documented information.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D116136

Added: 
    

Modified: 
    lldb/bindings/python/python-extensions.swig
    lldb/docs/python_api_enums.rst

Removed: 
    


################################################################################
diff  --git a/lldb/bindings/python/python-extensions.swig b/lldb/bindings/python/python-extensions.swig
index b98b0d458f0c6..cb841af070ad6 100644
--- a/lldb/bindings/python/python-extensions.swig
+++ b/lldb/bindings/python/python-extensions.swig
@@ -565,6 +565,7 @@ def is_numeric_type(basic_type):
     if basic_type == eBasicTypeUnsignedWChar: return (True,False)
     if basic_type == eBasicTypeChar16: return (True,False)
     if basic_type == eBasicTypeChar32: return (True,False)
+    if basic_type == eBasicTypeChar8: return (True,False)
     if basic_type == eBasicTypeShort: return (True,True)
     if basic_type == eBasicTypeUnsignedShort: return (True,False)
     if basic_type == eBasicTypeInt: return (True,True)

diff  --git a/lldb/docs/python_api_enums.rst b/lldb/docs/python_api_enums.rst
index 1c363381a11b2..6ae73df68c8ab 100644
--- a/lldb/docs/python_api_enums.rst
+++ b/lldb/docs/python_api_enums.rst
@@ -1017,9 +1017,9 @@ BasicType
 .. py:data:: eBasicTypeWChar
 .. py:data:: eBasicTypeSignedWChar
 .. py:data:: eBasicTypeUnsignedWChar
-.. py:data:: eBasicTypeChar8
 .. py:data:: eBasicTypeChar16
 .. py:data:: eBasicTypeChar32
+.. py:data:: eBasicTypeChar8
 .. py:data:: eBasicTypeShort
 .. py:data:: eBasicTypeUnsignedShort
 .. py:data:: eBasicTypeInt


        


More information about the lldb-commits mailing list