reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 1915 extern const internal::VariadicDynCastAllOfMatcher<Stmt, WhileStmt> whileStmt;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  524   REGISTER_MATCHER(whileStmt);
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
  162   Finder->addMatcher(stmt(anyOf(whileStmt(LoopCondition), doStmt(LoopCondition),
tools/clang/tools/extra/clang-tidy/bugprone/MultipleStatementMacroCheck.cpp
   62                  whileStmt(hasBody(Inner)), forStmt(hasBody(Inner))))
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp
   26                  whileStmt(hasBody(nullStmt().bind("semi")))))
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp
  117                    whileStmt(hasCondition(StringCompareCallExpr)),
tools/clang/tools/extra/clang-tidy/bugprone/TerminatingContinueCheck.cpp
   29       continueStmt(hasAncestor(stmt(anyOf(forStmt(), whileStmt(),
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
   71   auto UnusedInWhileStmt = whileStmt(hasBody(MatchedCallExpr));
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp
   35   auto Loop = stmt(anyOf(forStmt(), cxxForRangeStmt(), whileStmt(), doStmt()));
   38                  whileStmt(hasAncestor(Loop)), doStmt(hasAncestor(Loop))));
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
   58       stmt(anyOf(ifStmt(Any), whileStmt(Any), doStmt(Condition),
tools/clang/tools/extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp
   65                                                    whileStmt(), forStmt())))),
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
   48                                               whileStmt(), doStmt()))))))),
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
  127   Finder->addMatcher(whileStmt().bind("while"), this);
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
  291               hasParent(stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))),
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp
  111       compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt()))))
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
   43       stmt(anyOf(forStmt(), cxxForRangeStmt(), whileStmt(), doStmt()),
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
 1133   EXPECT_TRUE(notMatches("void x() {}", whileStmt()));
 1134   EXPECT_TRUE(matches("void x() { while(true); }", whileStmt()));
 1135   EXPECT_TRUE(notMatches("void x() { do {} while(true); }", whileStmt()));
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
 1346     whileStmt(hasCondition(cxxBoolLiteral(equals(true))));
 1384                       whileStmt(hasBody(compoundStmt()))));
 1960                  forEachDescendant(whileStmt().bind("while"))),