| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | Iterator.h | 53 class Iterator { 83 virtual ~Iterator() {} in ~Iterator() 95 const Iterator &Iterator) { 96 return Iterator.dump(OS); 144 std::unique_ptr<Iterator> 152 std::unique_ptr<Iterator> 157 std::unique_ptr<Iterator> all() const; 160 std::unique_ptr<Iterator> none() const; 166 std::unique_ptr<Iterator> boost(std::unique_ptr<Iterator> Child, 173 std::unique_ptr<Iterator> limit(std::unique_ptr<Iterator> Child, [all …]
|
| H A D | Iterator.cpp | 25 class AndIterator : public Iterator { 364 std::unique_ptr<Iterator> 369 case Iterator::Kind::True: in intersect() 371 case Iterator::Kind::False: in intersect() 373 case Iterator::Kind::And: { in intersect() 394 std::unique_ptr<Iterator> 399 case Iterator::Kind::False: in unionOf() 401 case Iterator::Kind::Or: { in unionOf() 408 case Iterator::Kind::True: in unionOf() 432 std::unique_ptr<Iterator> Corpus::boost(std::unique_ptr<Iterator> Child, in boost() [all …]
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.modifying.operations/ |
| H A D | rotate.pass.cpp | 79 template <typename Iterator, typename Size> 81 …operator()(pstl::execution::unsequenced_policy, Iterator data_b, Iterator data_e, Iterator actual_… in operator ()() 82 Iterator actual_e, Size shift) in operator ()() 85 template <typename Iterator, typename Size> 87 …erator()(pstl::execution::parallel_unsequenced_policy, Iterator data_b, Iterator data_e, Iterator … in operator ()() 88 Iterator actual_e, Size shift) in operator ()() 95 …operator()(ExecutionPolicy&& exec, Iterator data_b, Iterator data_e, Iterator actual_b, Iterator a… in operator ()() 99 using T = typename iterator_traits<Iterator>::value_type; in operator ()() 100 Iterator actual_m = std::next(actual_b, shift); in operator ()() 120 check_move(ExecutionPolicy&&, Iterator b, Iterator e, Size shift) in check_move() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | for-range-copy.cpp | 20 struct Iterator { struct 57 for (const S &S1 : View<Iterator<S>>()) { in negativeConstReference() 75 for (const S S1 : View<Iterator<S>>()) {} in uninstantiated() 80 for (const T t1 : View<Iterator<T>>()) { in uninstantiated() 86 for (const S S2 : View<Iterator<S>>()) {} in instantiated() 90 for (const T T2 : View<Iterator<T>>()) {} in instantiated() 150 for (auto M : View<Iterator<Mutable>>()) { in negativeVariableIsMutated() 197 for (int I : View<Iterator<int>>()) { in negativeCheapToCopy() 204 for (Int I : View<Iterator<Int>>()) { in negativeCheapToCopyTypedef() 271 for (auto _ : View<Iterator<S>>()) { in IgnoreLoopVariableNotUsedInLoopBody() [all …]
|
| H A D | for-range-copy-allowed-types.cpp | 6 struct Iterator { struct 12 bool operator!=(const Iterator &) { return false; } in operator !=() argument 79 for (auto P : View<Iterator<SmartPointer>>()) { in negativeSmartPointer() 85 for (auto p : View<Iterator<smart_pointer>>()) { in negative_smart_pointer() 91 for (auto P : View<Iterator<SmartPtr>>()) { in negativeSmartPtr() 97 for (auto p : View<Iterator<smart_ptr>>()) { in negative_smart_ptr() 103 for (auto R : View<Iterator<SmartReference>>()) { in negativeSmartReference() 115 for (auto R : View<Iterator<SmartRef>>()) { in negativeSmartRef() 121 for (auto r : View<Iterator<smart_ref>>()) { in negative_smart_ref() 127 for (auto O : View<Iterator<OtherType>>()) { in positiveOtherType() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_buffer_queue.h | 86 Iterator &operator++() { 94 Iterator operator++(int) { 95 Iterator C = *this; 115 Iterator() = default; 116 Iterator(const Iterator &) = default; 117 Iterator(Iterator &&) = default; 118 Iterator &operator=(const Iterator &) = default; 119 Iterator &operator=(Iterator &&) = default; 120 ~Iterator() = default; 123 friend bool operator==(const Iterator &L, const Iterator<V> &R) { [all …]
|
| H A D | xray_segmented_array.h | 81 template <class U> class Iterator { 91 Iterator(const Iterator &) NOEXCEPT XRAY_NEVER_INSTRUMENT = default; 93 Iterator(Iterator &&) NOEXCEPT XRAY_NEVER_INSTRUMENT = default; 94 Iterator &operator=(const Iterator &) XRAY_NEVER_INSTRUMENT = default; 95 Iterator &operator=(Iterator &&) XRAY_NEVER_INSTRUMENT = default; 96 ~Iterator() XRAY_NEVER_INSTRUMENT = default; 127 Iterator Copy(*this); 133 Iterator Copy(*this); 628 return Iterator<T>(Head, 0, Size); in begin() 631 return Iterator<T>(Tail, Size, Size); in end() [all …]
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.sorting/alg.min.max/ |
| H A D | minmax_element.pass.cpp | 25 template <typename Policy, typename Iterator> 27 operator()(Policy&& exec, Iterator begin, Iterator end) in operator ()() 40 template <typename Policy, typename Iterator> 42 operator()(Policy&& exec, Iterator begin, Iterator end) in operator ()() 55 template <typename Policy, typename Iterator> 57 operator()(Policy&& exec, Iterator begin, Iterator end) in operator ()() 60 const std::pair<Iterator, Iterator> expect = std::minmax_element(begin, end); in operator ()() 61 const std::pair<Iterator, Iterator> got = std::minmax_element(exec, begin, end); in operator ()() 62 …const std::pair<Iterator, Iterator> got_pred = std::minmax_element(exec, begin, end, std::less<T>(… in operator ()() 166 template <typename Policy, typename Iterator> [all …]
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.sorting/alg.heap.operations/ |
| H A D | is_heap.pass.cpp | 40 template <typename Iterator, typename Predicate> 42 operator()(pstl::execution::unsequenced_policy, Iterator first, Iterator last, Predicate pred) in operator ()() 45 template <typename Iterator, typename Predicate> 47 …operator()(pstl::execution::parallel_unsequenced_policy, Iterator first, Iterator last, Predicate … in operator ()() 52 template <typename Policy, typename Iterator, typename Predicate> 54 operator()(Policy&& exec, Iterator first, Iterator last, Predicate pred) in operator ()() 71 Iterator expected = is_heap_until(first, last); in operator ()() 72 Iterator actual = is_heap_until(exec, first, last); in operator ()() 89 operator()(Policy&&, Iterator, Iterator, Predicate) in operator ()() 124 template <typename Policy, typename Iterator> [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector.bool/ |
| H A D | ctor_exceptions.pass.cpp | 40 struct Iterator { struct 49 Iterator(int i = 0) : i_(i) {} in Iterator() function 56 friend bool operator==(const Iterator& lhs, const Iterator& rhs) { return lhs.i_ == rhs.i_; } in operator ==() argument 58 friend bool operator!=(const Iterator& lhs, const Iterator& rhs) { return lhs.i_ != rhs.i_; } in operator !=() 60 Iterator& operator++() { in operator ++() argument 65 Iterator operator++(int) { in operator ++() argument 92 …std::vector<bool> vec((Iterator<std::input_iterator_tag>()), Iterator<std::input_iterator_tag>(2)); in main() 98 …std::vector<bool> vec((Iterator<std::forward_iterator_tag>()), Iterator<std::forward_iterator_tag>… in main() 112 …std::vector<bool> vec(Iterator<std::input_iterator_tag>(), Iterator<std::input_iterator_tag>(2), a… in main() 119 …std::vector<bool> vec(Iterator<std::forward_iterator_tag>(), Iterator<std::forward_iterator_tag>(2… in main()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/use-auto/ |
| H A D | containers.h | 44 template <class Iterator> 52 typedef const typename Iterator::pointer pointer; 63 bool operator!=(const Iterator &it) const { 71 Iterator iter; 74 template <class Iterator> 78 typedef Iterator iterator; 94 template <class Iterator> 102 typedef typename Iterator::pointer pointer; 114 Iterator iter; 117 template <class Iterator> [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/iterators.common/ |
| H A D | arrow.pass.cpp | 25 auto check = []<class Iterator>() { in test() 27 Iterator iter(buffer); in test() 28 using Common = std::common_iterator<Iterator, sentinel_wrapper<Iterator>>; in test() 31 std::same_as<Iterator> auto result = common.operator->(); in test() 35 std::same_as<Iterator> auto cresult = ccommon.operator->(); in test() 45 auto check = []<class Iterator>() { in test() 47 Iterator iter(buffer); in test() 48 using Common = std::common_iterator<Iterator, sentinel_type<int*>>; in test() 69 auto check = []<class Iterator>() { in test() 71 Iterator iter(buffer); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/ |
| H A D | base.pass.cpp | 25 template <class Iterator, class Sentinel = sentinel_wrapper<Iterator>> 27 using View = minimal_view<Iterator, Sentinel>; in test() 32 View view{Iterator(begin), Sentinel(Iterator(end))}; in test() 41 FilterIterator const iter(view, Iterator(array.begin())); in test() 42 Iterator const& result = iter.base(); in test() 43 ASSERT_SAME_TYPE(Iterator const&, decltype(iter.base())); in test() 50 FilterIterator iter(view, Iterator(array.begin())); in test() 51 Iterator result = std::move(iter).base(); in test() 52 ASSERT_SAME_TYPE(Iterator, decltype(std::move(iter).base())); in test()
|
| H A D | iter_swap.pass.cpp | 35 template <class Iterator, bool IsNoexcept> 37 using Sentinel = sentinel_wrapper<Iterator>; in test() 38 using View = minimal_view<Iterator, Sentinel>; in test() 43 View view{Iterator(begin), Sentinel(Iterator(end))}; in test() 76 using Iterator = int const*; in tests() typedef 77 using View = minimal_view<Iterator, Iterator>; in tests() 80 static_assert(!std::indirectly_swappable<Iterator>); in tests()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector/vector.cons/ |
| H A D | exceptions.pass.cpp | 61 struct Iterator { struct 69 Iterator(int i = 0) : i_(i) {} in Iterator() argument 76 friend bool operator==(const Iterator& lhs, const Iterator& rhs) { return lhs.i_ == rhs.i_; } in operator ==() argument 78 friend bool operator!=(const Iterator& lhs, const Iterator& rhs) { return lhs.i_ != rhs.i_; } in operator !=() 80 Iterator& operator++() { in operator ++() argument 85 Iterator operator++(int) { in operator ++() argument 137 … std::vector<int> vec((Iterator<std::input_iterator_tag>()), Iterator<std::input_iterator_tag>(2)); in main() 143 …std::vector<int> vec((Iterator<std::forward_iterator_tag>()), Iterator<std::forward_iterator_tag>(… in main() 157 …std::vector<int> vec(Iterator<std::input_iterator_tag>(), Iterator<std::input_iterator_tag>(2), al… in main() 164 …std::vector<int> vec(Iterator<std::forward_iterator_tag>(), Iterator<std::forward_iterator_tag>(2)… in main()
|
| /llvm-project-15.0.7/pstl/test/support/ |
| H A D | utils.h | 149 Iterator my_iterator; 180 Iterator 225 fill_data(Iterator first, Iterator last, F f) in fill_data() 699 template <typename Iterator> 704 operator()(Iterator it) in operator() 717 template <typename Iterator> 728 operator()(Iterator it) 739 template <typename Iterator> 740 struct ReverseAdapter<Iterator, std::false_type> : BaseAdapter<Iterator> 756 operator()(Iterator it) [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | AllocationOrder.h | 44 class Iterator final { 49 Iterator(const AllocationOrder &AO, int Pos) : AO(AO), Pos(Pos) {} in Iterator() function 64 Iterator &operator++() { 72 bool operator==(const Iterator &Other) const { 77 bool operator!=(const Iterator &Other) const { return !(*this == Other); } 95 Iterator begin() const { in begin() 96 return Iterator(*this, -(static_cast<int>(Hints.size()))); in begin() 99 Iterator end() const { return Iterator(*this, IterationLimit); } in end() 101 Iterator getOrderLimitEnd(unsigned OrderLimit) const { in getOrderLimitEnd() 105 Iterator Ret(*this, in getOrderLimitEnd()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineInstrBundleIterator.h | 53 template <class Iterator> static Iterator getBundleBegin(Iterator I) { 61 template <class Iterator> static Iterator getBundleFinal(Iterator I) { 69 template <class Iterator> static void increment(Iterator &I) { 74 template <class Iterator> static void decrement(Iterator &I) { 81 template <class Iterator> static Iterator getBundleBegin(Iterator I) { 88 template <class Iterator> static Iterator getBundleFinal(Iterator I) { 95 template <class Iterator> static void increment(Iterator &I) { 100 template <class Iterator> static void decrement(Iterator &I) {
|
| /llvm-project-15.0.7/pstl/test/std/utilities/memory/specialized.algorithms/ |
| H A D | uninitialized_construct.pass.cpp | 25 template <typename T, typename Iterator> 27 IsCheckValueCorrectness(Iterator begin, Iterator end) in IsCheckValueCorrectness() 41 template <typename Policy, typename Iterator> 43 …operator()(Policy&& exec, Iterator begin, Iterator end, size_t n, /*is_trivial<T>=*/std::false_typ… in operator ()() 45 typedef typename std::iterator_traits<Iterator>::value_type T; in operator ()() 72 template <typename Policy, typename Iterator> 74 …operator()(Policy&& exec, Iterator begin, Iterator end, size_t n, /*is_trivial<T>=*/std::true_type) in operator ()() 76 typedef typename std::iterator_traits<Iterator>::value_type T; in operator ()()
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.nonmodifying/ |
| H A D | find_if.pass.cpp | 26 template <typename Iterator, typename Predicate, typename NotPredicate> 28 operator()(pstl::execution::unsequenced_policy, Iterator first, Iterator last, Predicate pred, in operator ()() 32 template <typename Iterator, typename Predicate, typename NotPredicate> 34 …operator()(pstl::execution::parallel_unsequenced_policy, Iterator first, Iterator last, Predicate … in operator ()() 40 template <typename Policy, typename Iterator, typename Predicate, typename NotPredicate> 42 operator()(Policy&& exec, Iterator first, Iterator last, Predicate pred, NotPredicate not_pred) in operator ()() 76 template <typename Policy, typename Iterator> 78 operator()(Policy&& exec, Iterator iter) in operator ()()
|
| H A D | search_n.pass.cpp | 25 template <typename Iterator, typename Size, typename T, typename Predicate> 27 …operator()(pstl::execution::unsequenced_policy, Iterator b, Iterator e, Size count, const T& value… in operator ()() 30 template <typename Iterator, typename Size, typename T, typename Predicate> 32 …operator()(pstl::execution::parallel_unsequenced_policy, Iterator b, Iterator e, Size count, const… in operator ()() 38 …template <typename ExecutionPolicy, typename Iterator, typename Size, typename T, typename Predica… 40 …operator()(ExecutionPolicy&& exec, Iterator b, Iterator e, Size count, const T& value, Predicate p… in operator ()() 87 template <typename Policy, typename Iterator> 89 operator()(Policy&& exec, Iterator iter) in operator ()()
|
| H A D | for_each.pass.cpp | 45 template <typename Policy, typename Iterator, typename Size> 47 …operator()(Policy&& exec, Iterator first, Iterator last, Iterator expected_first, Iterator expecte… in operator ()() 49 typedef typename std::iterator_traits<Iterator>::value_type T; in operator ()() 78 template <typename Policy, typename Iterator> 80 operator()(Policy&& exec, Iterator iter) in operator ()() 83 auto f = [](typename std::iterator_traits<Iterator>::reference x) { x = x + 1; }; in operator ()()
|
| /llvm-project-15.0.7/pstl/test/std/numerics/numeric.ops/ |
| H A D | reduce.pass.cpp | 23 template <typename Policy, typename Iterator, typename T, typename BinaryOp> 25 operator()(Policy&& exec, Iterator first, Iterator last, T init, BinaryOp binary, T expected) in operator ()() 58 template <typename Iterator> 60 …operator()(pstl::execution::parallel_policy, Iterator first, Iterator last, Sum init, Sum expected) in operator ()() 63 template <typename Iterator> 65 …operator()(pstl::execution::parallel_unsequenced_policy, Iterator first, Iterator last, Sum init, … in operator ()() 70 template <typename Policy, typename Iterator> 72 operator()(Policy&& exec, Iterator first, Iterator last, Sum init, Sum expected) in operator ()()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/iterators/bounded_iter/ |
| H A D | types.compile.pass.cpp | 21 struct Iterator { struct 30 using BoundedIter1 = std::__bounded_iter<Iterator>; argument 31 static_assert(std::is_same<BoundedIter1::value_type, Iterator::value_type>::value, ""); 32 static_assert(std::is_same<BoundedIter1::difference_type, Iterator::difference_type>::value, ""); 33 static_assert(std::is_same<BoundedIter1::pointer, Iterator::pointer>::value, ""); 34 static_assert(std::is_same<BoundedIter1::reference, Iterator::reference>::value, ""); 35 static_assert(std::is_same<BoundedIter1::iterator_category, Iterator::iterator_category>::value, ""… 36 static_assert(std::is_same<BoundedIter1::iterator_concept, Iterator::iterator_concept>::value, "");
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
| H A D | tuple.include.ranges.pass.cpp | 21 using Iterator = int*; typedef 30 static_assert(std::sized_sentinel_for<SizedSentinel, Iterator>); 31 using SizedRange = std::ranges::subrange<Iterator, SizedSentinel>; 34 static_assert(!std::sized_sentinel_for<UnsizedSentinel, Iterator>); 35 using UnsizedRange = std::ranges::subrange<Iterator, UnsizedSentinel>; 39 using ThreeElementRange = std::ranges::subrange<Iterator, UnsizedSentinel, std::ranges::subrange_ki… 57 static_assert(test_tuple_element<0, SizedRange, Iterator>()); in main() 59 static_assert(test_tuple_element<0, UnsizedRange, Iterator>()); in main()
|