[lldb] Add missing case statements for SubstBuiltinTemplatePack (#154606)

This patch fixes:

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4148:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
4148 |   switch (qual_type->getTypeClass()) {
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4852:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
4852 |   switch (qual_type->getTypeClass()) {
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:5153:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
5153 |   switch (qual_type->getTypeClass()) {
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Kazu Hirata 2025-08-20 14:53:28 -07:00 committed by GitHub
parent 575fad2892
commit 55551da200
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4275,6 +4275,8 @@ TypeSystemClang::GetTypeClass(lldb::opaque_compiler_type_t type) {
break;
case clang::Type::HLSLInlineSpirv:
break;
case clang::Type::SubstBuiltinTemplatePack:
break;
}
// We don't know hot to display this type...
return lldb::eTypeClassOther;
@ -5139,6 +5141,8 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
break;
case clang::Type::HLSLInlineSpirv:
break;
case clang::Type::SubstBuiltinTemplatePack:
break;
}
count = 0;
return lldb::eEncodingInvalid;
@ -5307,6 +5311,8 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) {
break;
case clang::Type::HLSLInlineSpirv:
break;
case clang::Type::SubstBuiltinTemplatePack:
break;
}
// We don't know hot to display this type...
return lldb::eFormatBytes;