| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.zip/ |
| H A D | range.concept.compile.pass.cpp | 29 using View = decltype(v); in testConceptPair() typedef 38 using View = decltype(v); in testConceptPair() typedef 47 using View = decltype(v); in testConceptPair() typedef 56 using View = decltype(v); in testConceptPair() typedef 65 using View = decltype(v); in testConceptPair() typedef 74 using View = decltype(v); in testConceptPair() typedef 83 using View = decltype(v); in testConceptPair() typedef 92 using View = decltype(v); in testConceptPair() typedef 101 using View = decltype(v); in testConceptPair() typedef 110 using View = decltype(v); in testConceptPair() typedef [all …]
|
| H A D | begin.pass.cpp | 73 using View = decltype(v); in test() typedef 74 static_assert(HasOnlyConstBegin<View>); in test() 75 static_assert(!HasOnlyNonConstBegin<View>); in test() 76 static_assert(!HasConstAndNonConstBegin<View>); in test() 88 using View = decltype(v); in test() typedef 89 static_assert(!HasOnlyConstBegin<View>); in test() 90 static_assert(!HasOnlyNonConstBegin<View>); in test() 91 static_assert(HasConstAndNonConstBegin<View>); in test() 97 static_assert(!HasOnlyConstBegin<View>); in test() 98 static_assert(HasOnlyNonConstBegin<View>); in test() [all …]
|
| H A D | size.pass.cpp | 25 struct View : std::ranges::view_base { struct 27 constexpr View(std::size_t s) : size_(s) {} in View() function 52 std::ranges::zip_view v(View(8)); in test() argument 59 std::ranges::zip_view v(View(2), View(3)); in test() 66 std::ranges::zip_view v(std::views::iota(0, 500), View(3)); in test() 73 std::ranges::zip_view v(SizedNonConst(2), View(3)); in test()
|
| H A D | ctad.compile.pass.cpp | 24 struct View : std::ranges::view_base { struct 33 static_assert(std::is_same_v<decltype(std::ranges::zip_view(Container{}, View{})), in testCTAD() 34 std::ranges::zip_view<std::ranges::owning_view<Container>, View>>); in testCTAD() 38 decltype(std::ranges::zip_view(Container{}, View{}, c)), in testCTAD() 39 …std::ranges::zip_view<std::ranges::owning_view<Container>, View, std::ranges::ref_view<Container>>… in testCTAD()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/ |
| H A D | constraints.compile.pass.cpp | 30 template <class View, class Pattern> 38 using View = ForwardView; typedef 42 static_assert( std::ranges::view<View>); 53 using View = InputView; typedef 87 using View = NonInputView; typedef 102 using View = ForwardRange; typedef 117 using View = ForwardView; typedef 138 using View = ForwardView; typedef 153 using View = InputView; typedef 176 using View = InputView; typedef [all …]
|
| H A D | base.pass.cpp | 58 template <class View> 59 concept CanCallBase = requires(View v) { std::forward<View>(v).base(); }; 67 using View = ViewWithInitTracking; in test() typedef 73 View str{"abc def"}; in test() 76 std::same_as<View> decltype(auto) result = v.base(); in test() 78 assert(result.initialized_by == View::InitializedBy::Copy); in test() 83 View str{"abc def"}; in test() 86 std::same_as<View> decltype(auto) result = v.base(); in test() 88 assert(result.initialized_by == View::InitializedBy::Copy); in test() 93 View str{"abc def"}; in test() [all …]
|
| H A D | ctor.view.pass.cpp | 66 using View = ViewWithCounting; in test() typedef 72 View view(view_copied, view_moved); in test() 75 std::ranges::lazy_split_view<View, Pattern> v(view, pattern); in test() 85 std::ranges::lazy_split_view<View, Pattern> v( in test() 86 View(view_copied, view_moved), Pattern(pattern_copied, pattern_moved)); in test()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/ |
| H A D | constraints.compile.pass.cpp | 25 template <class View, class Pred> 32 struct View : std::ranges::view_base { struct 47 static_assert( std::ranges::view<View>); 54 struct View : std::ranges::view_base { struct 62 static_assert( std::ranges::view<View>); 69 struct View { struct 77 static_assert(!std::ranges::view<View>); 84 struct View : std::ranges::view_base { struct 92 static_assert( std::ranges::view<View>); 99 struct View : std::ranges::view_base { struct [all …]
|
| H A D | ctor.default.pass.cpp | 60 using View = std::ranges::filter_view<DefaultConstructibleView, DefaultConstructiblePredicate>; in test() typedef 61 View view; in test() 71 using View = std::ranges::filter_view<DefaultConstructibleView, DefaultConstructiblePredicate>; in test() typedef 72 View view = {}; in test() 91 … using View = std::ranges::filter_view<DefaultConstructibleView, DefaultConstructiblePredicate>; in test() typedef 92 static_assert(!noexcept(View())); in test() 95 using View = std::ranges::filter_view<NoexceptView, NoexceptPredicate>; in test() typedef 96 static_assert(noexcept(View())); in test()
|
| H A D | ctad.pass.cpp | 21 struct View : std::ranges::view_base { struct 22 View() = default; 26 static_assert(std::ranges::view<View>); 42 View v; in test() 45 static_assert(std::is_same_v<decltype(view), std::ranges::filter_view<View, Pred>>); in test()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/iterator/ |
| H A D | deref.pass.cpp | 22 using View = std::ranges::transform_view<MoveOnlyView, PlusOne>; in main() typedef 23 View transformView(MoveOnlyView{buff}, PlusOne{}); in main() 25 ASSERT_NOT_NOEXCEPT(*std::declval<std::ranges::iterator_t<View>>()); in main() 26 ASSERT_SAME_TYPE(int, decltype(*std::declval<View>().begin())); in main() 31 View transformView(MoveOnlyView{buff}, PlusOneMutable{}); in main() 34 ASSERT_SAME_TYPE(int, decltype(*std::declval<View>().begin())); in main() 39 View transformView(MoveOnlyView{buff}, PlusOneNoexcept{}); in main() 42 ASSERT_SAME_TYPE(int, decltype(*std::declval<View>().begin())); in main() 47 View transformView(MoveOnlyView{buff}, Increment{}); in main() 50 ASSERT_SAME_TYPE(int&, decltype(*std::declval<View>().begin())); in main() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | for-range-copy.cpp | 30 struct View { struct 31 View() = default; 57 for (const S &S1 : View<Iterator<S>>()) { in negativeConstReference() argument 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() 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 | 16 struct View { struct 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() 145 for (auto Q : View<Iterator<Type>>()) { in negativeQualified() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.req/range.view/ |
| H A D | view.subsumption.compile.pass.cpp | 21 struct View : std::ranges::view_base { struct 22 View() = default; 23 View(View&&) = default; 24 View& operator=(View&&) = default; 25 friend int* begin(View&); 26 friend int* begin(View const&); 27 friend int* end(View&); 28 friend int* end(View const&); 36 static_assert(test<View>()); 44 static_assert(test<View>());
|
| H A D | view.compile.pass.cpp | 80 struct View : std::ranges::view_base { struct 81 View() = default; 82 View(View&&) = default; 83 View& operator=(View&&) = default; 84 friend int* begin(View&); 85 friend int* begin(View const&); 86 friend int* end(View&); 87 friend int* end(View const&); 89 static_assert(std::ranges::range<View>); 90 static_assert(std::movable<View>); [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.all/ |
| H A D | all_t.compile.pass.cpp | 19 struct View : std::ranges::view_base { struct 42 ASSERT_SAME_TYPE(std::views::all_t<View>, View); 43 ASSERT_SAME_TYPE(std::views::all_t<View&>, View); 44 ASSERT_SAME_TYPE(std::views::all_t<View&&>, View); 45 ASSERT_SAME_TYPE(std::views::all_t<const View>, View); 46 ASSERT_SAME_TYPE(std::views::all_t<const View&>, View); 47 ASSERT_SAME_TYPE(std::views::all_t<const View&&>, View);
|
| H A D | all.pass.cpp | 27 struct View : std::ranges::view_base { struct 29 explicit View() noexcept(IsNoexcept) = default; argument 30 constexpr explicit View(int start) : start_(start) {} in View() function 31 View(View&&) noexcept(IsNoexcept) = default; 32 View& operator=(View&&) noexcept(IsNoexcept) = default; 36 static_assert(std::ranges::view<View<true>>); argument 37 static_assert(std::ranges::view<View<false>>); 86 template <class View, class T> 87 concept CanBePiped = requires (View&& view, T&& t) { 93 ASSERT_SAME_TYPE(decltype(std::views::all(View<true>())), View<true>); in test() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | SourceCoverageView.h | 32 std::unique_ptr<SourceCoverageView> View; member 35 std::unique_ptr<SourceCoverageView> View) in ExpansionView() 36 : Region(Region), View(std::move(View)) {} in ExpansionView() 38 : Region(std::move(RHS.Region)), View(std::move(RHS.View)) {} in ExpansionView() 41 View = std::move(RHS.View); 58 std::unique_ptr<SourceCoverageView> View; member 61 std::unique_ptr<SourceCoverageView> View) in InstantiationView() 62 : FunctionName(FunctionName), Line(Line), View(std::move(View)) {} in InstantiationView() 73 std::unique_ptr<SourceCoverageView> View; member 77 std::unique_ptr<SourceCoverageView> View) in BranchView() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.drop/ |
| H A D | general.pass.cpp | 36 template<std::ranges::view View> 37 bool orderedFibonacci(View v, int n = 1) { in orderedFibonacci() 47 template<std::ranges::view View> 48 std::ranges::view auto makeEven(View v) { in makeEven() 52 template<std::ranges::view View, class T> 53 int indexOf(View v, T element) { in indexOf() 63 template<std::ranges::view View, class T> 64 std::ranges::view auto removeBefore(View v, T element) { in removeBefore() 66 return View(out.begin(), out.end()); in removeBefore()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/range.lazy.split.inner/ |
| H A D | iter_move.pass.cpp | 62 struct View : std::ranges::view_base { struct 67 constexpr View() = default; 68 constexpr View(int& iter_move_invocations) : iter_moves(&iter_move_invocations) { in View() function 125 adl::View<> input(iter_move_invocations); in test() 126 std::ranges::lazy_split_view<adl::View<>, adl::View<>> v(input, adl::View<>()); in test() 138 using ThrowingSplitView = std::ranges::lazy_split_view<adl::View<false>, adl::View<false>>; in test() 146 using NoexceptSplitView = std::ranges::lazy_split_view<adl::View<true>, adl::View<true>>; in test()
|
| H A D | iter_swap.pass.cpp | 64 struct View : std::ranges::view_base { struct 67 constexpr View() = default; 68 constexpr View(int& iter_swap_invocations) : iter_swaps(&iter_swap_invocations) { in View() function 183 adl::View<> input(iter_swap_invocations); in test() 184 std::ranges::lazy_split_view<adl::View<>, adl::View<>> v(input, adl::View<>()); in test() 195 using ThrowingSplitView = std::ranges::lazy_split_view<adl::View<false>, adl::View<false>>; in test() 205 using NoexceptSplitView = std::ranges::lazy_split_view<adl::View<true>, adl::View<true>>; in test()
|
| /llvm-project-15.0.7/llvm/lib/MCA/ |
| H A D | CustomBehaviour.cpp | 27 std::vector<std::unique_ptr<View>> 30 return std::vector<std::unique_ptr<View>>(); in getStartViews() 33 std::vector<std::unique_ptr<View>> 36 return std::vector<std::unique_ptr<View>>(); in getPostInstrInfoViews() 39 std::vector<std::unique_ptr<View>> 42 return std::vector<std::unique_ptr<View>>(); in getEndViews()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.join.view/ |
| H A D | ctad.compile.pass.cpp | 23 struct View : std::ranges::view_base { struct 41 View* begin() const; 42 View* end() const; 46 View v; in testCTAD() 52 std::ranges::join_view<View> in testCTAD() 56 std::ranges::join_view<View> in testCTAD()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCTargetOptionsCommandFlags.cpp | 21 static cl::opt<TY> *NAME##View; \ 23 assert(NAME##View && "RegisterMCTargetOptionsFlags not created."); \ 24 return *NAME##View; \ 30 if (NAME##View->getNumOccurrences()) { \ 31 TY res = *NAME##View; \ 52 NAME##View = std::addressof(NAME); \ in MCOPT_EXP()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/ |
| H A D | iter_swap.pass.cpp | 38 using View = minimal_view<Iterator, Sentinel>; in test() typedef 39 using FilterView = std::ranges::filter_view<View, IsEven>; in test() 43 View view{Iterator(begin), Sentinel(Iterator(end))}; in test() 77 using View = minimal_view<Iterator, Iterator>; in tests() typedef 78 using FilterView = std::ranges::filter_view<View, IsEven>; in tests()
|