| /llvm-project-15.0.7/libcxx/test/libcxx/algorithms/ |
| H A D | robust_against_cpp20_hostile_iterators.compile.pass.cpp | 102 (void) std::equal(it, it, it, it); in test() 107 (void) std::find_end(it, it, it, it); in test() 120 (void) std::includes(it, it, it, it); in test() 147 (void) std::merge(it, it, it, it, it); in test() 148 (void) std::merge(it, it, it, it, it, pred); in test() 190 (void) std::search(it, it, it, it); in test() 195 (void) std::set_difference(it, it, it, it, it); in test() 196 (void) std::set_difference(it, it, it, it, it, pred); in test() 197 (void) std::set_intersection(it, it, it, it, it); in test() 201 (void) std::set_union(it, it, it, it, it); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.zip/iterator/ |
| H A D | increment.pass.cpp | 36 auto it = v.begin(); in test() local 45 auto& it_ref = ++it; in test() 53 auto original = it; in test() 54 auto copy = it++; in test() 66 auto it = v.begin(); in test() local 72 auto& it_ref = ++it; in test() 77 auto original = it; in test() 78 auto copy = it++; in test() 99 auto original = it; in test() 100 auto copy = it++; in test() [all …]
|
| H A D | decrement.pass.cpp | 23 concept canDecrement = requires(Iter it) { --it; } || requires(Iter it) { it--; }; 38 auto it = v.end(); in test() local 42 auto& it_ref = --it; in test() 43 assert(&it_ref == &it); in test() 50 it--; in test() 61 auto it = v.begin(); in test() local 64 ++it; in test() 65 ++it; in test() 68 auto& it_ref = --it; in test() 69 assert(&it_ref == &it); in test() [all …]
|
| H A D | subscript.pass.cpp | 26 auto it = v.begin(); in test() local 27 assert(it[0] == *it); in test() 28 assert(it[2] == *(it + 2)); in test() 29 assert(it[4] == *(it + 4)); in test() 31 static_assert(std::is_same_v<decltype(it[2]), std::pair<int&, int>>); in test() 37 auto it = v.begin(); in test() local 38 assert(it[0] == *it); in test() 39 assert(it[2] == *(it + 2)); in test() 40 assert(it[4] == *(it + 4)); in test() 42 static_assert(std::is_same_v<decltype(it[2]), std::pair<int&, int&>>); in test() [all …]
|
| H A D | deref.pass.cpp | 27 auto it = v.begin(); in test() local 28 assert(&(std::get<0>(*it)) == &(a[0])); in test() 35 const auto it = v.begin(); in test() local 36 assert(&(std::get<0>(*it)) == &(a[0])); in test() 42 auto it = v.begin(); in test() local 43 auto [x, y] = *it; in test() 57 auto it = v.begin(); in test() local 58 assert(&(std::get<0>(*it)) == &(a[0])); in test() 59 assert(&(std::get<1>(*it)) == &(b[0])); in test() 60 assert(std::get<2>(*it) == 0); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/ |
| H A D | iterator.rel_ops.compile.pass.cpp | 47 (void)(it == it); in test_eq() 48 (void)(it != it); in test_eq() 49 (void)(it == cit); in test_eq() 59 (void)(it < it); in test_lt() 60 (void)(it <= it); in test_lt() 61 (void)(it > it); in test_lt() 62 (void)(it >= it); in test_lt() 78 (void)(it - it); in test_lt() 123 test_eq(it, it); in test_directory_iterators() 140 test_eq(it, it); in test_span() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ |
| H A D | increment.pass.cpp | 173 while (it != endIt && it->path() != permDeniedDir) in TEST_CASE() 174 ++it; in TEST_CASE() 187 while (it != endIt && it->path() != permDeniedDir) in TEST_CASE() 188 ++it; in TEST_CASE() 204 ++it; in TEST_CASE() 276 while (!ec && it != endIt && *it != nestedDir) { in TEST_CASE() 281 return it; in TEST_CASE() 363 while (!ec && it != endIt && *it != symDir) { in TEST_CASE() 368 return it; in TEST_CASE() 446 while (!ec && it != EndIt && *it != nestedDir) { in TEST_CASE() [all …]
|
| H A D | recursion_pending.pass.cpp | 56 it = rec_pending_it; in TEST_CASE() 90 it = std::move(it_cp); in TEST_CASE() 110 ++it; in TEST_CASE() 118 it++; in TEST_CASE() 127 it.increment(ec); in TEST_CASE() 142 TEST_REQUIRE(it != endIt); in TEST_CASE() 144 while (it.depth() == 0) { in TEST_CASE() 146 ++it; in TEST_CASE() 147 TEST_REQUIRE(it != endIt); in TEST_CASE() 151 it.pop(); in TEST_CASE() [all …]
|
| H A D | copy_assign.pass.cpp | 42 TEST_ASSERT(it != endIt); in TEST_SUITE() 43 while (it.depth() != 1) { in TEST_SUITE() 44 ++it; in TEST_SUITE() 49 return it; in TEST_SUITE() 65 TEST_ASSERT(it != endIt); in createDifferentInterestingIterator() 67 ++it; in createDifferentInterestingIterator() 71 return it; in createDifferentInterestingIterator() 114 const path entry = *it; in TEST_CASE() 123 it2 = it; in TEST_CASE() 145 TEST_CHECK(it != it2); in TEST_CASE() [all …]
|
| H A D | move_assign.pass.cpp | 46 TEST_ASSERT(it != endIt); in TEST_SUITE() 47 while (it.depth() != 1) { in TEST_SUITE() 48 ++it; in TEST_SUITE() 53 return it; in TEST_SUITE() 70 ++it; in createDifferentInterestingIterator() 74 return it; in createDifferentInterestingIterator() 123 const path entry = *it; in TEST_CASE() 133 it2 = std::move(it); in TEST_CASE() 139 TEST_CHECK(it == endIt || it == it2); in TEST_CASE() 156 TEST_CHECK(it != it2); in TEST_CASE() [all …]
|
| H A D | pop.pass.cpp | 32 recursive_directory_iterator it{}; ((void)it); in TEST_CASE() local 34 ASSERT_NOT_NOEXCEPT(it.pop()); in TEST_CASE() 53 TEST_REQUIRE(it != endIt); in TEST_CASE() 54 TEST_CHECK(it.depth() == 0); in TEST_CASE() 56 while (it.depth() != 2) { in TEST_CASE() 57 if (it.depth() == 0) in TEST_CASE() 61 ++it; in TEST_CASE() 62 TEST_REQUIRE(it != endIt); in TEST_CASE() 67 it.pop(set_ec); in TEST_CASE() 70 if (it == endIt) { in TEST_CASE() [all …]
|
| H A D | copy.pass.cpp | 41 TEST_CHECK(it == endIt); in TEST_CASE() 57 TEST_REQUIRE(it != endIt); in TEST_CASE() 58 while (it.depth() == 0) { in TEST_CASE() 59 ++it; in TEST_CASE() 60 TEST_REQUIRE(it != endIt); in TEST_CASE() 62 it.disable_recursion_pending(); in TEST_CASE() 63 TEST_CHECK(it.options() == opts); in TEST_CASE() 64 TEST_CHECK(it.depth() == 1); in TEST_CASE() 66 const path entry = *it; in TEST_CASE() 72 TEST_REQUIRE(it2 == it); in TEST_CASE() [all …]
|
| H A D | ctor.pass.cpp | 107 RDI it(testDir); in TEST_CASE() local 119 RDI it(testDir, ec); in TEST_CASE() local 121 TEST_CHECK(it == RDI{}); in TEST_CASE() 158 RDI it(testFile, ec); in TEST_CASE() local 181 RDI it(testDir, ec); in TEST_CASE() local 186 RDI it(testDir); in TEST_CASE() local 201 RDI it(testDir, ec); in TEST_CASE() local 207 RDI it(testDir); in TEST_CASE() local 220 RDI it(testFile, ec); in TEST_CASE() local 259 RDI it(goodDir); in TEST_CASE() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/ |
| H A D | increment.pass.cpp | 67 ++it; in test() 77 ++it; in test() 88 ++it; assert(base(it.base()) == array.begin() + 4); in test() 89 ++it; assert(base(it.base()) == array.begin() + 5); in test() 90 ++it; assert(base(it.base()) == array.begin() + 8); in test() 91 ++it; assert(base(it.base()) == array.end()); in test() 102 ++it; in test() 116 ++it; in test() 117 it++; in test() 129 it++; assert(base(it.base()) == array.begin() + 4); in test() [all …]
|
| H A D | decrement.pass.cpp | 62 assert(&result == &it); in test() 77 --it; in test() 86 ++it; in test() 87 --it; assert(base(it.base()) == array.begin() + 1); in test() 88 ++it; ++it; in test() 89 --it; assert(base(it.base()) == array.begin() + 4); in test() 90 ++it; ++it; in test() 91 --it; assert(base(it.base()) == array.begin() + 5); in test() 92 ++it; ++it; in test() 93 --it; assert(base(it.base()) == array.begin() + 8); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/containers/views/views.span/ |
| H A D | debug.iterator-indexing.pass.cpp | 29 auto it = span.end(); in main() local 33 auto it = span.end(); in main() local 37 auto it = span.begin(); in main() local 47 auto it = span.end(); in main() local 51 auto it = span.end(); in main() local 55 auto it = span.begin(); in main() local 65 auto it = span.rend(); in main() local 69 auto it = span.rend(); in main() local 73 auto it = span.rbegin(); in main() local 83 auto it = span.rend(); in main() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/iterators.common/ |
| H A D | iter_move.pass.cpp | 44 CommonIt it = CommonIt(It(a)); in test() local 49 assert(iter_move(it) == 1); in test() 51 ++it; in test() 52 assert(iter_move(it) == 2); in test() 59 CommonIt it = CommonIt(It(a)); in test() local 64 assert(iter_move(it) == 1); in test() 66 ++it; in test() 67 assert(iter_move(it) == 2); in test() 73 CommonIt it = CommonIt(It()); in test() local 78 assert(iter_move(it) == 42); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/ |
| H A D | ctor.pass.cpp | 73 TEST_CHECK(it == endIt); in TEST_CASE() 171 TEST_CHECK(it == endIt); in TEST_CASE() 175 TEST_CHECK(it == endIt); in TEST_CASE() 191 TEST_CHECK(it != endIt); in TEST_CASE() 196 TEST_CHECK(it != endIt); in TEST_CASE() 210 TEST_CHECK(it == endIt); in TEST_CASE() 225 TEST_CHECK(it == endIt); in TEST_CASE() 251 TEST_CHECK(it != endIt); in TEST_CASE() 252 path const& entry = *it; in TEST_CASE() 260 TEST_CHECK(it != endIt); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/clang/test/FixIt/ |
| H A D | fixit-availability.mm | 10 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (@available(macOS 10.12, *)) {\n " 13 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (@available(macOS 10.12, *)) {\n " 16 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (@available(macOS 10.12, *)) {\n " 20 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:5-[[@LINE-1]]:5}:"if (@available(macOS 10.12, *)) {\n " 24 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (@available(macOS 10.12, *)) {\n " 27 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (@available(macOS 10.12, *)) {\n " 61 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:3-[[@LINE-1]]:3}:"if (@available(macOS 10.12, *)) {\n " 129 // CHECK: fix-it:{{.*}}:{[[@LINE-2]]:1-[[@LINE-2]]:1}:"API_AVAILABLE(macos(10.12))\n" 132 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:22-[[@LINE-1]]:22}:" API_AVAILABLE(macos(10.12))" 136 // CHECK: fix-it:{{.*}}:{[[@LINE-1]]:1-[[@LINE-1]]:1}:"API_AVAILABLE(macos(10.12))\n" [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/ |
| H A D | base.pass.cpp | 23 auto it = tv.begin(); in test() local 24 using It = decltype(it); in test() 26 ASSERT_SAME_TYPE(decltype(static_cast<It&&>(it).base()), int*); in test() 29 ASSERT_NOEXCEPT(it.base()); in test() 30 assert(base(it.base()) == globalBuff); in test() 31 assert(base(std::move(it).base()) == globalBuff); in test() 36 auto it = tv.begin(); in test() local 37 using It = decltype(it); in test() 42 ASSERT_NOEXCEPT(it.base()); in test() 43 assert(base(it.base()) == globalBuff); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/re/re.alg/re.alg.search/ |
| H A D | backup.pass.cpp | 34 assert(it->position(0) == 0); in main() 35 assert(it->length(0) == 1); in main() 37 ++it; in main() 39 assert(it->length(0) == 1); in main() 41 ++it; in main() 42 assert(it == end); in main() 54 assert(it->length(0) == 1); in main() 56 ++it; in main() 58 assert(it->length(0) == 1); in main() 60 ++it; in main() [all …]
|
| /llvm-project-15.0.7/clang/tools/scan-build-py/lib/libear/ |
| H A D | ear.c | 437 for (size_t it = 0; it < argc; ++it) { in bear_report_call() local 455 for (size_t it = 0; it < ENV_SIZE; ++it) { in bear_capture_env_t() local 466 for (size_t it = 0; it < ENV_SIZE; ++it) { in bear_reset_env_t() local 468 setenv(env_names[it], (*env)[it], 1); in bear_reset_env_t() 477 for (size_t it = 0; it < ENV_SIZE; ++it) { in bear_release_env_t() local 486 for (size_t it = 0; it < ENV_SIZE && (*env)[it]; ++it) in bear_update_environment() local 496 for (; (it) && (*it); ++it) { in bear_update_environ() 514 if (it && *it) { in bear_update_environ() 536 for (char const *it = arg; it; it = va_arg(*args, char const *)) { in bear_strings_build() local 595 for (char const *const *it = in; (it) && (*it); ++it) in bear_strings_length() local [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | fold-init-type.cpp | 48 FloatIterator it; in accumulatePositive2() local 49 return std::accumulate(it, it, 0); in accumulatePositive2() 60 TypedefTemplateIterator<unsigned> it; in accumulatePositive4() local 61 return std::accumulate(it, it, 0); in accumulatePositive4() 66 UsingTemplateIterator<unsigned> it; in accumulatePositive5() local 67 return std::accumulate(it, it, 0); in accumulatePositive5() 73 return std::accumulate(it, it, 0); in accumulatePositive6() 78 TypedeffedIterator it; in accumulatePositive7() local 79 return std::accumulate(it, it, 0); in accumulatePositive7() 85 return std::accumulate(it, it, 0); in accumulatePositive8() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/ |
| H A D | begin.pass.cpp | 69 auto it = view.begin(); in general_tests() local 71 assert(it == view.end()); in general_tests() 80 auto it = view.begin(); in general_tests() local 87 auto it = view.begin(); in general_tests() local 99 auto it = view.begin(); in general_tests() local 106 auto it = view.begin(); in general_tests() local 113 auto it = view.begin(); in general_tests() local 125 auto it = view.begin(); in general_tests() local 156 auto it = view.begin(); in general_tests() local 165 auto it = view.begin(); in general_tests() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/ |
| H A D | begin.pass.cpp | 41 auto it = v.begin(); in test() local 43 static_assert(std::is_same_v<decltype(*(*it).begin()), const char&>); in test() 48 auto it = cv.begin(); in test() local 67 auto it = v.begin(); in test() local 69 static_assert(std::is_same_v<decltype(*(*it).begin()), char&>); in test() 74 auto it = cv.begin(); in test() local 91 auto it = v.begin(); in test() local 111 auto it = v.begin(); in test() local 118 auto it = cv.begin(); in test() local 134 auto it = v.begin(); in test() local [all …]
|