Lines Matching refs:Cmp
39 static DeclarationMatcher getComparisonDecl(GtestCmp Cmp) { in getComparisonDecl() argument
40 switch (Cmp) { in getComparisonDecl()
71 static llvm::StringRef getComparisonTypeName(GtestCmp Cmp) { in getComparisonTypeName() argument
72 switch (Cmp) { in getComparisonTypeName()
89 static std::string getMacroName(MacroType Macro, GtestCmp Cmp) { in getMacroName() argument
90 return (getMacroTypeName(Macro) + "_" + getComparisonTypeName(Cmp)).str(); in getMacroName()
123 gtestComparisonInternal(MacroType Macro, GtestCmp Cmp, StatementMatcher Left, in gtestComparisonInternal() argument
125 return callExpr(isExpandedFromMacro(getMacroName(Macro, Cmp)), in gtestComparisonInternal()
126 callee(getComparisonDecl(Cmp)), hasArgument(2, Left), in gtestComparisonInternal()
191 internal::BindableMatcher<Stmt> gtestAssert(GtestCmp Cmp, StatementMatcher Left, in gtestAssert() argument
193 return gtestComparisonInternal(MacroType::Assert, Cmp, Left, Right); in gtestAssert()
196 internal::BindableMatcher<Stmt> gtestExpect(GtestCmp Cmp, StatementMatcher Left, in gtestExpect() argument
198 return gtestComparisonInternal(MacroType::Expect, Cmp, Left, Right); in gtestExpect()