Lines Matching refs:unaryOperator
849 EXPECT_TRUE(notMatches("int a[42]; void x() { a[23]; }", unaryOperator())); in TEST()
859 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!")); in TEST()
867 unaryOperator(hasUnaryOperand(cxxBoolLiteral(equals(false)))); in TEST()
876 EXPECT_TRUE(matches("bool b = !true;", unaryOperator(hasOperatorName("!")))); in TEST()
878 matches("bool b; bool *p = &b;", unaryOperator(hasOperatorName("&")))); in TEST()
879 EXPECT_TRUE(matches("int i = ~ 1;", unaryOperator(hasOperatorName("~")))); in TEST()
881 matches("bool *p; bool b = *p;", unaryOperator(hasOperatorName("*")))); in TEST()
883 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+")))); in TEST()
885 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-")))); in TEST()
887 matches("int i; int j = ++i;", unaryOperator(hasOperatorName("++")))); in TEST()
889 matches("int i; int j = i++;", unaryOperator(hasOperatorName("++")))); in TEST()
891 matches("int i; int j = --i;", unaryOperator(hasOperatorName("--")))); in TEST()
893 matches("int i; int j = i--;", unaryOperator(hasOperatorName("--")))); in TEST()
896 EXPECT_TRUE(notMatches("int i; double d = (double)i;", unaryOperator())); in TEST()
899 EXPECT_TRUE(notMatches("void f(); void x() { f(); }", unaryOperator())); in TEST()
905 "void x() { A a; !a; }", unaryOperator(hasOperatorName("!")))); in TEST()
1995 has(unaryOperator(hasOperatorName("*")))))); in TEST()