mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-30 17:21:10 +00:00
[PDB] add missing char8_t for 5c9e20d
This commit is contained in:
parent
6632180745
commit
b901c404a8
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user