Author: Simon Pilgrim Date: 2023-07-24T10:37:59+01:00 New Revision: b0fd2fd81606513444d867db13236750754b0d02
URL: https://github.com/llvm/llvm-project/commit/b0fd2fd81606513444d867db13236750754b0d02 DIFF: https://github.com/llvm/llvm-project/commit/b0fd2fd81606513444d867db13236750754b0d02.diff LOG: [include_cleaner] IncludeSpeller.cpp - fix MSVC "not all control paths return a value" warning. NFC. Added: Modified: clang-tools-extra/include-cleaner/lib/IncludeSpeller.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/include-cleaner/lib/IncludeSpeller.cpp b/clang-tools-extra/include-cleaner/lib/IncludeSpeller.cpp index 8e6143820a2b73..bb49630fe3c80b 100644 --- a/clang-tools-extra/include-cleaner/lib/IncludeSpeller.cpp +++ b/clang-tools-extra/include-cleaner/lib/IncludeSpeller.cpp @@ -34,6 +34,7 @@ class DefaultIncludeSpeller : public IncludeSpeller { Input.H.physical(), Input.Main->tryGetRealPathName(), &IsSystem); return IsSystem ? "<" + FinalSpelling + ">" : "\"" + FinalSpelling + "\""; } + llvm_unreachable("Unknown clang::include_cleaner::Header::Kind enum"); } }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits