[PDB] add missing char8_t for 5c9e20d

This commit is contained in:
Zequan Wu 2022-03-01 14:24:13 -08:00
parent 6632180745
commit b901c404a8
3 changed files with 7 additions and 0 deletions

View File

@ -1017,6 +1017,7 @@ BasicType
.. py:data:: eBasicTypeWChar
.. py:data:: eBasicTypeSignedWChar
.. py:data:: eBasicTypeUnsignedWChar
.. py:data:: eBasicTypeChar8
.. py:data:: eBasicTypeChar16
.. py:data:: eBasicTypeChar32
.. py:data:: eBasicTypeShort

View File

@ -2019,6 +2019,8 @@ TypeSystemClang::GetOpaqueCompilerType(clang::ASTContext *ast,
return ast->getSignedWCharType().getAsOpaquePtr();
case eBasicTypeUnsignedWChar:
return ast->getUnsignedWCharType().getAsOpaquePtr();
case eBasicTypeChar8:
return ast->Char8Ty.getAsOpaquePtr();
case eBasicTypeChar16:
return ast->Char16Ty.getAsOpaquePtr();
case eBasicTypeChar32:
@ -5480,6 +5482,8 @@ TypeSystemClang::GetBasicTypeEnumeration(lldb::opaque_compiler_type_t type) {
return eBasicTypeSignedChar;
case clang::BuiltinType::Char_U:
return eBasicTypeUnsignedChar;
case clang::BuiltinType::Char8:
return eBasicTypeChar8;
case clang::BuiltinType::Char16:
return eBasicTypeChar16;
case clang::BuiltinType::Char32:

View File

@ -53,6 +53,8 @@ TEST_F(TestTypeSystemClang, TestGetBasicTypeFromEnum) {
context.hasSameType(GetBasicQualType(eBasicTypeBool), context.BoolTy));
EXPECT_TRUE(
context.hasSameType(GetBasicQualType(eBasicTypeChar), context.CharTy));
EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeChar8),
context.Char8Ty));
EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeChar16),
context.Char16Ty));
EXPECT_TRUE(context.hasSameType(GetBasicQualType(eBasicTypeChar32),