Home | History | Annotate | Download | only in ASTMatchers

Lines Matching refs:unaryOperator

2009   EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator()));
2019 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!"));
2027 unaryOperator(hasUnaryOperand(boolLiteral(equals(false))));
2036 EXPECT_TRUE(matches("bool b = !true;", unaryOperator(hasOperatorName("!"))));
2038 matches("bool b; bool *p = &b;", unaryOperator(hasOperatorName("&"))));
2039 EXPECT_TRUE(matches("int i = ~ 1;", unaryOperator(hasOperatorName("~"))));
2041 matches("bool *p; bool b = *p;", unaryOperator(hasOperatorName("*"))));
2043 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+"))));
2045 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-"))));
2047 matches("int i; int j = ++i;", unaryOperator(hasOperatorName("++"))));
2049 matches("int i; int j = i++;", unaryOperator(hasOperatorName("++"))));
2051 matches("int i; int j = --i;", unaryOperator(hasOperatorName("--"))));
2053 matches("int i; int j = i--;", unaryOperator(hasOperatorName("--"))));
2056 EXPECT_TRUE(notMatches("int i; double d = (double)i;", unaryOperator()));
2059 EXPECT_TRUE(notMatches("void f(); void x() { f(); }", unaryOperator()));
2065 "void x() { A a; !a; }", unaryOperator(hasOperatorName("!"))));