Lines Matching refs:unaryOperator
2523 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator())); in TEST()
2533 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!")); in TEST()
2541 unaryOperator(hasUnaryOperand(cxxBoolLiteral(equals(false)))); in TEST()
2550 EXPECT_TRUE(matches("bool b = !true;", unaryOperator(hasOperatorName("!")))); in TEST()
2552 matches("bool b; bool *p = &b;", unaryOperator(hasOperatorName("&")))); in TEST()
2553 EXPECT_TRUE(matches("int i = ~ 1;", unaryOperator(hasOperatorName("~")))); in TEST()
2555 matches("bool *p; bool b = *p;", unaryOperator(hasOperatorName("*")))); in TEST()
2557 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+")))); in TEST()
2559 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-")))); in TEST()
2561 matches("int i; int j = ++i;", unaryOperator(hasOperatorName("++")))); in TEST()
2563 matches("int i; int j = i++;", unaryOperator(hasOperatorName("++")))); in TEST()
2565 matches("int i; int j = --i;", unaryOperator(hasOperatorName("--")))); in TEST()
2567 matches("int i; int j = i--;", unaryOperator(hasOperatorName("--")))); in TEST()
2570 EXPECT_TRUE(notMatches("int i; double d = (double)i;", unaryOperator())); in TEST()
2573 EXPECT_TRUE(notMatches("void f(); void x() { f(); }", unaryOperator())); in TEST()
2579 "void x() { A a; !a; }", unaryOperator(hasOperatorName("!")))); in TEST()