Lines Matching refs:castExpr
2669 EXPECT_TRUE(matches("char *p = reinterpret_cast<char *>(&p);",castExpr()));
2670 EXPECT_TRUE(matches("void *p = (void *)(&p);", castExpr()));
2671 EXPECT_TRUE(matches("char q, *p = const_cast<char *>(&q);", castExpr()));
2672 EXPECT_TRUE(matches("char c = char(0);", castExpr()));
2676 EXPECT_TRUE(matches("char c = 0;", castExpr()));
2678 EXPECT_TRUE(matches("char c = 0, d = c;", castExpr()));
2682 EXPECT_TRUE(notMatches("char c = '0';", castExpr()));
2683 EXPECT_TRUE(notMatches("char c, &q = c;", castExpr()));
2684 EXPECT_TRUE(notMatches("int i = (0);", castExpr()));
2685 EXPECT_TRUE(notMatches("int i = 0;", castExpr()));