8000 [lldb] Add missing case to switch and turn on -Werror=switch for Type… by adrian-prantl · Pull Request #10935 · swiftlang/llvm-project · GitHub
[go: up one dir, main page]

Skip to content

[lldb] Add missing case to switch and turn on -Werror=switch for Type… #10935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merged 1 commit into from
Jul 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lldb/source/Plugins/TypeSystem/Swift/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ add_lldb_library(lldbPluginTypeSystemSwift PLUGIN
LINK_COMPONENTS
Support
)

# Enforce synchronization between Swift compiler updates and LLDB via PR testing.
check_cxx_compiler_flag("-Werror=switch" CXX_SUPPORTS_ERROR_SWITCH)
if (CXX_SUPPORTS_ERROR_SWITCH)
target_compile_options(lldbPluginTypeSystemSwift PRIVATE -Werror=switch)
endif()
1 change: 1 addition & 0 deletions lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4858,6 +4858,7 @@ static SwiftASTContext::TypeOrDecl DeclToTypeOrDecl(swift::Decl *decl) {
case swift::DeclKind::Module:
case swift::DeclKind::Missing:
case swift::DeclKind::MissingMember:
case swift::DeclKind::Using:
break;
4344
case swift::DeclKind::InfixOperator:
Expand Down
0