Lines Matching refs:binaryOperator
1288 StatementMatcher OperatorOr = binaryOperator(hasOperatorName("||")); in TEST()
1296 binaryOperator(hasAnyOperatorName("+", "-", "*", "/")); in TEST()
1309 binaryOperator(hasLHS(cxxBoolLiteral(equals(true))), in TEST()
1326 binaryOperator(hasEitherOperand(cxxBoolLiteral(equals(false)))); in TEST()
1334 StatementMatcher HasOperands = binaryOperator( in TEST()
1349 matches("void x() { 3, 4; }", binaryOperator(hasOperatorName(",")))); in TEST()
1352 binaryOperator(hasOperatorName("=")))); in TEST()
1354 matches("bool b = 1 != 2;", binaryOperator(hasOperatorName("!=")))); in TEST()
1356 matches("bool b = 1 == 2;", binaryOperator(hasOperatorName("==")))); in TEST()
1357 EXPECT_TRUE(matches("bool b = 1 < 2;", binaryOperator(hasOperatorName("<")))); in TEST()
1359 matches("bool b = 1 <= 2;", binaryOperator(hasOperatorName("<=")))); in TEST()
1361 matches("int i = 1 << 2;", binaryOperator(hasOperatorName("<<")))); in TEST()
1364 binaryOperator(hasOperatorName("<<=")))); in TEST()
1365 EXPECT_TRUE(matches("bool b = 1 > 2;", binaryOperator(hasOperatorName(">")))); in TEST()
1367 matches("bool b = 1 >= 2;", binaryOperator(hasOperatorName(">=")))); in TEST()
1369 matches("int i = 1 >> 2;", binaryOperator(hasOperatorName(">>")))); in TEST()
1372 binaryOperator(hasOperatorName(">>=")))); in TEST()
1374 matches("int i = 42 ^ 23;", binaryOperator(hasOperatorName("^")))); in TEST()
1377 binaryOperator(hasOperatorName("^=")))); in TEST()
1379 matches("int i = 42 % 23;", binaryOperator(hasOperatorName("%")))); in TEST()
1382 binaryOperator(hasOperatorName("%=")))); in TEST()
1384 matches("bool b = 42 &23;", binaryOperator(hasOperatorName("&")))); in TEST()
1387 binaryOperator(hasOperatorName("&&")))); in TEST()
1390 binaryOperator(hasOperatorName("&=")))); in TEST()
1392 matches("bool b = 42 | 23;", binaryOperator(hasOperatorName("|")))); in TEST()
1395 binaryOperator(hasOperatorName("||")))); in TEST()
1398 binaryOperator(hasOperatorName("|=")))); in TEST()
1400 matches("int i = 42 *23;", binaryOperator(hasOperatorName("*")))); in TEST()
1403 binaryOperator(hasOperatorName("*=")))); in TEST()
1405 matches("int i = 42 / 23;", binaryOperator(hasOperatorName("/")))); in TEST()
1408 binaryOperator(hasOperatorName("/=")))); in TEST()
1410 matches("int i = 42 + 23;", binaryOperator(hasOperatorName("+")))); in TEST()
1413 binaryOperator(hasOperatorName("+=")))); in TEST()
1415 matches("int i = 42 - 23;", binaryOperator(hasOperatorName("-")))); in TEST()
1418 binaryOperator(hasOperatorName("-=")))); in TEST()
1421 binaryOperator(hasOperatorName("->*")))); in TEST()
1424 binaryOperator(hasOperatorName(".*")))); in TEST()
1429 binaryOperator(hasOperatorName("->")))); in TEST()
1433 notMatches("bool b = true;", binaryOperator(hasOperatorName("=")))); in TEST()
1442 binaryOperator())); in TEST()
2540 auto M = cxxForRangeStmt(has(binaryOperator(hasOperatorName("!=")))); in TEST()
2546 cxxForRangeStmt(hasDescendant(binaryOperator(hasOperatorName("+")))); in TEST()
2590 auto M = cxxForRangeStmt(has(binaryOperator(hasOperatorName("!=")))); in TEST()
2599 cxxForRangeStmt(hasDescendant(binaryOperator(hasOperatorName("+")))); in TEST()
3382 Code, binaryOperator(forEach(declRefExpr().bind("dre"))), in TEST()
3387 binaryOperator(forEach( in TEST()
3393 binaryOperator( in TEST()
3400 binaryOperator(forEach(declRefExpr().bind("dre")))), in TEST()
4049 StatementMatcher RetVal = returnStmt(hasReturnValue(binaryOperator())); in TEST()