Lines Matching refs:While
976 EXPECT_TRUE(matches("void f() { while(true) { break; } }", breakStmt()));
977 EXPECT_TRUE(matches("void f() { while(true) { continue; } }",
2263 EXPECT_TRUE(matches("void f() { while(true) {} }",
2265 EXPECT_TRUE(matches("void f() { do {} while(true); }",
2851 TEST(While, MatchesWhileLoops) {
2853 EXPECT_TRUE(matches("void x() { while(true); }", whileStmt()));
2854 EXPECT_TRUE(notMatches("void x() { do {} while(true); }", whileStmt()));
2858 EXPECT_TRUE(matches("void x() { do {} while(true); }", doStmt()));
2859 EXPECT_TRUE(matches("void x() { do ; while(false); }", doStmt()));
2863 EXPECT_TRUE(notMatches("void x() { while(true) {} }", doStmt()));
3168 "void f() { if (true) { while (false) { 42; } } }",