forked from OSchip/llvm-project
Fix MSVC "not all control paths return a value" warning. NFCI.
This commit is contained in:
parent
2769fb90f0
commit
1723f21993
|
@ -38,6 +38,7 @@ static DeclarationMatcher getComparisonDecl(GtestCmp Cmp) {
|
||||||
case GtestCmp::Lt:
|
case GtestCmp::Lt:
|
||||||
return functionDecl(hasName("::testing::internal::CmpHelperLT"));
|
return functionDecl(hasName("::testing::internal::CmpHelperLT"));
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unhandled GtestCmp enum");
|
||||||
}
|
}
|
||||||
|
|
||||||
static llvm::StringRef getAssertMacro(GtestCmp Cmp) {
|
static llvm::StringRef getAssertMacro(GtestCmp Cmp) {
|
||||||
|
@ -55,6 +56,7 @@ static llvm::StringRef getAssertMacro(GtestCmp Cmp) {
|
||||||
case GtestCmp::Lt:
|
case GtestCmp::Lt:
|
||||||
return "ASSERT_LT";
|
return "ASSERT_LT";
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unhandled GtestCmp enum");
|
||||||
}
|
}
|
||||||
|
|
||||||
static llvm::StringRef getExpectMacro(GtestCmp Cmp) {
|
static llvm::StringRef getExpectMacro(GtestCmp Cmp) {
|
||||||
|
@ -72,6 +74,7 @@ static llvm::StringRef getExpectMacro(GtestCmp Cmp) {
|
||||||
case GtestCmp::Lt:
|
case GtestCmp::Lt:
|
||||||
return "EXPECT_LT";
|
return "EXPECT_LT";
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unhandled GtestCmp enum");
|
||||||
}
|
}
|
||||||
|
|
||||||
// In general, AST matchers cannot match calls to macros. However, we can
|
// In general, AST matchers cannot match calls to macros. However, we can
|
||||||
|
|
Loading…
Reference in New Issue