clang 20.0.0git
Namespaces | Enumerations | Functions
GtestMatchers.h File Reference
#include "clang/AST/Stmt.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "llvm/ADT/StringRef.h"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::ast_matchers
 

Enumerations

enum class  clang::ast_matchers::GtestCmp {
  clang::ast_matchers::Eq , clang::ast_matchers::Ne , clang::ast_matchers::Ge , clang::ast_matchers::Gt ,
  clang::ast_matchers::Le , clang::ast_matchers::Lt
}
 Gtest's comparison operations. More...
 
enum class  clang::ast_matchers::MockArgs { clang::ast_matchers::None , clang::ast_matchers::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.
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestAssertThat (StatementMatcher Actual, StatementMatcher Matcher)
 Matcher for gtest's ASSERT_THAT macro.
 
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.
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestExpectThat (StatementMatcher Actual, StatementMatcher Matcher)
 Matcher for gtest's EXPECT_THAT macro.
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestExpectCall (StatementMatcher MockObject, llvm::StringRef MockMethodName, MockArgs Args)
 Matcher for gtest's EXPECT_CALL macro.
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestExpectCall (StatementMatcher MockCall, MockArgs Args)
 Matcher for gtest's EXPECT_CALL macro.
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestOnCall (StatementMatcher MockObject, llvm::StringRef MockMethodName, MockArgs Args)
 Like the first gtestExpectCall overload but for ON_CALL.
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestOnCall (StatementMatcher MockCall, MockArgs Args)
 Like the second gtestExpectCall overload but for ON_CALL.