llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-tidy

Author: Simon Pilgrim (RKSimon)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/179206.diff


1 Files Affected:

- (modified) 
clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp (+1) 


``````````diff
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 =

``````````

</details>


https://github.com/llvm/llvm-project/pull/179206
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to