reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
45 bool needParensAfterUnaryOperator(const Expr &E);
89 if (needParensAfterUnaryOperator(E)) 109 if (needParensAfterUnaryOperator(E)) {tools/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
90 testPredicate(needParensAfterUnaryOperator, "3 + 5;", true); 91 testPredicate(needParensAfterUnaryOperator, "true ? 3 : 5;", true); 92 testPredicate(needParensAfterUnaryOperator, "S(3) + S(5);", true); 94 testPredicate(needParensAfterUnaryOperator, "int x; x;", false); 95 testPredicate(needParensAfterUnaryOperator, "int(3.0);", false); 96 testPredicate(needParensAfterUnaryOperator, "void f(); f();", false); 97 testPredicate(needParensAfterUnaryOperator, "int a[3]; a[0];", false); 98 testPredicate(needParensAfterUnaryOperator, "S x; x.field;", false); 99 testPredicate(needParensAfterUnaryOperator, "int x = 1; --x;", false); 100 testPredicate(needParensAfterUnaryOperator, "int x = 1; -x;", false); 106 testPredicateOnArg(needParensAfterUnaryOperator, "void f(S); f(3 + 5);",