Home | History | Annotate | Download | only in ASTMatchers

Lines Matching refs:callExpr

315   StatementMatcher CallMethodX = callExpr(callee(cxxMethodDecl(hasName("x"))));
320 CallMethodX = callExpr(callee(cxxConversionDecl()));
329 callExpr(callee(memberExpr()))));
331 notMatches("class Y { void x() { this->x(); } };", callExpr(callee(callExpr()))));
335 StatementMatcher CallArgumentY = callExpr(
343 StatementMatcher WrongIndex = callExpr(
349 StatementMatcher CallArgumentY = callExpr(
356 StatementMatcher ImplicitCastedArgument = callExpr(
365 StatementMatcher CallExpr =
366 callExpr(forEachArgumentWithParam(ArgumentY, IntParam));
369 EXPECT_TRUE(notMatches("void f(int* i) { int* y; f(y); }", CallExpr));
371 EXPECT_TRUE(notMatches("void f(int i) { int x; f(x); }", CallExpr));
378 StatementMatcher CallExpr =
379 callExpr(forEachArgumentWithParam(ArgumentY, IntParam));
388 CallExpr, llvm::make_unique<VerifyIdIsBoundTo<ParmVarDecl>>("param", 1)));
391 callExpr(forEachArgumentWithParam(ArgumentY, IntParam));
407 StatementMatcher CallExpr =
408 callExpr(forEachArgumentWithParam(ArgumentY, IntParam));
411 matchAndVerifyResultTrue("void f(int i) { int y; f(y); }", CallExpr,
415 matchAndVerifyResultTrue("void f(int i) { int y; f(y); }", CallExpr,
420 "void f(int i, int j) { int y; f(y, y); }", CallExpr,
423 "void f(int i, int j) { int y; f(y, y); }", CallExpr,
456 forEachDescendant(callExpr(forEachArgumentWithParam(
946 callExpr(callee(cxxMethodDecl(hasName("x"))))));
957 recordDecl(hasName("C"), hasDescendant(callExpr(
1468 callExpr(expr().bind("x"), hasAnyArgument(integerLiteral(equals(42)))),