Lines Matching refs:binaryOperator

858       binaryOperator(hasOperatorName("+"),
861 binaryOperator(hasOperatorName("+"),
2006 StatementMatcher OperatorOr = binaryOperator(hasOperatorName("||"));
2014 binaryOperator(hasLHS(boolLiteral(equals(true))),
2024 binaryOperator(hasEitherOperand(boolLiteral(equals(false))));
2036 matches("void x() { 3, 4; }", binaryOperator(hasOperatorName(","))));
2039 binaryOperator(hasOperatorName("="))));
2041 matches("bool b = 1 != 2;", binaryOperator(hasOperatorName("!="))));
2043 matches("bool b = 1 == 2;", binaryOperator(hasOperatorName("=="))));
2044 EXPECT_TRUE(matches("bool b = 1 < 2;", binaryOperator(hasOperatorName("<"))));
2046 matches("bool b = 1 <= 2;", binaryOperator(hasOperatorName("<="))));
2048 matches("int i = 1 << 2;", binaryOperator(hasOperatorName("<<"))));
2051 binaryOperator(hasOperatorName("<<="))));
2052 EXPECT_TRUE(matches("bool b = 1 > 2;", binaryOperator(hasOperatorName(">"))));
2054 matches("bool b = 1 >= 2;", binaryOperator(hasOperatorName(">="))));
2056 matches("int i = 1 >> 2;", binaryOperator(hasOperatorName(">>"))));
2059 binaryOperator(hasOperatorName(">>="))));
2061 matches("int i = 42 ^ 23;", binaryOperator(hasOperatorName("^"))));
2064 binaryOperator(hasOperatorName("^="))));
2066 matches("int i = 42 % 23;", binaryOperator(hasOperatorName("%"))));
2069 binaryOperator(hasOperatorName("%="))));
2071 matches("bool b = 42 &23;", binaryOperator(hasOperatorName("&"))));
2074 binaryOperator(hasOperatorName("&&"))));
2077 binaryOperator(hasOperatorName("&="))));
2079 matches("bool b = 42 | 23;", binaryOperator(hasOperatorName("|"))));
2082 binaryOperator(hasOperatorName("||"))));
2085 binaryOperator(hasOperatorName("|="))));
2087 matches("int i = 42 *23;", binaryOperator(hasOperatorName("*"))));
2090 binaryOperator(hasOperatorName("*="))));
2092 matches("int i = 42 / 23;", binaryOperator(hasOperatorName("/"))));
2095 binaryOperator(hasOperatorName("/="))));
2097 matches("int i = 42 + 23;", binaryOperator(hasOperatorName("+"))));
2100 binaryOperator(hasOperatorName("+="))));
2102 matches("int i = 42 - 23;", binaryOperator(hasOperatorName("-"))));
2105 binaryOperator(hasOperatorName("-="))));
2108 binaryOperator(hasOperatorName("->*"))));
2111 binaryOperator(hasOperatorName(".*"))));
2116 binaryOperator(hasOperatorName("->"))));
2120 notMatches("bool b = true;", binaryOperator(hasOperatorName("="))));
2129 binaryOperator()));