Home
last modified time | relevance | path

Searched refs:forStmt (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSpuriouslyWakeUpFunctionsCheck.cpp63 unless(hasDescendant(mapAnyOf(ifStmt, whileStmt, forStmt, doStmt) in registerMatchers()
71 hasDescendant(mapAnyOf(ifStmt, whileStmt, forStmt, doStmt) in registerMatchers()
73 hasParent(mapAnyOf(whileStmt, forStmt, doStmt)), in registerMatchers()
75 hasParent(mapAnyOf(whileStmt, forStmt, doStmt))))))), in registerMatchers()
H A DTerminatingContinueCheck.cpp30 hasAncestor(stmt(anyOf(forStmt(), whileStmt(), cxxForRangeStmt(), in registerMatchers()
H A DUnusedReturnValueCheck.cpp156 forStmt(eachOf(hasLoopInit(MatchedCallExpr), in registerMatchers()
H A DSuspiciousSemicolonCheck.cpp25 forStmt(hasBody(nullStmt().bind("semi"))), in registerMatchers()
H A DMultipleStatementMacroCheck.cpp62 whileStmt(hasBody(Inner)), forStmt(hasBody(Inner)))) in registerMatchers()
H A DSuspiciousStringCompareCheck.cpp113 stmt(anyOf(mapAnyOf(ifStmt, whileStmt, doStmt, forStmt) in registerMatchers()
H A DTooSmallLoopVariableCheck.cpp80 forStmt( in registerMatchers()
H A DInfiniteLoopCheck.cpp156 Finder->addMatcher(mapAnyOf(whileStmt, doStmt, forStmt) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIdentifierLengthCheck.cpp75 forStmt(hasLoopInit(declStmt(forEach(varDecl().bind("loopVar"))))), in registerMatchers()
87 varDecl(unless(anyOf(hasParent(declStmt(hasParent(forStmt()))), in registerMatchers()
H A DRedundantControlFlowCheck.cpp41 mapAnyOf(forStmt, cxxForRangeStmt, whileStmt, doStmt) in registerMatchers()
H A DMisleadingIndentationCheck.cpp111 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt())))) in registerMatchers()
H A DBracesAroundStatementsCheck.cpp111 Finder->addMatcher(forStmt().bind("for"), this); in registerMatchers()
H A DContainerSizeEmptyCheck.cpp67 mapAnyOf(ifStmt, doStmt, whileStmt, forStmt, in AST_MATCHER()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DFloatLoopCounter.cpp21 forStmt(hasIncrement(expr(hasType(realFloatingPointType())))).bind("for"), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DAvoidGotoCheck.cpp32 auto Loop = mapAnyOf(forStmt, cxxForRangeStmt, whileStmt, doStmt); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientStringConcatenationCheck.cpp62 whileStmt(), forStmt())))), in registerMatchers()
H A DUnnecessaryValueParamCheck.cpp48 unless(hasAncestor(stmt(anyOf(forStmt(), cxxForRangeStmt(), in hasLoopStmtAncestor()
H A DInefficientVectorOperationCheck.cpp131 forStmt( in addMatcher()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersInternalTest.cpp101 crashTestNodeDump(forStmt(), {}, "ForStmt : <input.cc:1:14, col:21>",
104 forStmt(hasLoopInit(declStmt(hasSingleDecl(
H A DASTMatchersTraversalTest.cpp2014 forStmt(hasCondition(cxxBoolLiteral(equals(true)))); in TEST()
2031 forStmt(hasCondition(anything())))); in TEST()
2033 forStmt(hasLoopInit(anything())))); in TEST()
2046 forStmt(hasCondition(expr())))); in TEST()
2048 forStmt(hasLoopInit(anything())))); in TEST()
2053 forStmt(hasBody(compoundStmt())))); in TEST()
2055 forStmt(hasBody(compoundStmt())))); in TEST()
2112 compoundStmt(hasAnySubstatement(forStmt())))); in TEST()
2123 compoundStmt(hasAnySubstatement(forStmt())))); in TEST()
3023 EXPECT_TRUE(matches(Code, traverse(TK_AsIs, forStmt()))); in TEST()
[all …]
H A DASTMatchersNodeTest.cpp1143 EXPECT_TRUE(matches("void f() { for(;;); }", forStmt())); in TEST_P()
1144 EXPECT_TRUE(matches("void f() { if(1) for(;;); }", forStmt())); in TEST_P()
1153 forStmt())); in TEST_P()
1157 EXPECT_TRUE(notMatches("void f() { ; }", forStmt())); in TEST_P()
1158 EXPECT_TRUE(notMatches("void f() { if(1); }", forStmt())); in TEST_P()
/llvm-project-15.0.7/clang/docs/
H A DLibASTMatchersTutorial.rst229 forStmt()
236 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl()))))
243 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
259 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
278 forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl(
487 forStmt(hasLoopInit(declStmt(
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertCheck.cpp113 return forStmt(unless(isInTemplateInstantiation()), in makeArrayLoopMatcher()
197 return forStmt( in makeIteratorLoopMatcher()
286 return forStmt(unless(isInTemplateInstantiation()), in makePseudoArrayLoopMatcher()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp34 const auto AnyLoop = anyOf(forStmt(), whileStmt(), doStmt(), CXXForRangeLoop); in registerMatchers()
H A DIdDependentBackwardBranchCheck.cpp74 Finder->addMatcher(stmt(anyOf(forStmt(hasCondition(CondExpr)), in registerMatchers()

12