Lines Matching refs:unaryOperator
2284 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator())); in TEST()
2294 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!")); in TEST()
2302 unaryOperator(hasUnaryOperand(boolLiteral(equals(false)))); in TEST()
2311 EXPECT_TRUE(matches("bool b = !true;", unaryOperator(hasOperatorName("!")))); in TEST()
2313 matches("bool b; bool *p = &b;", unaryOperator(hasOperatorName("&")))); in TEST()
2314 EXPECT_TRUE(matches("int i = ~ 1;", unaryOperator(hasOperatorName("~")))); in TEST()
2316 matches("bool *p; bool b = *p;", unaryOperator(hasOperatorName("*")))); in TEST()
2318 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+")))); in TEST()
2320 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-")))); in TEST()
2322 matches("int i; int j = ++i;", unaryOperator(hasOperatorName("++")))); in TEST()
2324 matches("int i; int j = i++;", unaryOperator(hasOperatorName("++")))); in TEST()
2326 matches("int i; int j = --i;", unaryOperator(hasOperatorName("--")))); in TEST()
2328 matches("int i; int j = i--;", unaryOperator(hasOperatorName("--")))); in TEST()
2331 EXPECT_TRUE(notMatches("int i; double d = (double)i;", unaryOperator())); in TEST()
2334 EXPECT_TRUE(notMatches("void f(); void x() { f(); }", unaryOperator())); in TEST()
2340 "void x() { A a; !a; }", unaryOperator(hasOperatorName("!")))); in TEST()