LLVM  6.0.0svn
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.

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, "")
 
 llvm::MATCHER_P (HasValue, value, "succeeded with value "+testing::PrintToString(value))
 

Macro Definition Documentation

◆ ASSERT_THAT_ERROR

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

Definition at line 40 of file Error.h.

◆ ASSERT_THAT_EXPECTED

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

Definition at line 45 of file Error.h.

◆ EXPECT_THAT_ERROR

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

Definition at line 38 of file Error.h.

◆ EXPECT_THAT_EXPECTED

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

Definition at line 43 of file Error.h.