| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SpuriouslyWakeUpFunctionsCheck.cpp | 63 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 D | TerminatingContinueCheck.cpp | 30 hasAncestor(stmt(anyOf(forStmt(), whileStmt(), cxxForRangeStmt(), in registerMatchers()
|
| H A D | UnusedReturnValueCheck.cpp | 156 forStmt(eachOf(hasLoopInit(MatchedCallExpr), in registerMatchers()
|
| H A D | SuspiciousSemicolonCheck.cpp | 25 forStmt(hasBody(nullStmt().bind("semi"))), in registerMatchers()
|
| H A D | MultipleStatementMacroCheck.cpp | 62 whileStmt(hasBody(Inner)), forStmt(hasBody(Inner)))) in registerMatchers()
|
| H A D | SuspiciousStringCompareCheck.cpp | 113 stmt(anyOf(mapAnyOf(ifStmt, whileStmt, doStmt, forStmt) in registerMatchers()
|
| H A D | TooSmallLoopVariableCheck.cpp | 80 forStmt( in registerMatchers()
|
| H A D | InfiniteLoopCheck.cpp | 156 Finder->addMatcher(mapAnyOf(whileStmt, doStmt, forStmt) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | IdentifierLengthCheck.cpp | 75 forStmt(hasLoopInit(declStmt(forEach(varDecl().bind("loopVar"))))), in registerMatchers() 87 varDecl(unless(anyOf(hasParent(declStmt(hasParent(forStmt()))), in registerMatchers()
|
| H A D | RedundantControlFlowCheck.cpp | 41 mapAnyOf(forStmt, cxxForRangeStmt, whileStmt, doStmt) in registerMatchers()
|
| H A D | MisleadingIndentationCheck.cpp | 111 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt())))) in registerMatchers()
|
| H A D | BracesAroundStatementsCheck.cpp | 111 Finder->addMatcher(forStmt().bind("for"), this); in registerMatchers()
|
| H A D | ContainerSizeEmptyCheck.cpp | 67 mapAnyOf(ifStmt, doStmt, whileStmt, forStmt, in AST_MATCHER()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/ |
| H A D | FloatLoopCounter.cpp | 21 forStmt(hasIncrement(expr(hasType(realFloatingPointType())))).bind("for"), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | AvoidGotoCheck.cpp | 32 auto Loop = mapAnyOf(forStmt, cxxForRangeStmt, whileStmt, doStmt); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | InefficientStringConcatenationCheck.cpp | 62 whileStmt(), forStmt())))), in registerMatchers()
|
| H A D | UnnecessaryValueParamCheck.cpp | 48 unless(hasAncestor(stmt(anyOf(forStmt(), cxxForRangeStmt(), in hasLoopStmtAncestor()
|
| H A D | InefficientVectorOperationCheck.cpp | 131 forStmt( in addMatcher()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersInternalTest.cpp | 101 crashTestNodeDump(forStmt(), {}, "ForStmt : <input.cc:1:14, col:21>", 104 forStmt(hasLoopInit(declStmt(hasSingleDecl(
|
| H A D | ASTMatchersTraversalTest.cpp | 2014 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 D | ASTMatchersNodeTest.cpp | 1143 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 D | LibASTMatchersTutorial.rst | 229 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 D | LoopConvertCheck.cpp | 113 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 D | UnrollLoopsCheck.cpp | 34 const auto AnyLoop = anyOf(forStmt(), whileStmt(), doStmt(), CXXForRangeLoop); in registerMatchers()
|
| H A D | IdDependentBackwardBranchCheck.cpp | 74 Finder->addMatcher(stmt(anyOf(forStmt(hasCondition(CondExpr)), in registerMatchers()
|