Home
last modified time | relevance | path

Searched refs:view (Results 1 – 25 of 555) sorted by relevance

12345678910>>...23

/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/
H A Dbegin.pass.cpp69 auto it = view.begin(); in general_tests()
71 assert(it == view.end()); in general_tests()
80 auto it = view.begin(); in general_tests()
87 auto it = view.begin(); in general_tests()
99 auto it = view.begin(); in general_tests()
106 auto it = view.begin(); in general_tests()
113 auto it = view.begin(); in general_tests()
125 auto it = view.begin(); in general_tests()
156 auto it = view.begin(); in general_tests()
165 auto it = view.begin(); in general_tests()
[all …]
H A Dend.pass.cpp51 std::ranges::filter_view view(range, pred); in test() local
60 std::ranges::filter_view view(range, pred); in test() local
61 auto end = view.end(); in test()
69 std::ranges::filter_view view(range, pred); in test() local
70 auto end = view.end(); in test()
79 std::ranges::filter_view view(range, pred); in test() local
80 auto end = view.end(); in test()
90 std::ranges::filter_view view(range, pred); in test() local
91 auto end = view.end(); in test()
101 std::ranges::filter_view view(range, pred); in test() local
[all …]
H A Dctor.view_pred.pass.cpp52 std::ranges::filter_view<Range, Pred> view(range, pred); in test() local
53 auto it = view.begin(), end = view.end(); in test()
65 std::ranges::filter_view<Range, Pred> view = {range, pred}; in test() local
66 auto it = view.begin(), end = view.end(); in test()
79 [[maybe_unused]] std::ranges::filter_view<TrackingRange, Pred> view(std::move(range), pred); in test() local
89 [[maybe_unused]] std::ranges::filter_view<Range, TrackingPred> view(range, std::move(pred)); in test() local
H A Dpred.pass.cpp35 std::ranges::filter_view<Range, Pred> const view(Range{}, pred); in test() local
36 std::same_as<Pred const&> decltype(auto) result = view.pred(); in test()
40 std::same_as<Pred const&> decltype(auto) result2 = view.pred(); in test()
47 std::ranges::filter_view<Range, Pred> view(Range{}, pred); in test() local
48 std::same_as<Pred const&> decltype(auto) result = view.pred(); in test()
52 std::same_as<Pred const&> decltype(auto) result2 = view.pred(); in test()
H A Dctad.pass.cpp26 static_assert(std::ranges::view<View>);
34 static_assert(std::ranges::range<Range> && !std::ranges::view<Range>);
44 std::ranges::filter_view view(v, pred); in test() local
45 static_assert(std::is_same_v<decltype(view), std::ranges::filter_view<View, Pred>>); in test()
52 std::ranges::filter_view view(r, pred); in test() local
53 …static_assert(std::is_same_v<decltype(view), std::ranges::filter_view<std::ranges::ref_view<Range>… in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.reverse/
H A Dadaptor.pass.cpp34 BidirRange view(buf, buf + 3); in test() local
42 BidirRange view(buf, buf + 3); in test() local
59 BidirRange view(buf, buf + 3); in test() local
67 BidirRange view(buf, buf + 3); in test() local
75 BidirRange view(buf, buf + 3); in test() local
93 BidirRange view(buf, buf + 3); in test() local
94 … ReverseSubrange subrange(ReverseIt(std::ranges::end(view)), ReverseIt(std::ranges::begin(view))); in test()
101 BidirRange view(buf, buf + 3); in test() local
102 … ReverseSubrange subrange(ReverseIt(std::ranges::end(view)), ReverseIt(std::ranges::begin(view))); in test()
109 BidirRange view(buf, buf + 3); in test() local
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.common.view/
H A Dend.pass.cpp29 SizedRandomAccessView view{buf, buf + 8}; in test() local
30 std::ranges::common_view<SizedRandomAccessView> common(view); in test()
37 SizedRandomAccessView view{buf, buf + 8}; in test() local
57 SizedForwardView view{buf, buf + 8}; in main() local
58 std::ranges::common_view<SizedForwardView> common(view); in main()
63 CopyableView view{buf, buf + 8}; in main() local
64 std::ranges::common_view<CopyableView> common(view); in main()
66 assert(end == CommonIntIter(std::ranges::end(view))); in main()
71 SizedForwardView view{buf, buf + 8}; in main() local
77 CopyableView view{buf, buf + 8}; in main() local
[all …]
H A Dbegin.pass.cpp42 SizedRandomAccessView view{buf, buf + 8}; in test() local
45 assert(begin == std::ranges::begin(view)); in test()
49 SizedRandomAccessView view{buf, buf + 8}; in test() local
52 assert(begin == std::ranges::begin(view)); in test()
66 SizedForwardView view{buf, buf + 8}; in main() local
70 assert(begin == std::ranges::begin(view)); in main()
72 assert(cbegin == std::ranges::begin(view)); in main()
76 MoveOnlyView view{buf, buf + 8}; in main() local
80 assert(begin == std::ranges::begin(view)); in main()
84 CopyableView view{buf, buf + 8}; in main() local
[all …]
H A Dadaptor.pass.cpp25 concept CanBePiped = requires (View&& view, T&& t) {
26 { std::forward<View>(view) | std::forward<T>(t) };
35 CommonView view(buf, buf + 3); in test() local
36 std::same_as<CommonView> auto result = std::views::common(view); in test()
51 NonCommonView view(buf, buf + 3); in test() local
63 SomeView view(buf, buf + 3); in test() local
64 std::same_as<std::ranges::common_view<SomeView>> auto result = view | std::views::common; in test()
71 SomeView view(buf, buf + 3); in test() local
75 std::same_as<Result> auto result = partial(view); in test()
82 SomeView view(buf, buf + 3); in test() local
[all …]
H A Dbase.pass.cpp23 constexpr bool hasLValueQualifiedBase(auto&& view) { in hasLValueQualifiedBase() argument
24 return requires { view.base(); }; in hasLValueQualifiedBase()
31 CopyableView view{buf, buf + 8}; in test() local
32 std::ranges::common_view<CopyableView> common(view); in test()
42 MoveOnlyView view{buf, buf + 8}; in test() local
43 std::ranges::common_view<MoveOnlyView> common(std::move(view)); in test()
51 CopyableView view{buf, buf + 8}; in test() local
52 const std::ranges::common_view<CopyableView> common(view); in test()
H A Dctor.view.pass.cpp26 MoveOnlyView view{buf, buf + 8}; in test() local
27 std::ranges::common_view<MoveOnlyView> common(std::move(view)); in test()
32 CopyableView const view{buf, buf + 8}; in test() local
33 std::ranges::common_view<CopyableView> const common(view); in test()
47 MoveOnlyView view{buf, buf + 8}; in main() local
48 std::ranges::common_view<MoveOnlyView> const common(std::move(view)); in main()
/llvm-project-15.0.7/clang/tools/scan-view/
H A DCMakeLists.txt1 option(CLANG_INSTALL_SCANVIEW "Install the scan-view tool" ON)
4 scan-view)
24 COMPONENT scan-view)
30 ${CMAKE_BINARY_DIR}/share/scan-view
37 DESTINATION "${CMAKE_INSTALL_DATADIR}/scan-view"
38 COMPONENT scan-view)
41 add_custom_target(scan-view ALL DEPENDS ${Depends})
42 set_target_properties(scan-view PROPERTIES FOLDER "Misc")
45 add_llvm_install_targets("install-scan-view"
46 DEPENDS scan-view
[all …]
/llvm-project-15.0.7/clang-tools-extra/pseudo/tool/
H A DHTMLForest.js144 for (var view = this.parent; view != null;
145 child = view, view = view.parent) {
152 if (view.node.rule) {
188 function selectView(view) { argument
190 selection = view;
191 if (view == old)
199 if (!view)
203 view.renderInfo();
204 view.scrollVisible();
215 if (view == null)
[all …]
/llvm-project-15.0.7/clang/tools/clang-format/
H A Dclang-format-sublime.py31 encoding = self.view.encoding()
38 for region in self.view.sel():
44 '-assume-filename', str(self.view.file_name())])
45 old_viewport_position = self.view.viewport_position()
46 buf = self.view.substr(sublime.Region(0, self.view.size()))
52 self.view.replace(
53 edit, sublime.Region(0, self.view.size()),
55 self.view.sel().clear()
57 self.view.sel().add(region)
59 sublime.set_timeout(lambda: self.view.set_viewport_position(
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/
H A Dctor.default.pass.cpp50 std::ranges::transform_view<DefaultConstructibleView, DefaultConstructibleFunction> view; in test() local
51 assert(view.size() == 3); in test()
52 assert(view[0] == 101); in test()
53 assert(view[1] == 102); in test()
54 assert(view[2] == 103); in test()
58 std::ranges::transform_view<DefaultConstructibleView, DefaultConstructibleFunction> view = {}; in test() local
59 assert(view.size() == 3); in test()
60 assert(view[0] == 101); in test()
61 assert(view[1] == 102); in test()
62 assert(view[2] == 103); in test()
H A Dctor.view_function.pass.cpp38 std::ranges::transform_view<Range, F> view(range, f); in test() local
39 assert(view[0] == 101); in test()
40 assert(view[1] == 102); in test()
42 assert(view[7] == 108); in test()
48 std::ranges::transform_view<Range, F> view = {range, f}; in test() local
49 assert(view[0] == 101); in test()
50 assert(view[1] == 102); in test()
52 assert(view[7] == 108); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/iterator/
H A Dincrement.pass.cpp45 View view{Iterator(begin), Sentinel(Iterator(end))}; in test() local
46 return FilterView(std::move(view), pred); in test()
54 FilterIterator it = view.begin(); in test()
66 FilterIterator it = view.begin(); in test()
76 FilterIterator it = view.begin(); in test()
86 FilterIterator it = view.begin(); in test()
99 auto view = std::ranges::filter_view(std::move(v), pred); in test() local
100 auto it = view.begin(); in test()
115 auto it = view.begin(); in test()
127 FilterIterator it = view.begin(); in test()
[all …]
H A Ddecrement.pass.cpp49 View view{Iterator(begin), Sentinel(Iterator(end))}; in test() local
50 return FilterView(std::move(view), pred); in test()
56 FilterView view = make_filter_view(array.begin(), array.end(), EqualTo{1}); in test() local
57 FilterIterator it = std::ranges::next(view.begin(), view.end()); in test()
69 FilterView view = make_filter_view(array.begin(), array.end(), EqualTo{1}); in test() local
70 FilterIterator it = std::ranges::next(view.begin(), view.end()); in test()
84 FilterView view = make_filter_view(array.begin(), array.end(), EqualTo{1}); in test() local
85 FilterIterator it = view.begin(); in test()
99 FilterView view = make_filter_view(array.begin(), array.end(), EqualTo{1}); in test() local
100 FilterIterator it = std::ranges::next(view.begin(), view.end()); in test()
H A Dcompare.pass.cpp36 View view{Iterator(begin), Sentinel(Iterator(end))}; in test() local
37 return FilterView(std::move(view), pred); in test()
42 FilterView view = make_filter_view(array.begin(), array.end(), AlwaysTrue{}); in test() local
43 FilterIterator it1 = view.begin(); in test()
44 FilterIterator it2 = view.begin(); in test()
54 FilterView view = make_filter_view(array.begin(), array.end(), AlwaysTrue{}); in test() local
55 assert(!(view.begin() == view.end())); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.lazy.split/
H A Dconstraints.compile.pass.cpp42 static_assert( std::ranges::view<View>);
43 static_assert( std::ranges::view<Pattern>);
57 static_assert( std::ranges::view<View>);
58 static_assert( std::ranges::view<Pattern>);
91 static_assert( std::ranges::view<View>);
106 static_assert(!std::ranges::view<View>);
121 static_assert( std::ranges::view<View>);
142 static_assert( std::ranges::view<View>);
159 static_assert( std::ranges::view<View>);
182 static_assert( std::ranges::view<View>);
[all …]
H A Dadaptor.pass.cpp26 concept CanBePiped = requires (View&& view, T&& t) {
27 { std::forward<View>(view) | std::forward<T>(t) };
59 SomeView view(input); in test() local
62 std::same_as<Result> decltype(auto) result = std::views::lazy_split(view, sep); in test()
69 SomeView view(input); in test() local
72 std::same_as<Result> decltype(auto) result = std::views::lazy_split(sep)(view); in test()
79 SomeView view(input); in test() local
89 SomeView view(input); in test() local
94 std::same_as<Result> decltype(auto) result = partial(view); in test()
101 SomeView view(input); in test() local
[all …]
/llvm-project-15.0.7/clang/tools/clang-format-vs/ClangFormat/
H A DClangFormatPackage.cs289 IWpfTextView view = Vsix.GetCurrentView(); in FormatSelection()
290 if (view == null) in FormatSelection()
293 string text = view.TextBuffer.CurrentSnapshot.GetText(); in FormatSelection()
301 string path = Vsix.GetDocumentParent(view); in FormatSelection()
302 string filePath = Vsix.GetDocumentPath(view); in FormatSelection()
322 if (view == null) in FormatView()
326 string filePath = Vsix.GetDocumentPath(view); in FormatView()
329 string text = view.TextBuffer.CurrentSnapshot.GetText(); in FormatView()
332 view.TextBuffer.Insert(view.TextBuffer.CurrentSnapshot.Length, Environment.NewLine); in FormatView()
344 ApplyClangFormatReplacements(replacements, view); in RunClangFormatAndApplyReplacements()
[all …]
/llvm-project-15.0.7/libcxx/include/
H A Dranges60 // [range.view], views
67 concept view = ...;
131 // [range.all], all view
162 // [range.drop], drop view
163 template<view V>
180 template<view V>
185 template<view V>
195 // [range.take], take view
212 // [range.join], join view
222 requires view<V> && view<Pattern> &&
[all …]
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dundef-arg-super-method-call.m7 + (void)addViewLayerInfo:(id)view;
8 - (void)addInstViewLayerInfo:(id)view;
17 …[super addViewLayerInfo:view]; // expected-error {{use of undeclared identifier 'view'; did you me…
21 …[super addInstViewLayerInfo:view]; // expected-error {{use of undeclared identifier 'view'; did yo…
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/sentinel/
H A Dcompare.pass.cpp31 std::ranges::filter_view view(std::move(v), AlwaysTrue{}); in test() local
32 auto const it = view.begin(); in test()
33 auto const sent = view.end(); in test()
39 std::ranges::filter_view view(std::move(v), [](auto) { return false; }); in test() local
40 auto const it = view.begin(); in test()
41 auto const sent = view.end(); in test()

12345678910>>...23