Home
last modified time | relevance | path

Searched refs:needParensAfterUnaryOperator (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang/unittests/Tooling/
DSourceCodeBuildersTest.cpp89 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()
[all …]
/external/llvm-project/clang/lib/Tooling/Transformer/
DSourceCodeBuilders.cpp50 bool tooling::needParensAfterUnaryOperator(const Expr &E) { in needParensAfterUnaryOperator() function in tooling
89 if (needParensAfterUnaryOperator(E)) in buildDereference()
109 if (needParensAfterUnaryOperator(E)) { in buildAddressOf()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantStringCStrCheck.cpp28 bool needParensAfterUnaryOperator(const Expr &ExprNode) { in needParensAfterUnaryOperator() function
58 if (needParensAfterUnaryOperator(ExprNode)) { in formatDereference()
/external/llvm-project/clang/include/clang/Tooling/Transformer/
DSourceCodeBuilders.h45 bool needParensAfterUnaryOperator(const Expr &E);