Author: Simon Pilgrim Date: 2026-02-02T11:03:22Z New Revision: aee5fa1f0c89ac68a2a2eeda7c5900d0a4508fd4
URL: https://github.com/llvm/llvm-project/commit/aee5fa1f0c89ac68a2a2eeda7c5900d0a4508fd4 DIFF: https://github.com/llvm/llvm-project/commit/aee5fa1f0c89ac68a2a2eeda7c5900d0a4508fd4.diff LOG: UseStructuredBindingCheck.cpp - fix MSVC "not all control paths return a value" warning. NFC. (#179206) Added: Modified: clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp index b56fb0579f1e3..8dd6bbfa3d2ab 100644 --- a/clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp @@ -348,6 +348,7 @@ void UseStructuredBindingCheck::check(const MatchFinder::MatchResult &Result) { case TT_ByConstRef: return "const auto&"; } + llvm_unreachable("Unhandled TransferType enum"); }(); const std::string ReplacementText = _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
