Lines Matching full:macro
11 // matches if the macro definition has identifiable elements that themselves can
13 // the match occurs within an expansion of the desired macro. The more uncommon
58 static llvm::StringRef getMacroTypeName(MacroType Macro) { in getMacroTypeName() argument
59 switch (Macro) { in getMacroTypeName()
88 static std::string getMacroName(MacroType Macro, GtestCmp Cmp) { in getMacroName() argument
89 return (getMacroTypeName(Macro) + "_" + getComparisonTypeName(Cmp)).str(); in getMacroName()
92 static std::string getMacroName(MacroType Macro, llvm::StringRef Operation) { in getMacroName() argument
93 return (getMacroTypeName(Macro) + "_" + Operation).str(); in getMacroName()
100 static llvm::StringRef getSpecSetterName(MacroType Macro) { in getSpecSetterName() argument
101 switch (Macro) { in getSpecSetterName()
113 // simulate such matches if the macro definition has identifiable elements that
116 // macro. The more uncommon the identified elements, the more efficient this
122 gtestComparisonInternal(MacroType Macro, GtestCmp Cmp, StatementMatcher Left, in gtestComparisonInternal() argument
124 return callExpr(isExpandedFromMacro(getMacroName(Macro, Cmp)), in gtestComparisonInternal()
130 gtestThatInternal(MacroType Macro, StatementMatcher Actual, in gtestThatInternal() argument
133 isExpandedFromMacro(getMacroName(Macro, "THAT")), in gtestThatInternal()
146 gtestCallInternal(MacroType Macro, StatementMatcher MockCall, MockArgs Args) { in gtestCallInternal() argument
147 // A ON_CALL or EXPECT_CALL macro expands to different AST structures in gtestCallInternal()
159 isExpandedFromMacro(getMacroName(Macro, "CALL")), in gtestCallInternal()
160 callee(functionDecl(hasName(getSpecSetterName(Macro)))), in gtestCallInternal()
170 isExpandedFromMacro(getMacroName(Macro, "CALL")), in gtestCallInternal()
171 callee(functionDecl(hasName(getSpecSetterName(Macro)))), in gtestCallInternal()
180 gtestCallInternal(MacroType Macro, StatementMatcher MockObject, in gtestCallInternal() argument
183 Macro, in gtestCallInternal()