case GtestCmp::Lt:
return functionDecl(hasName("::testing::internal::CmpHelperLT"));
}
+ llvm_unreachable("Unhandled GtestCmp enum");
}
static llvm::StringRef getMacroTypeName(MacroType Macro) {
case MacroType::On:
return "ON";
}
+ llvm_unreachable("Unhandled MacroType enum");
}
static llvm::StringRef getComparisonTypeName(GtestCmp Cmp) {
case GtestCmp::Lt:
return "LT";
}
+ llvm_unreachable("Unhandled GtestCmp enum");
}
static std::string getMacroName(MacroType Macro, GtestCmp Cmp) {
default:
llvm_unreachable("Unhandled MacroType enum");
}
+ llvm_unreachable("Unhandled MacroType enum");
}
// In general, AST matchers cannot match calls to macros. However, we can
hasOverloadedOperatorName("()"), argumentCountIs(3),
hasArgument(0, ignoringImplicit(MockCall))))));
}
+ llvm_unreachable("Unhandled MockArgs enum");
}
static internal::BindableMatcher<Stmt>