Skip to content

Commit 81ec95f

Browse files
committed
Silence -Wswitch warnings
TypeSystemClang.cpp:4074:11: error: enumeration value 'CountAttributed' not handled in switch [-Werror,-Wswitch] 4074 | switch (qual_type->getTypeClass()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ TypeSystemClang.cpp:4755:11: error: enumeration value 'CountAttributed' not handled in switch [-Werror,-Wswitch] 4755 | switch (qual_type->getTypeClass()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ TypeSystemClang.cpp:5088:11: error: enumeration value 'CountAttributed' not handled in switch [-Werror,-Wswitch] 5088 | switch (qual_type->getTypeClass()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~
1 parent 3a90cb4 commit 81ec95f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4074,6 +4074,7 @@ TypeSystemClang::GetTypeClass(lldb::opaque_compiler_type_t type) {
40744074
switch (qual_type->getTypeClass()) {
40754075
case clang::Type::Atomic:
40764076
case clang::Type::Auto:
4077+
case clang::Type::CountAttributed:
40774078
case clang::Type::Decltype:
40784079
case clang::Type::Elaborated:
40794080
case clang::Type::Paren:
@@ -4755,6 +4756,7 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
47554756
switch (qual_type->getTypeClass()) {
47564757
case clang::Type::Atomic:
47574758
case clang::Type::Auto:
4759+
case clang::Type::CountAttributed:
47584760
case clang::Type::Decltype:
47594761
case clang::Type::Elaborated:
47604762
case clang::Type::Paren:
@@ -5088,6 +5090,7 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) {
50885090
switch (qual_type->getTypeClass()) {
50895091
case clang::Type::Atomic:
50905092
case clang::Type::Auto:
5093+
case clang::Type::CountAttributed:
50915094
case clang::Type::Decltype:
50925095
case clang::Type::Elaborated:
50935096
case clang::Type::Paren:

0 commit comments

Comments
 (0)