/llvm-project/libcxx/test/support/ |
H A D | test_container_comparisons.h | 19 template <template <typename...> typename Container, typename Elem, typename Order> 23 Container<Elem> l1; in test_sequence_container_spaceship_with_type() 24 Container<Elem> l2; in test_sequence_container_spaceship_with_type() 29 Container<Elem> l1{1, 1}; in test_sequence_container_spaceship_with_type() 30 Container<Elem> l2{1, 1}; in test_sequence_container_spaceship_with_type() 35 Container<Elem> l1{1, 1}; in test_sequence_container_spaceship_with_type() 36 Container<Elem> l2{1, 2}; in test_sequence_container_spaceship_with_type() 41 Container<Elem> l1{1, 3}; in test_sequence_container_spaceship_with_type() 42 Container<Elem> l2{1, 2}; in test_sequence_container_spaceship_with_type() 47 Container<Elem> l1{1}; in test_sequence_container_spaceship_with_type() [all …]
|
H A D | deduction_guides_sfinae_checks.h | 65 template<template<typename ...> class Container, typename InstantiatedContainer, typename BadAlloc … 83 LIBCPP_STATIC_ASSERT(SFINAEs_away<Container, OutputIter, OutputIter>); in SequenceContainerDeductionGuidesSfinaeAway() 88 LIBCPP_STATIC_ASSERT(SFINAEs_away<Container, OutputIter, OutputIter, Alloc>); in SequenceContainerDeductionGuidesSfinaeAway() 90 static_assert(SFINAEs_away<Container, Iter, Iter, BadAlloc>); in SequenceContainerDeductionGuidesSfinaeAway() 95 static_assert(SFINAEs_away<Container, Alloc>); in SequenceContainerDeductionGuidesSfinaeAway() 103 static_assert(SFINAEs_away<Container, std::from_range_t, BadRange>); in SequenceContainerDeductionGuidesSfinaeAway() 108 static_assert(SFINAEs_away<Container, std::from_range_t, RangeT<int>, BadAlloc>); in SequenceContainerDeductionGuidesSfinaeAway() 114 // - an allocator instead of a container; 115 // - an allocator and a container that uses a different allocator; 117 template<template<typename ...> class Container, typename InstantiatedContainer> [all …]
|
H A D | container_debug_tests.h | 88 template <class Container, class ValueType = typename Container::value_type> 98 template <class Container> 99 struct ContainerDebugHelper<Container, char> { 105 template <class Container, class Key, class Value> 106 struct ContainerDebugHelper<Container, std::pair<const Key, Value> > { 118 template <class Container, ContainerType CT, 119 class Helper = ContainerDebugHelper<Container> > 121 using value_type = typename Container::value_type; 122 using iterator = typename Container::iterator; 123 using const_iterator = typename Container::const_iterator; [all …]
|
/llvm-project/libcxx/test/std/containers/unord/ |
H A D | from_range_unordered_containers.h | 30 // template<container-compatible-range<value_type> R> 31 // unordered-container(from_range_t, R&& rg, size_type n = see below, 35 // template<container-compatible-range<value_type> R> 36 // unordered-container(from_range_t, R&& rg, size_type n, const allocator_type& a) 37 // : unordered-container(from_range, std::forward<R>(rg), n, hasher(), key_equal(), a) { } // C++23 39 // template<container-compatible-range<value_type> R> 40 // unordered-container(from_range_t, R&& rg, size_type n, const hasher& hf, const allocator_type& a) 41 // : unordered-container(from_range, std::forward<R>(rg), n, hf, key_equal(), a) { } // C++23 43 template <class Container, class Range> 46 Container(st in requires() [all...] |
/llvm-project/clang/test/SemaObjC/ |
H A D | circular-container.m | 57 …]; // expected-warning {{adding '_array' to '_array' might cause circular dependency in container}} 58 …cted-warning {{adding '_dictionary' to '_dictionary' might cause circular dependency in container}} 59 …_set]; // expected-warning {{adding '_set' to '_set' might cause circular dependency in container}} 60 …cted-warning {{adding '_countedSet' to '_countedSet' might cause circular dependency in container}} 61 …cted-warning {{adding '_orderedSet' to '_orderedSet' might cause circular dependency in container}} 65 …ddObject:a]; // expected-warning {{adding 'a' to 'a' might cause circular dependency in container}} 69 …Key:@"key"]; // expected-warning {{adding 'd' to 'd' might cause circular dependency in container}} 73 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}} 77 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}} 81 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}} [all …]
|
/llvm-project/libcxx/benchmarks/ |
H A D | ContainerBenchmarks.h |
|
/llvm-project/libcxx/test/std/containers/associative/ |
H A D | from_range_associative_containers.h | 27 template <class Container, class Range> 29 Container(std::from_range, std::forward<Range>(range)); in requires() 30 Container(std::from_range, std::forward<Range>(range), std::less<typename Container::key_type>()); in requires() 31 Container(std::from_range, std::forward<Range>(range), std::less<typename Container::key_type>(), in requires() 32 std::allocator<typename Container::value_type>()); in requires() 33 Container(std::from_range, std::forward<Range>(range), std::allocator<typename Container::value_type>()); in requires() 36 template <template <class...> class Container, clas [all...] |
/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.sort/sort/ |
H A D | sort.pass.cpp | 34 template <class Container, class RI> 40 Container save(l - f); in test_sort_helper() 63 template <class Container, class RI> 72 test_sort_helper<Container>(f, real_last); in test_sort_driver_driver() 75 test_sort_driver_driver<Container>(f, i, start-1, real_last); in test_sort_driver_driver() 79 template <class Container, class RI> 83 test_sort_driver_driver<Container>(f, l, start, l); in test_sort_driver() 86 template <class Container, int sa> 90 Container ia(sa); in test_sort_() 93 test_sort_driver<Container>(i in test_sort_() [all...] |
/llvm-project/libcxx/test/libcxx/debug/containers/ |
H A D | sequence_container_iterators.pass.cpp | 12 // test container debugging 24 template <class Container, ContainerType CT> 25 struct SequenceContainerChecks : BasicContainerChecks<Container, CT> { 26 using Base = BasicContainerChecks<Container, CT>; 27 using value_type = typename Container::value_type; 28 using allocator_type = typename Container::allocator_type; 29 using iterator = typename Container::iterator; 30 using const_iterator = typename Container::const_iterator; 70 Container C = {1, 1, 1, 1}; in SanityTest() 78 Container C = makeContainer(1); in RemoveFirstElem() [all …]
|
/llvm-project/clang/include/clang/AST/ |
H A D | AttrIterator.h | 34 template <typename SpecificAttr, typename Container = AttrVec> 36 using Iterator = typename Container::const_iterator; 101 template <typename SpecificAttr, typename Container> in specific_attr_begin() argument 102 inline specific_attr_iterator<SpecificAttr, Container> in specific_attr_begin() 103 specific_attr_begin(const Container& container) { in specific_attr_begin() 104 return specific_attr_iterator<SpecificAttr, Container>(container.begin()); 106 template <typename SpecificAttr, typename Container> in specific_attr_end() argument 107 inline specific_attr_iterator<SpecificAttr, Container> in specific_attr_end() 111 hasSpecificAttr(const Container & container) hasSpecificAttr() argument 116 getSpecificAttr(const Container & container) getSpecificAttr() argument [all...] |
/llvm-project/.github/workflows/ |
H A D | build-ci-container.yml | 1 name: Build CI Container 11 - .github/workflows/build-ci-container.yml 17 - .github/workflows/build-ci-container.yml 21 build-ci-container: 25 container-name: ${{ steps.vars.outputs.container-name }} 26 container-name-agent: ${{ steps.vars.outputs.container-name-agent }} 27 container-name-tag: ${{ steps.vars.outputs.container [all...] |
/llvm-project/clang/test/Analysis/ |
H A D | inner-pointer.cpp | 54 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char() 55 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char() 57 consume(d); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char() 58 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char() 70 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char_data_non_const() 71 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char_data_non_const() 89 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t() 90 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t() 92 consume(d); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t() 93 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t() [all …]
|
/llvm-project/lldb/test/API/commands/command/container/ |
H A D | TestContainerCommands.py | 2 Test user added container commands 27 "command container add process", 28 "Can't replace builtin container command", 33 "command container add process non_such_subcommand", 39 "command container add process launch", 45 # Now lets make a container command: 46 self.runCmd("command container add -h 'A test container command' test-multi") 51 substrs=["A test container command"], 55 "command container add -h 'A test container sub-command' test-multi test-multi-sub" 62 "A test container command", [all …]
|
/llvm-project/libcxx/test/std/containers/sequences/ |
H A D | insert_range_sequence_containers.h | 33 template <class Container, class Range> 34 concept HasInsertRange = requires (Container& c, Range&& range) { in requires() 38 template <template <class...> class Container, class T, class U> 41 static_assert(HasInsertRange<Container<T>, InputRange<T>>); in test_constraints_insert_range() 43 static_assert(HasInsertRange<Container<T>, InputRange<U>>); in test_constraints_insert_range() 45 static_assert(!HasInsertRange<Container<T>, InputRange<Empty>>); in test_constraints_insert_range() 47 static_assert(!HasInsertRange<Container<T>, InputRangeNotDerivedFrom>); in test_constraints_insert_range() 48 static_assert(!HasInsertRange<Container<T>, InputRangeNotIndirectlyReadable>); in test_constraints_insert_range() 49 static_assert(!HasInsertRange<Container<T>, InputRangeNotInputOrOutputIterator>); in test_constraints_insert_range() 54 template <class Container, class Range> [all …]
|
H A D | from_range_sequence_containers.h | 31 template <class Container, class Range> 33 Container(std::from_range, std::forward<Range>(range)); in requires() 34 Container(std::from_range, std::forward<Range>(range), std::allocator<typename Container::value_type>()); in requires() 37 template <template <class...> class Container, class T, class U> 40 static_assert(HasFromRangeCtr<Container<T>, InputRange<T>>); in test_constraints() 42 static_assert(HasFromRangeCtr<Container<T>, InputRange<U>>); in test_constraints() 44 static_assert(!HasFromRangeCtr<Container<T>, InputRange<Empty>>); in test_constraints() 46 static_assert(!HasFromRangeCtr<Container<T>, InputRangeNotDerivedFrom>); in test_constraints() 47 static_assert(!HasFromRangeCtr<Container< in test_constraints() [all...] |
/llvm-project/libcxx/test/std/containers/ |
H A D | set_allocator_requirement_test_templates.h | 31 template <class Container> 34 typedef typename Container::value_type ValueTp; in testSetInsert() 39 Container c; in testSetInsert() 52 Container c; in testSetInsert() 65 Container c; in testSetInsert() 78 Container c; in testSetInsert() 91 Container c; in testSetInsert() 103 Container c; in testSetInsert() 115 Container c; in testSetInsert() 130 Container c; in testSetInsert() [all …]
|
H A D | map_allocator_requirement_test_templates.h | 32 template <class Container> 35 typedef typename Container::value_type ValueTp; in testMapInsert() 40 Container c; in testMapInsert() 53 Container c; in testMapInsert() 66 Container c; in testMapInsert() 79 Container c; in testMapInsert() 92 Container c; in testMapInsert() 104 Container c; in testMapInsert() 116 Container c; in testMapInsert() 128 Container c; in testMapInsert() [all …]
|
/llvm-project/llvm/test/tools/dsymutil/X86/ |
H A D | union-fwd-decl.test | 3 $ cat container.cpp 4 #include "container.h" 12 Container *c = (Container *)malloc(sizeof(Container)); 25 $ cat container.h 28 struct Container { 34 typedef Container *ContainerPtr; 37 #include "container.h" 42 $ clang++ -O0 -g container.cpp -c -o container.o 44 $ clang++ use.o container.o -o a.out 60 CHECK-NEXT: DW_AT_decl_file ("{{.*}}container.cpp")
|
H A D | linker-llvm-union-fwd-decl.test | 3 $ cat container.cpp 4 #include "container.h" 12 Container *c = (Container *)malloc(sizeof(Container)); 25 $ cat container.h 28 struct Container { 34 typedef Container *ContainerPtr; 37 #include "container.h" 42 $ clang++ -O0 -g container.cpp -c -o container.o 44 $ clang++ use.o container.o -o a.out 62 CHECK-NEXT: DW_AT_decl_file ("{{.*}}container.cpp")
|
/llvm-project/libcxx/include/ |
H A D | stack | 19 template <class T, class Container = deque<T>> 23 typedef Container container_type; 45 template<container-compatible-range<T> R> stack(from_range_t, R&& rg); // since C++23 53 template<container-compatible-range<T> R, class Alloc> 63 template<container-compatible-range<T> R> 68 void swap(stack& c) noexcept(is_nothrow_swappable_v<Container>) 71 template<class Container> 72 stack(Container) -> stack<typename Container::value_type, Container>; // [all...] |
H A D | queue | 19 template <class T, class Container = deque<T>> 23 typedef Container container_type; 46 template<container-compatible-range<T> R> queue(from_range_t, R&& rg); // since C++23 59 template<container-compatible-range<T> R, class Alloc> 72 template<container-compatible-range<T> R> 77 void swap(queue& q) noexcept(is_nothrow_swappable_v<Container>) 80 template<class Container> 81 queue(Container) -> queue<typename Container::value_type, Container>; // [all...] |
/llvm-project/libcxx/test/std/containers/sequences/forwardlist/forwardlist.modifiers/ |
H A D | insert_range_after.pass.cpp | 11 // template<container-compatible-range<T> R> 19 template <class Container, class Range> 20 concept HasInsertRangeAfter = requires (Container& c, Range&& range) { 24 template <template <class...> class Container, class T, class U> 27 static_assert(HasInsertRangeAfter<Container<T>, InputRange<T>>); in test_constraints_insert_range_after() 29 static_assert(HasInsertRangeAfter<Container<T>, InputRange<U>>); in test_constraints_insert_range_after() 31 static_assert(!HasInsertRangeAfter<Container<T>, InputRange<Empty>>); in test_constraints_insert_range_after() 33 static_assert(!HasInsertRangeAfter<Container<T>, InputRangeNotDerivedFrom>); in test_constraints_insert_range_after() 34 static_assert(!HasInsertRangeAfter<Container<T>, InputRangeNotIndirectlyReadable>); in test_constraints_insert_range_after() 35 static_assert(!HasInsertRangeAfter<Container<T>, InputRangeNotInputOrOutputIterator>); in test_constraints_insert_range_after() [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/ |
H A D | container-contains.cpp | 1 // RUN: %check_clang_tidy -std=c++11-or-later %s readability-container-contains %t 42 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use 'contains' to check for membership [readability-container-contains] in testDifferentCheckTypes() 46 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: use 'contains' to check for membership [readability-container-contains] in testDifferentCheckTypes() 49 // CHECK-MESSAGES: :[[@LINE-1]]:37: warning: use 'contains' to check for membership [readability-container-contains] in testDifferentCheckTypes() 52 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: use 'contains' to check for membership [readability-container-contains] in testDifferentCheckTypes() 55 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: use 'contains' to check for membership [readability-container-contains] in testDifferentCheckTypes() 58 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: use 'contains' to check for membership [readability-container-contains] in testDifferentCheckTypes() 61 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: use 'contains' to check for membership [readability-container-contains] 69 // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: use 'contains' to check for membership [readability-container-contains] in testNegativeChecks() 72 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: use 'contains' to check for membership [readability-container in testNegativeChecks() [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/ |
H A D | use-ranges.cpp |
|
/llvm-project/libcxx/test/std/containers/container.adaptors/stack/stack.ops/ |
H A D | lt.pass.cpp | 11 // template <class T, class Container> 12 // bool operator< (const stack<T, Container>& x,const stack<T, Container>& y); 14 // template <class T, class Container> 15 // bool operator> (const stack<T, Container>& x,const stack<T, Container>& y); 17 // template <class T, class Container> 18 // bool operator>=(const stack<T, Container>& x,const stack<T, Container>& y); 20 // template <class T, class Container> 21 // bool operator<=(const stack<T, Container>& x,const stack<T, Container>& y);
|