Home
last modified time | relevance | path

Searched refs:ForRange (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DForRangeCopyCheck.cpp71 const auto *ForRange = Result.Nodes.getNodeAs<CXXForRangeStmt>("forRange"); in check() local
72 handleCopyIsOnlyConstReferenced(*Var, *ForRange, *Result.Context); in check()
102 const VarDecl &LoopVar, const CXXForRangeStmt &ForRange, in handleCopyIsOnlyConstReferenced() argument
116 if (!ExprMutationAnalyzer(*ForRange.getBody(), Context).isMutated(&LoopVar) && in handleCopyIsOnlyConstReferenced()
117 !utils::decl_ref_expr::allDeclRefExprs(LoopVar, *ForRange.getBody(), in handleCopyIsOnlyConstReferenced()
H A DForRangeCopyCheck.h41 const CXXForRangeStmt &ForRange,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DExprSequence.cpp141 } else if (const auto *ForRange = dyn_cast<CXXForRangeStmt>(Parent)) { in getSequenceSuccessor() local
145 if (S == ForRange->getLoopVarStmt()) in getSequenceSuccessor()
146 return ForRange->getBody(); in getSequenceSuccessor()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dconstexpr-function-recovery-crash.cpp94 TEST_EVALUATE(ForRange, for (auto x : !!){}); // expected-error + {{}}
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DReadabilityModuleTest.cpp310 TEST(BracesAroundStatementsCheckTest, ForRange) { in TEST() argument
/llvm-project-15.0.7/lldb/unittests/Utility/
H A DStringListTest.cpp515 TEST(StringListTest, ForRange) { in TEST() argument
/llvm-project-15.0.7/clang/lib/Sema/
H A DTreeTransform.h2453 StmtResult FinishCXXForRangeStmt(Stmt *ForRange, Stmt *Body) { in FinishCXXForRangeStmt() argument
2454 return getSema().FinishCXXForRangeStmt(ForRange, Body); in FinishCXXForRangeStmt()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h5017 StmtResult FinishCXXForRangeStmt(Stmt *ForRange, Stmt *Body);