clang 20.0.0git
Namespaces | Functions
GtestMatchers.cpp File Reference
#include "clang/ASTMatchers/GtestMatchers.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "llvm/ADT/DenseMap.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
 

Functions

static DeclarationMatcher clang::ast_matchers::getComparisonDecl (GtestCmp Cmp)
 
static llvm::StringRef clang::ast_matchers::getMacroTypeName (MacroType Macro)
 
static llvm::StringRef clang::ast_matchers::getComparisonTypeName (GtestCmp Cmp)
 
static std::string clang::ast_matchers::getMacroName (MacroType Macro, GtestCmp Cmp)
 
static std::string clang::ast_matchers::getMacroName (MacroType Macro, llvm::StringRef Operation)
 
static llvm::StringRef clang::ast_matchers::getSpecSetterName (MacroType Macro)
 
static internal::BindableMatcher< Stmt > clang::ast_matchers::gtestComparisonInternal (MacroType Macro, GtestCmp Cmp, StatementMatcher Left, StatementMatcher Right)
 
static internal::BindableMatcher< Stmt > clang::ast_matchers::gtestThatInternal (MacroType Macro, StatementMatcher Actual, StatementMatcher Matcher)
 
static internal::BindableMatcher< Stmt > clang::ast_matchers::gtestCallInternal (MacroType Macro, StatementMatcher MockCall, MockArgs Args)
 
static internal::BindableMatcher< Stmt > clang::ast_matchers::gtestCallInternal (MacroType Macro, StatementMatcher MockObject, llvm::StringRef MockMethodName, MockArgs Args)
 
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::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::gtestAssertThat (StatementMatcher Actual, StatementMatcher Matcher)
 Matcher for gtest's ASSERT_THAT macro.
 
internal::BindableMatcher< Stmt > clang::ast_matchers::gtestExpectThat (StatementMatcher Actual, StatementMatcher Matcher)
 Matcher for gtest's EXPECT_THAT 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.
 
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.