Lines Matching refs:hasOperatorName

936       binaryOperator(hasOperatorName("+"),  in TEST()
939 binaryOperator(hasOperatorName("+"), in TEST()
2167 StatementMatcher OperatorOr = binaryOperator(hasOperatorName("||")); in TEST()
2197 matches("void x() { 3, 4; }", binaryOperator(hasOperatorName(",")))); in TEST()
2200 binaryOperator(hasOperatorName("=")))); in TEST()
2202 matches("bool b = 1 != 2;", binaryOperator(hasOperatorName("!=")))); in TEST()
2204 matches("bool b = 1 == 2;", binaryOperator(hasOperatorName("==")))); in TEST()
2205 EXPECT_TRUE(matches("bool b = 1 < 2;", binaryOperator(hasOperatorName("<")))); in TEST()
2207 matches("bool b = 1 <= 2;", binaryOperator(hasOperatorName("<=")))); in TEST()
2209 matches("int i = 1 << 2;", binaryOperator(hasOperatorName("<<")))); in TEST()
2212 binaryOperator(hasOperatorName("<<=")))); in TEST()
2213 EXPECT_TRUE(matches("bool b = 1 > 2;", binaryOperator(hasOperatorName(">")))); in TEST()
2215 matches("bool b = 1 >= 2;", binaryOperator(hasOperatorName(">=")))); in TEST()
2217 matches("int i = 1 >> 2;", binaryOperator(hasOperatorName(">>")))); in TEST()
2220 binaryOperator(hasOperatorName(">>=")))); in TEST()
2222 matches("int i = 42 ^ 23;", binaryOperator(hasOperatorName("^")))); in TEST()
2225 binaryOperator(hasOperatorName("^=")))); in TEST()
2227 matches("int i = 42 % 23;", binaryOperator(hasOperatorName("%")))); in TEST()
2230 binaryOperator(hasOperatorName("%=")))); in TEST()
2232 matches("bool b = 42 &23;", binaryOperator(hasOperatorName("&")))); in TEST()
2235 binaryOperator(hasOperatorName("&&")))); in TEST()
2238 binaryOperator(hasOperatorName("&=")))); in TEST()
2240 matches("bool b = 42 | 23;", binaryOperator(hasOperatorName("|")))); in TEST()
2243 binaryOperator(hasOperatorName("||")))); in TEST()
2246 binaryOperator(hasOperatorName("|=")))); in TEST()
2248 matches("int i = 42 *23;", binaryOperator(hasOperatorName("*")))); in TEST()
2251 binaryOperator(hasOperatorName("*=")))); in TEST()
2253 matches("int i = 42 / 23;", binaryOperator(hasOperatorName("/")))); in TEST()
2256 binaryOperator(hasOperatorName("/=")))); in TEST()
2258 matches("int i = 42 + 23;", binaryOperator(hasOperatorName("+")))); in TEST()
2261 binaryOperator(hasOperatorName("+=")))); in TEST()
2263 matches("int i = 42 - 23;", binaryOperator(hasOperatorName("-")))); in TEST()
2266 binaryOperator(hasOperatorName("-=")))); in TEST()
2269 binaryOperator(hasOperatorName("->*")))); in TEST()
2272 binaryOperator(hasOperatorName(".*")))); in TEST()
2277 binaryOperator(hasOperatorName("->")))); in TEST()
2281 notMatches("bool b = true;", binaryOperator(hasOperatorName("=")))); in TEST()
2294 StatementMatcher OperatorNot = unaryOperator(hasOperatorName("!")); in TEST()
2311 EXPECT_TRUE(matches("bool b = !true;", unaryOperator(hasOperatorName("!")))); in TEST()
2313 matches("bool b; bool *p = &b;", unaryOperator(hasOperatorName("&")))); in TEST()
2314 EXPECT_TRUE(matches("int i = ~ 1;", unaryOperator(hasOperatorName("~")))); in TEST()
2316 matches("bool *p; bool b = *p;", unaryOperator(hasOperatorName("*")))); in TEST()
2318 matches("int i; int j = +i;", unaryOperator(hasOperatorName("+")))); in TEST()
2320 matches("int i; int j = -i;", unaryOperator(hasOperatorName("-")))); in TEST()
2322 matches("int i; int j = ++i;", unaryOperator(hasOperatorName("++")))); in TEST()
2324 matches("int i; int j = i++;", unaryOperator(hasOperatorName("++")))); in TEST()
2326 matches("int i; int j = --i;", unaryOperator(hasOperatorName("--")))); in TEST()
2328 matches("int i; int j = i--;", unaryOperator(hasOperatorName("--")))); in TEST()
2340 "void x() { A a; !a; }", unaryOperator(hasOperatorName("!")))); in TEST()