Home
last modified time | relevance | path

Searched refs:Iterator (Results 1 – 25 of 241) sorted by relevance

12345678910

/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dfor-range-copy.cpp20 struct Iterator { struct
26 bool operator!=(const Iterator &) { return false; } in operator !=() argument
62 for (const S &S1 : View<Iterator<S>>()) { in negativeConstReference()
80 for (const S S1 : View<Iterator<S>>()) {} in uninstantiated()
85 for (const T t1 : View<Iterator<T>>()) { in uninstantiated()
91 for (const S S2 : View<Iterator<S>>()) {} in instantiated()
95 for (const auto [X, Y] : View<Iterator<Point>>()) {} in instantiated()
99 for (const T T2 : View<Iterator<T>>()) {} in instantiated()
114 instantiatedNegativeTypedefConstReference<View<Iterator<S>>>(); in f()
155 for (auto M : View<Iterator<Mutable>>()) { in negativeVariableIsMutated()
[all …]
H A Dfor-range-copy-allowed-types.cpp6 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()
109 for (auto r : View<Iterator<smart_reference>>()) { in negative_smart_reference()
115 for (auto R : View<Iterator<SmartRef>>()) { in negativeSmartRef()
121 for (auto r : View<Iterator<smart_ref>>()) { in negative_smart_ref()
[all …]
/llvm-project/libcxx/test/libcxx/algorithms/
H A Drobust_against_using_non_transparent_comparators.pass.cpp17 struct Iterator {
34 Iterator& operator++() { in operator ++()
39 Iterator operator++(int) { in operator ++()
40 Iterator tmp = *this; in operator ++()
45 friend bool operator==(Iterator const& a, Iterator const& b) { return a.ptr_ == b.ptr_; } in operator !=()
46 friend bool operator!=(Iterator const& a, Iterator const& b) { return !(a == b); }
50 explicit Iterator(T* ptr) : ptr_(ptr) {}
51 Iterator()
16 struct Iterator { global() struct
33 operator ++Iterator operator ++() argument
38 operator ++Iterator operator ++() argument
49 IteratorIterator Iterator() argument
63 ptr_Iterator main() argument
[all...]
/llvm-project/clang-tools-extra/clangd/index/dex/
H A DIterator.h53 class Iterator {
83 virtual ~Iterator() {} in ~Iterator()
95 const Iterator &Iterator) {
96 return Iterator.dump(OS);
104 Iterator(Kind MyKind = Kind::Other) : MyKind(MyKind) {} in MyKind()
119 std::vector<std::pair<DocID, float>> consume(Iterator &It);
123 inline void populateChildren(std::vector<std::unique_ptr<Iterator>> &) {} in populateChildren() argument
125 void populateChildren(std::vector<std::unique_ptr<Iterator>> &Children, in populateChildren()
126 std::unique_ptr<Iterator> Head, TailT... Tail) { in populateChildren()
144 std::unique_ptr<Iterator>
[all …]
H A DIterator.cpp25 class AndIterator : public Iterator {
27 explicit AndIterator(std::vector<std::unique_ptr<Iterator>> AllChildren) in AndIterator()
28 : Iterator(Kind::And), Children(std::move(AllChildren)) { in AndIterator()
41 llvm::sort(Children, [](const std::unique_ptr<Iterator> &LHS, in AndIterator()
42 const std::unique_ptr<Iterator> &RHS) { in AndIterator()
128 std::vector<std::unique_ptr<Iterator>> Children;
142 class OrIterator : public Iterator {
144 explicit OrIterator(std::vector<std::unique_ptr<Iterator>> AllChildren) in OrIterator()
145 : Iterator(Kind::Or), Children(std::move(AllChildren)) { in OrIterator()
218 std::vector<std::unique_ptr<Iterator>> Children;
[all …]
/llvm-project/openmp/runtime/test/transform/unroll/
H A Dfactor_foreach.cpp36 struct Iterator { struct
40 Iterator(const Reporter *owner, int pos) : owner(owner), pos(pos) {} in Iterator() argument
42 Iterator(const Iterator &that) : owner(that.owner), pos(that.pos) { in Iterator() function
46 Iterator(Iterator &&that) : owner(that.owner), pos(that.pos) { in Iterator() function
50 ~Iterator() { owner->print("iterator dtor"); } in ~Iterator() argument
52 const Iterator &operator=(const Iterator &that) { in operator =() argument
59 const Iterator &operator=(Iterator &&that) { in operator =() argument
66 bool operator==(const Iterator &that) const { in operator ==() argument
71 bool operator!=(const Iterator &that) const { in operator !=() argument
76 Iterator &operator++() { in operator ++() argument
[all …]
H A Dfactor_iterfor.cpp36 struct Iterator { struct
40 Iterator(const Reporter *owner, int pos) : owner(owner), pos(pos) {} in Iterator() function
42 Iterator(const Iterator &that) : owner(that.owner), pos(that.pos) { in Iterator() function
46 Iterator(Iterator &&that) : owner(that.owner), pos(that.pos) { in Iterator() function
50 ~Iterator() { print("iterator dtor"); } in ~Iterator() argument
52 const Iterator &operator=(const Iterator &that) { in operator =() argument
59 const Iterator &operator=(Iterator &&that) { in operator =() argument
66 bool operator==(const Iterator &that) const { in operator ==() argument
71 bool operator!=(const Iterator &that) const { in operator !=() argument
76 Iterator &operator++() { in operator ++() argument
[all …]
H A Dfactor_parallel-wsloop-collapse-foreach.cpp36 struct Iterator { struct
40 Iterator(const Reporter *owner, int pos) : owner(owner), pos(pos) {} in Iterator() argument
42 Iterator(const Iterator &that) : owner(that.owner), pos(that.pos) { in Iterator() function
46 Iterator(Iterator &&that) : owner(that.owner), pos(that.pos) { in Iterator() function
50 ~Iterator() { owner->print("iterator dtor"); } in ~Iterator() argument
52 const Iterator &operator=(const Iterator &that) { in operator =() argument
59 const Iterator &operator=(Iterator &&that) { in operator =() argument
66 bool operator==(const Iterator &that) const { in operator ==() argument
71 bool operator!=(const Iterator &that) const { in operator !=() argument
76 Iterator &operator++() { in operator ++() argument
[all …]
/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/
H A Drotate.pass.cpp79 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 ()()
93 template <typename ExecutionPolicy, typename Iterator, typename Size>
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 ()()
[all …]
/llvm-project/openmp/runtime/test/transform/tile/
H A Diterfor.cpp36 struct Iterator { struct
40 Iterator(const Reporter *owner, int pos) : owner(owner), pos(pos) {} in Iterator() function
42 Iterator(const Iterator &that) : owner(that.owner), pos(that.pos) { in Iterator() argument
46 Iterator(Iterator &&that) : owner(that.owner), pos(that.pos) { in Iterator() function
50 ~Iterator() { owner->print("iterator dtor"); } in ~Iterator() argument
52 const Iterator &operator=(const Iterator &that) { in operator =() argument
59 const Iterator &operator=(Iterator &&that) { in operator =() argument
66 bool operator==(const Iterator &that) const { in operator ==() argument
71 bool operator!=(const Iterator &that) const { in operator !=() argument
76 Iterator &operator++() { in operator ++() argument
[all …]
H A Dparallel-wsloop-collapse-foreach.cpp36 struct Iterator { struct
40 Iterator(const Reporter *owner, int pos) : owner(owner), pos(pos) {} in Iterator() function
42 Iterator(const Iterator &that) : owner(that.owner), pos(that.pos) { in Iterator() argument
46 Iterator(Iterator &&that) : owner(that.owner), pos(that.pos) { in Iterator() argument
50 ~Iterator() { owner->print("iterator dtor"); } in ~Iterator() argument
52 const Iterator &operator=(const Iterator &that) { in operator =() argument
59 const Iterator &operator=(Iterator &&that) { in operator =() argument
66 bool operator==(const Iterator &that) const { in operator ==() argument
71 Iterator &operator++() { in operator ++() argument
77 Iterator operator++(int) { in operator ++() argument
[all …]
H A Dforeach.cpp36 struct Iterator { struct
40 Iterator(const Reporter *owner, int pos) : owner(owner), pos(pos) {} in Iterator() function
42 Iterator(const Iterator &that) : owner(that.owner), pos(that.pos) { in Iterator() argument
46 Iterator(Iterator &&that) : owner(that.owner), pos(that.pos) { in Iterator() function
50 ~Iterator() { owner->print("iterator dtor"); } in ~Iterator() argument
52 const Iterator &operator=(const Iterator &that) { in operator =() argument
59 const Iterator &operator=(Iterator &&that) { in operator =() argument
66 bool operator==(const Iterator &that) const { in operator ==() argument
71 Iterator &operator++() { in operator ++() argument
77 Iterator operator++(int) { in operator ++() argument
[all …]
/llvm-project/pstl/test/std/algorithms/alg.sorting/alg.min.max/
H A Dminmax_element.pass.cpp25 template <typename Policy, typename Iterator>
27 operator()(Policy&& exec, Iterator begin, Iterator end) in operator ()()
29 typedef typename std::iterator_traits<Iterator>::value_type T; in operator ()()
30 const Iterator expect = std::min_element(begin, end); in operator ()()
31 const Iterator result = std::min_element(exec, begin, end); in operator ()()
32 const Iterator result_pred = std::min_element(exec, begin, end, std::less<T>()); in operator ()()
40 template <typename Policy, typename Iterator>
42 operator()(Policy&& exec, Iterator begin, Iterator end) in operator ()()
44 typedef typename std::iterator_traits<Iterator>::value_type T; in operator ()()
45 const Iterator expect = std::max_element(begin, end); in operator ()()
[all …]
/llvm-project/compiler-rt/lib/xray/
H A Dxray_buffer_queue.h80 template <class T> class Iterator {
86 Iterator &operator++() {
94 Iterator operator++(int) {
95 Iterator C = *this;
104 Iterator(BufferRep *Root, size_t O, size_t M) XRAY_NEVER_INSTRUMENT in Iterator() function
115 Iterator() = default;
116 Iterator(const Iterator &) = default;
117 Iterator(Iterator &&) = default;
118 Iterator &operator=(const Iterator &) = default;
119 Iterator &operator=(Iterator &&) = default;
[all …]
H A Dxray_segmented_array.h80 template <class U> class Iterator {
86 Iterator(Segment *IS, uint64_t Off, uint64_t S) XRAY_NEVER_INSTRUMENT in Iterator() function
90 Iterator(const Iterator &) NOEXCEPT XRAY_NEVER_INSTRUMENT = default;
91 Iterator() NOEXCEPT XRAY_NEVER_INSTRUMENT = default;
92 Iterator(Iterator &&) NOEXCEPT XRAY_NEVER_INSTRUMENT = default;
93 Iterator &operator=(const Iterator &) XRAY_NEVER_INSTRUMENT = default;
94 Iterator &operator=(Iterator &&) XRAY_NEVER_INSTRUMENT = default;
95 ~Iterator() XRAY_NEVER_INSTRUMENT = default;
97 Iterator &operator++() XRAY_NEVER_INSTRUMENT {
112 Iterator &operator--() XRAY_NEVER_INSTRUMENT {
[all …]
/llvm-project/pstl/test/std/algorithms/alg.sorting/alg.heap.operations/
H A Dis_heap.pass.cpp40 template <typename Iterator, typename Predicate>
41 …typename std::enable_if<is_same_iterator_category<Iterator, std::random_access_iterator_tag>::valu…
42 operator()(pstl::execution::unsequenced_policy, Iterator first, Iterator last, Predicate pred) in operator ()()
45 template <typename Iterator, typename Predicate>
46 …typename std::enable_if<is_same_iterator_category<Iterator, std::random_access_iterator_tag>::valu…
47 …operator()(pstl::execution::parallel_unsequenced_policy, Iterator first, Iterator last, Predicate … in operator ()()
52 template <typename Policy, typename Iterator, typename Predicate>
53 …typename std::enable_if<is_same_iterator_category<Iterator, std::random_access_iterator_tag>::valu…
54 operator()(Policy&& exec, Iterator first, Iterator last, Predicate pred) in operator ()()
71 Iterator expected = is_heap_until(first, last); in operator ()()
[all …]
/llvm-project/libcxx/test/std/containers/sequences/vector.bool/
H A Dctor_exceptions.pass.cpp43 struct Iterator { global() struct
52 IteratorIterator Iterator() argument
59 operator *Iterator operator ==() argument
63 operator ++Iterator operator ++() argument
68 operator ++Iterator operator ++() argument
/llvm-project/mlir/include/mlir/IR/
H A DVisitors.h135 template <typename Iterator>
140 for (auto &region : Iterator::makeIterable(*op)) { in walk()
143 for (auto &block : Iterator::makeIterable(region)) { in walk()
144 for (auto &nestedOp : Iterator::makeIterable(block)) in walk()
145 walk<Iterator>(&nestedOp, callback, order); in walk()
152 template <typename Iterator>
155 for (auto &region : Iterator::makeIterable(*op)) { in walk()
158 llvm::make_early_inc_range(Iterator::makeIterable(region))) { in walk()
161 for (auto &nestedOp : Iterator::makeIterable(block)) in walk()
162 walk<Iterator>(&nestedOp, callback, order); in walk()
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/use-auto/
H A Dcontainers.h44 template <class Iterator>
48 const_iterator(const Iterator &iter) : iter(iter) {} in const_iterator()
49 const_iterator(const const_iterator<Iterator> &citer) : iter(citer.iter) {} in const_iterator()
51 typedef const typename Iterator::value_type value_type;
52 typedef const typename Iterator::pointer pointer;
53 typedef const typename Iterator::reference reference;
63 bool operator!=(const Iterator &it) const {
66 bool operator!=(const const_iterator<Iterator> &it) const {
71 Iterator iter;
74 template <class Iterator>
[all …]
/llvm-project/libcxx/test/std/iterators/predef.iterators/iterators.common/
H A Darrow.pass.cpp25 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> decltype(auto) result = common.operator->(); in test()
35 std::same_as<Iterator> decltype(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/pstl/test/support/
H A Dutils.h138 template <typename Iterator, typename IteratorTag>
143 typedef typename std::iterator_traits<Iterator>::value_type value_type;
144 typedef typename std::iterator_traits<Iterator>::difference_type difference_type;
145 typedef typename std::iterator_traits<Iterator>::pointer pointer;
146 typedef typename std::iterator_traits<Iterator>::reference reference;
149 Iterator my_iterator;
154 explicit ForwardIterator(Iterator i) : my_iterator(i) {} in ForwardIterator()
156 Iterator operator->() const { return my_iterator; }
180 Iterator
187 template <typename Iterator, typename IteratorTag>
[all …]
/llvm-project/libcxx/test/std/containers/sequences/vector/vector.cons/
H A Dexceptions.pass.cpp67 struct Iterator { global() struct
75 IteratorIterator Iterator() argument
82 operator *Iterator operator ==() argument
86 operator ++Iterator operator ++() argument
91 operator ++Iterator operator ++() argument
/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DCNFFormula.h139 class Iterator {
143 Iterator(CNFFormula *CNF, size_t Idx) : CNF(CNF), Idx(Idx) {} in Iterator() function
146 Iterator(const Iterator &) = default;
147 Iterator &operator=(const Iterator &) = default;
149 Iterator &operator++() {
155 Iterator next() const { in next()
156 Iterator I = *this; in next()
163 friend class Iterator; variable
166 Iterator startOfClause(ClauseID C) { return Iterator(this, ClauseStarts[C]); } in startOfClause()
/llvm-project/llvm/lib/CodeGen/
H A DAllocationOrder.h44 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/libcxx/test/std/utilities/memory/specialized.algorithms/
H A Doverload_compare_iterator.h23 template <class Iterator>
26 std::is_base_of<std::forward_iterator_tag, typename std::iterator_traits<Iterator>::iterator_category>::value,
29 using value_type = typename std::iterator_traits<Iterator>::value_type;
30 using difference_type = typename std::iterator_traits<Iterator>::difference_type;
31 using reference = typename std::iterator_traits<Iterator>::reference;
32 using pointer = typename std::iterator_traits<Iterator>::pointer; in overload_compare_iterator()
37 explicit overload_compare_iterator(Iterator it) : it_(it) {}
66 return static_cast<Iterator const&>(lhs) == rhs;
71 return static_cast<Iterator const&>(lhs) != rhs;
75 Iterator it
[all...]

12345678910