Home
last modified time | relevance | path

Searched refs:whileStmt (Results 1 – 24 of 24) sorted by relevance

/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.cpp153 auto UnusedInWhileStmt = whileStmt(hasBody(MatchedCallExpr)); in registerMatchers()
H A DSuspiciousSemicolonCheck.cpp27 whileStmt(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 DInfiniteLoopCheck.cpp156 Finder->addMatcher(mapAnyOf(whileStmt, doStmt, forStmt) 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.cpp49 whileStmt(), doStmt())))))))), in hasLoopStmtAncestor()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
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.cpp109 Finder->addMatcher(whileStmt().bind("while"), this); in registerMatchers()
H A DContainerSizeEmptyCheck.cpp67 mapAnyOf(ifStmt, doStmt, whileStmt, forStmt, in AST_MATCHER()
H A DImplicitBoolConversionCheck.cpp290 stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DPreferIsaOrDynCastInConditionalsCheck.cpp58 ifStmt(Any), whileStmt(Any), doStmt(Condition), in registerMatchers()
/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.cpp76 whileStmt(hasCondition(CondExpr)))) in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp1469 EXPECT_TRUE(notMatches("void x() {}", whileStmt())); in TEST_P()
1470 EXPECT_TRUE(matches("void x() { while(1); }", whileStmt())); in TEST_P()
1471 EXPECT_TRUE(notMatches("void x() { do {} while(1); }", whileStmt())); in TEST_P()
H A DASTMatchersTraversalTest.cpp2019 whileStmt(hasCondition(cxxBoolLiteral(equals(true)))); in TEST()
2057 whileStmt(hasBody(compoundStmt())))); in TEST()
4970 forEachDescendant(whileStmt().bind("while"))), in TEST()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp594 REGISTER_MATCHER(whileStmt); in RegistryMaps()
/llvm-project-15.0.7/clang/unittests/AST/
H A DSourceLocationTest.cpp113 whileStmt())); in TEST()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp898 const internal::VariadicDynCastAllOfMatcher<Stmt, WhileStmt> whileStmt; variable
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2167 extern const internal::VariadicDynCastAllOfMatcher<Stmt, WhileStmt> whileStmt;