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

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 1838 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ForStmt> forStmt;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  227   REGISTER_MATCHER(forStmt);
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp
  140   return forStmt(
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
  163                                 forStmt(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
   24                  forStmt(hasBody(nullStmt().bind("semi"))),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp
  119                    forStmt(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/TooSmallLoopVariableCheck.cpp
   81       forStmt(
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
   74       forStmt(eachOf(hasLoopInit(MatchedCallExpr),
tools/clang/tools/extra/clang-tidy/cert/FloatLoopCounter.cpp
   21       forStmt(hasIncrement(expr(hasType(realFloatingPointType())))).bind("for"),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp
   35   auto Loop = stmt(anyOf(forStmt(), cxxForRangeStmt(), whileStmt(), doStmt()));
   37       stmt(anyOf(forStmt(hasAncestor(Loop)), cxxForRangeStmt(hasAncestor(Loop)),
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
   86   return forStmt(
  180   return forStmt(
  281   return forStmt(
tools/clang/tools/extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp
   65                                                    whileStmt(), forStmt())))),
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
  127       forStmt(
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
   47                 unless(hasAncestor(stmt(anyOf(forStmt(), cxxForRangeStmt(),
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
  129   Finder->addMatcher(forStmt().bind("for"), this);
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/ASTMatchersNarrowingTest.cpp
  276     forEach(fieldDecl(hasAncestor(forStmt()))));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  904   EXPECT_TRUE(matches("void f() { for(;;); }", forStmt()));
  905   EXPECT_TRUE(matches("void f() { if(true) for(;;); }", forStmt()));
  908                          forStmt()));
  912   EXPECT_TRUE(notMatches("void f() { ; }", forStmt()));
  913   EXPECT_TRUE(notMatches("void f() { if(true); }", forStmt()));
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
 1341     forStmt(hasCondition(cxxBoolLiteral(equals(true))));
 1358                       forStmt(hasCondition(anything()))));
 1360                       forStmt(hasLoopInit(anything()))));
 1373                          forStmt(hasCondition(expr()))));
 1375                          forStmt(hasLoopInit(anything()))));
 1380                       forStmt(hasBody(compoundStmt()))));
 1382                          forStmt(hasBody(compoundStmt()))));
 1400                       compoundStmt(hasAnySubstatement(forStmt()))));
 1406                          compoundStmt(hasAnySubstatement(forStmt()))));
 1411                       compoundStmt(hasAnySubstatement(forStmt()))));
 1416                       compoundStmt(hasAnySubstatement(forStmt()))));
 2500       "if", stmt(hasDescendant(forStmt().bind("for"))), "for")));