Lines Matching refs:needParensAfterUnaryOperator
89 TEST(SourceCodeBuildersTest, needParensAfterUnaryOperator) { in TEST() argument
90 testPredicate(needParensAfterUnaryOperator, "3 + 5;", true); in TEST()
91 testPredicate(needParensAfterUnaryOperator, "true ? 3 : 5;", true); in TEST()
92 testPredicate(needParensAfterUnaryOperator, "S(3) + S(5);", true); in TEST()
94 testPredicate(needParensAfterUnaryOperator, "int x; x;", false); in TEST()
95 testPredicate(needParensAfterUnaryOperator, "int(3.0);", false); in TEST()
96 testPredicate(needParensAfterUnaryOperator, "void f(); f();", false); in TEST()
97 testPredicate(needParensAfterUnaryOperator, "int a[3]; a[0];", false); in TEST()
98 testPredicate(needParensAfterUnaryOperator, "S x; x.field;", false); in TEST()
99 testPredicate(needParensAfterUnaryOperator, "int x = 1; --x;", false); in TEST()
100 testPredicate(needParensAfterUnaryOperator, "int x = 1; -x;", false); in TEST()
106 testPredicateOnArg(needParensAfterUnaryOperator, "void f(S); f(3 + 5);", in TEST()