Lines Matching refs:binaryOperator
727 StatementMatcher OperatorOr = binaryOperator(hasOperatorName("||")); in TEST()
735 binaryOperator(hasLHS(cxxBoolLiteral(equals(true))), in TEST()
750 binaryOperator(hasEitherOperand(cxxBoolLiteral(equals(false)))); in TEST()
762 matches("void x() { 3, 4; }", binaryOperator(hasOperatorName(",")))); in TEST()
765 binaryOperator(hasOperatorName("=")))); in TEST()
767 matches("bool b = 1 != 2;", binaryOperator(hasOperatorName("!=")))); in TEST()
769 matches("bool b = 1 == 2;", binaryOperator(hasOperatorName("==")))); in TEST()
770 EXPECT_TRUE(matches("bool b = 1 < 2;", binaryOperator(hasOperatorName("<")))); in TEST()
772 matches("bool b = 1 <= 2;", binaryOperator(hasOperatorName("<=")))); in TEST()
774 matches("int i = 1 << 2;", binaryOperator(hasOperatorName("<<")))); in TEST()
777 binaryOperator(hasOperatorName("<<=")))); in TEST()
778 EXPECT_TRUE(matches("bool b = 1 > 2;", binaryOperator(hasOperatorName(">")))); in TEST()
780 matches("bool b = 1 >= 2;", binaryOperator(hasOperatorName(">=")))); in TEST()
782 matches("int i = 1 >> 2;", binaryOperator(hasOperatorName(">>")))); in TEST()
785 binaryOperator(hasOperatorName(">>=")))); in TEST()
787 matches("int i = 42 ^ 23;", binaryOperator(hasOperatorName("^")))); in TEST()
790 binaryOperator(hasOperatorName("^=")))); in TEST()
792 matches("int i = 42 % 23;", binaryOperator(hasOperatorName("%")))); in TEST()
795 binaryOperator(hasOperatorName("%=")))); in TEST()
797 matches("bool b = 42 &23;", binaryOperator(hasOperatorName("&")))); in TEST()
800 binaryOperator(hasOperatorName("&&")))); in TEST()
803 binaryOperator(hasOperatorName("&=")))); in TEST()
805 matches("bool b = 42 | 23;", binaryOperator(hasOperatorName("|")))); in TEST()
808 binaryOperator(hasOperatorName("||")))); in TEST()
811 binaryOperator(hasOperatorName("|=")))); in TEST()
813 matches("int i = 42 *23;", binaryOperator(hasOperatorName("*")))); in TEST()
816 binaryOperator(hasOperatorName("*=")))); in TEST()
818 matches("int i = 42 / 23;", binaryOperator(hasOperatorName("/")))); in TEST()
821 binaryOperator(hasOperatorName("/=")))); in TEST()
823 matches("int i = 42 + 23;", binaryOperator(hasOperatorName("+")))); in TEST()
826 binaryOperator(hasOperatorName("+=")))); in TEST()
828 matches("int i = 42 - 23;", binaryOperator(hasOperatorName("-")))); in TEST()
831 binaryOperator(hasOperatorName("-=")))); in TEST()
834 binaryOperator(hasOperatorName("->*")))); in TEST()
837 binaryOperator(hasOperatorName(".*")))); in TEST()
842 binaryOperator(hasOperatorName("->")))); in TEST()
846 notMatches("bool b = true;", binaryOperator(hasOperatorName("=")))); in TEST()
855 binaryOperator())); in TEST()
1969 StatementMatcher RetVal = returnStmt(hasReturnValue(binaryOperator())); in TEST()