Home
last modified time | relevance | path

Searched refs:doStmt (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.cpp23 doStmt(hasCondition(ignoringImpCasts( in registerMatchers()
31 doStmt(), switchStmt())) in registerMatchers()
H A DUnusedReturnValueCheck.cpp154 auto UnusedInDoStmt = doStmt(hasBody(MatchedCallExpr)); 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/readability/
H A DRedundantControlFlowCheck.cpp41 mapAnyOf(forStmt, cxxForRangeStmt, whileStmt, doStmt) in registerMatchers()
H A DBracesAroundStatementsCheck.cpp110 Finder->addMatcher(doStmt().bind("do"), 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/llvm/
H A DPreferIsaOrDynCastInConditionalsCheck.cpp58 ifStmt(Any), whileStmt(Any), doStmt(Condition), in registerMatchers()
/llvm-project-15.0.7/flang/lib/Parser/
H A Dparse-tree.cpp73 const NonLabelDoStmt &doStmt{ in GetLoopControl() local
76 std::get<std::optional<LoopControl>>(doStmt.t)}; in GetLoopControl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryValueParamCheck.cpp49 whileStmt(), doStmt())))))))), in hasLoopStmtAncestor()
/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.cpp75 doStmt(hasCondition(CondExpr)), in registerMatchers()
/llvm-project-15.0.7/flang/lib/Lower/
H A DPFTBuilder.cpp500 const auto *doStmt = in rewriteIfGotos() local
502 std::string doName = doStmt ? getConstructName(*doStmt) : std::string{}; in rewriteIfGotos()
557 } else if (doStmt) { in rewriteIfGotos()
873 const auto &doStmt = *doEval.getIf<parser::NonLabelDoStmt>(); in analyzeBranches() local
875 std::get<std::optional<parser::LoopControl>>(doStmt.t); in analyzeBranches()
H A DOpenMP.cpp936 auto *doStmt = doLoop->getIf<Fortran::parser::NonLabelDoStmt>(); in genOMP() local
937 assert(doStmt && "Expected do loop to be in the nested evaluation"); in genOMP()
939 std::get<std::optional<Fortran::parser::LoopControl>>(doStmt->t); in genOMP()
H A DBridge.cpp1087 auto *doStmt = doStmtEval.getIf<Fortran::parser::NonLabelDoStmt>(); in genFIR() local
1089 std::get<std::optional<Fortran::parser::LoopControl>>(doStmt->t); in genFIR()
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dcheck-do-forall.cpp531 auto &doStmt{ in CheckDoConcurrent() local
533 currentStatementSourcePosition_ = doStmt.source; in CheckDoConcurrent()
536 DoConcurrentBodyEnforce doConcurrentBodyEnforce{context_, doStmt.source}; in CheckDoConcurrent()
H A Dcheck-omp-structure.cpp449 const auto &doStmt{std::get<parser::Statement<parser::NonLabelDoStmt>>( in CheckDoWhile() local
451 context_.Say(doStmt.source, in CheckDoWhile()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp1475 EXPECT_TRUE(matches("void x() { do {} while(1); }", doStmt())); in TEST_P()
1476 EXPECT_TRUE(matches("void x() { do ; while(0); }", doStmt())); in TEST_P()
1480 EXPECT_TRUE(notMatches("void x() { while(1) {} }", doStmt())); in TEST_P()
H A DASTMatchersTraversalTest.cpp2059 doStmt(hasBody(compoundStmt())))); in TEST()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp227 REGISTER_MATCHER(doStmt); in RegistryMaps()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp899 const internal::VariadicDynCastAllOfMatcher<Stmt, DoStmt> doStmt; variable
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2177 extern const internal::VariadicDynCastAllOfMatcher<Stmt, DoStmt> doStmt;