clang  14.0.0git
Namespaces | Enumerations | Functions
GtestMatchers.h File Reference
#include "clang/AST/Stmt.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "llvm/ADT/StringRef.h"
Include dependency graph for GtestMatchers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 clang
 
 clang::ast_matchers
 

Enumerations

enum  clang::ast_matchers::GtestCmp {
  clang::ast_matchers::GtestCmp::Eq, clang::ast_matchers::GtestCmp::Ne, clang::ast_matchers::GtestCmp::Ge, clang::ast_matchers::GtestCmp::Gt,
  clang::ast_matchers::GtestCmp::Le, clang::ast_matchers::GtestCmp::Lt
}
 Gtest's comparison operations. More...
 
enum  clang::ast_matchers::MockArgs { clang::ast_matchers::MockArgs::None, clang::ast_matchers::MockArgs::Some }
 This enum indicates whether the mock method in the matched ON_CALL or EXPECT_CALL macro has arguments. More...
 

Functions

internal::BindableMatcher< Stmt > clang::ast_matchers::gtestAssert (GtestCmp Cmp, StatementMatcher Left, StatementMatcher Right)
 Matcher for gtest's ASSERT comparison macros including ASSERT_EQ, ASSERT_NE, ASSERT_GE, ASSERT_GT, ASSERT_LE and ASSERT_LT. More...
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestAssertThat (StatementMatcher Actual, StatementMatcher Matcher)
 Matcher for gtest's ASSERT_THAT macro. More...
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestExpect (GtestCmp Cmp, StatementMatcher Left, StatementMatcher Right)
 Matcher for gtest's EXPECT comparison macros including EXPECT_EQ, EXPECT_NE, EXPECT_GE, EXPECT_GT, EXPECT_LE and EXPECT_LT. More...
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestExpectThat (StatementMatcher Actual, StatementMatcher Matcher)
 Matcher for gtest's EXPECT_THAT macro. More...
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestExpectCall (StatementMatcher MockObject, llvm::StringRef MockMethodName, MockArgs Args)
 Matcher for gtest's EXPECT_CALL macro. More...
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestExpectCall (StatementMatcher MockCall, MockArgs Args)
 Matcher for gtest's EXPECT_CALL macro. More...
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestOnCall (StatementMatcher MockObject, llvm::StringRef MockMethodName, MockArgs Args)
 Like the first gtestExpectCall overload but for ON_CALL. More...
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestOnCall (StatementMatcher MockCall, MockArgs Args)
 Like the second gtestExpectCall overload but for ON_CALL. More...