10 #ifndef LLVM_TESTING_SUPPORT_SUPPORTHELPERS_H 11 #define LLVM_TESTING_SUPPORT_SUPPORTHELPERS_H 16 #include "gtest/gtest-printers.h" 23 std::vector<std::shared_ptr<ErrorInfoBase>>
Infos;
25 bool Success()
const {
return Infos.empty(); }
37 OS << (Err.
Success() ?
"succeeded" :
"failed");
39 const char *Delim =
" (";
52 *Out <<
"succeeded with value " << ::testing::PrintToString(*Item.
Exp);
54 PrintTo(static_cast<const ErrorHolder &>(Item), Out);
This class represents lattice values for constants.
raw_os_ostream - A raw_ostream that writes to an std::ostream.
Tagged union holding either a T or a Error.
void PrintTo(const ErrorHolder &Err, std::ostream *Out)
Analysis containing CSE Info
std::vector< std::shared_ptr< ErrorInfoBase > > Infos
SmallString< 128 > getInputFileDirectory(const char *Argv0)
ExpectedHolder(ErrorHolder Err, Expected< T > &Exp)