[clang-tools-extra] aee5fa1 - UseStructuredBindingCheck.cpp - fix MSVC "not all control paths return a value" warning. NFC. (#179206)

via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 2 03:03:28 PST 2026


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 =


        


More information about the cfe-commits mailing list