Return actual type from SBType::GetArrayElementType
authorAndy Yankovsky <weratt@gmail.com>
Tue, 3 Nov 2020 18:32:42 +0000 (10:32 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 3 Nov 2020 18:53:44 +0000 (10:53 -0800)
commitf35a82384d9ebeff3bb5ffd7a5ebe30436c1b401
treee7622fed561badf9ab3cae9cb713951195ad9a23
parent107c3a12d627f12a23f138a00d6aabe9de7402f7
Return actual type from SBType::GetArrayElementType

SBType::GetArrayElementType should return the actual type, not the
canonical type (e.g. int32_t, not the underlying int).

Added a test case to validate the new behavior. I also ran all other
tests on Linux (ninja check-lldb), they all pass.

Differential revision: https://reviews.llvm.org/D90318
lldb/source/API/SBType.cpp
lldb/test/API/python_api/type/TestTypeList.py
lldb/test/API/python_api/type/main.cpp