LLVM  7.0.0svn
Classes | Namespaces | Macros | Functions
Error.h File Reference
#include "llvm/ADT/Optional.h"
#include "llvm/Support/Error.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "gmock/gmock.h"
#include <ostream>
Include dependency graph for Error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::detail::ValueMatchesMono< T >
 
class  llvm::detail::ValueMatchesPoly< M >
 
class  llvm::detail::ErrorMatchesMono< InfoT >
 

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 
 llvm::detail
 Implementation details of the pass manager interfaces.
 

Macros

#define EXPECT_THAT_ERROR(Err, Matcher)   EXPECT_THAT(llvm::detail::TakeError(Err), Matcher)
 
#define ASSERT_THAT_ERROR(Err, Matcher)   ASSERT_THAT(llvm::detail::TakeError(Err), Matcher)
 
#define EXPECT_THAT_EXPECTED(Err, Matcher)   EXPECT_THAT(llvm::detail::TakeExpected(Err), Matcher)
 
#define ASSERT_THAT_EXPECTED(Err, Matcher)   ASSERT_THAT(llvm::detail::TakeExpected(Err), Matcher)
 

Functions

ErrorHolder llvm::detail::TakeError (Error Err)
 
template<typename T >
ExpectedHolder< Tllvm::detail::TakeExpected (Expected< T > &Exp)
 
template<typename T >
ExpectedHolder< Tllvm::detail::TakeExpected (Expected< T > &&Exp)
 
 llvm::MATCHER (Succeeded, "")
 
 llvm::MATCHER (Failed, "")
 
template<typename InfoT >
testing::Matcher< const detail::ErrorHolder & > llvm::Failed ()
 
template<typename InfoT , typename M >
testing::Matcher< const detail::ErrorHolder & > llvm::Failed (M Matcher)
 
template<typename M >
detail::ValueMatchesPoly< M > llvm::HasValue (M Matcher)
 

Macro Definition Documentation

◆ ASSERT_THAT_ERROR

#define ASSERT_THAT_ERROR (   Err,
  Matcher 
)    ASSERT_THAT(llvm::detail::TakeError(Err), Matcher)

Definition at line 136 of file Error.h.

◆ ASSERT_THAT_EXPECTED

#define ASSERT_THAT_EXPECTED (   Err,
  Matcher 
)    ASSERT_THAT(llvm::detail::TakeExpected(Err), Matcher)

Definition at line 141 of file Error.h.

◆ EXPECT_THAT_ERROR

#define EXPECT_THAT_ERROR (   Err,
  Matcher 
)    EXPECT_THAT(llvm::detail::TakeError(Err), Matcher)

Definition at line 134 of file Error.h.

◆ EXPECT_THAT_EXPECTED

#define EXPECT_THAT_EXPECTED (   Err,
  Matcher 
)    EXPECT_THAT(llvm::detail::TakeExpected(Err), Matcher)

Definition at line 139 of file Error.h.