Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 206) sorted by relevance

123456789

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Duse-after-move.cpp793 container.clear(); in standardContainerClearIsReinit()
794 container.empty(); in standardContainerClearIsReinit()
799 container.clear(); in standardContainerClearIsReinit()
800 container.empty(); in standardContainerClearIsReinit()
810 container.clear(); in standardContainerClearIsReinit()
811 container.empty(); in standardContainerClearIsReinit()
816 container.clear(); in standardContainerClearIsReinit()
817 container.empty(); in standardContainerClearIsReinit()
822 container.clear(); in standardContainerClearIsReinit()
886 } container; in standardContainerClearIsReinit() local
[all …]
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dcircular-container.m65 …ddObject:a]; // expected-warning {{adding 'a' to 'a' 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}}
87 …ddObject:a]; // expected-warning {{adding 'a' to 'a' might cause circular dependency in container}}
95 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}}
99 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}}
103 …ddObject:s]; // expected-warning {{adding 's' to 's' might cause circular dependency in container}}
113 a[0] = a; // expected-warning {{adding 'a' to 'a' might cause circular dependency in container}}
122 …@"key"] = d; // expected-warning {{adding 'd' to 'd' might cause circular dependency in container}}
[all …]
H A Ddeprecate_function_containers.m5 void p_foo(void) {} // expected-warning {{function definition inside an Objective-C container is de…
9 void foo(void) {} // expected-warning {{function definition inside an Objective-C container is depr…
10 …(void) {} // expected-warning {{function definition inside an Objective-C container is deprecated}}
11 …turn 0; } // expected-warning {{function definition inside an Objective-C container is deprecated}}
12 …turn 1; } // expected-warning {{function definition inside an Objective-C container is deprecated}}
16 void cat_foo(void) {} // expected-warning {{function definition inside an Objective-C container is …
32 …k)(id)) { // expected-warning {{function definition inside an Objective-C container is deprecated}}
34 …-C property in function nested in Objective-C container not supported, move function outside its c…
/llvm-project-15.0.7/libcxxabi/test/
H A Dtest_fallback_malloc.pass.cpp23 typedef std::deque<void *> container; typedef
29 container alloc_series ( size_t sz ) { in alloc_series()
30 container ptrs; in alloc_series()
38 container alloc_series ( size_t sz, float growth ) { in alloc_series()
39 container ptrs; in alloc_series()
50 container alloc_series ( const size_t *first, size_t len ) { in alloc_series()
51 container ptrs; in alloc_series()
64 void *pop ( container &c, bool from_end ) { in pop()
78 container ptrs; in exhaustion_test1()
109 container ptrs; in exhaustion_test2()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAttrIterator.h101 specific_attr_begin(const Container& container) { in specific_attr_begin() argument
102 return specific_attr_iterator<SpecificAttr, Container>(container.begin()); in specific_attr_begin()
106 specific_attr_end(const Container& container) { in specific_attr_end() argument
107 return specific_attr_iterator<SpecificAttr, Container>(container.end()); in specific_attr_end()
111 inline bool hasSpecificAttr(const Container& container) { in hasSpecificAttr() argument
112 return specific_attr_begin<SpecificAttr>(container) != in hasSpecificAttr()
113 specific_attr_end<SpecificAttr>(container); in hasSpecificAttr()
116 inline SpecificAttr *getSpecificAttr(const Container& container) { in getSpecificAttr() argument
118 specific_attr_begin<SpecificAttr>(container); in getSpecificAttr()
119 if (i != specific_attr_end<SpecificAttr>(container)) in getSpecificAttr()
/llvm-project-15.0.7/libc/fuzzing/stdlib/
H A Datof_differential_fuzz.cpp20 uint8_t *container = new uint8_t[size + 1]; in LLVMFuzzerTestOneInput() local
21 if (!container) in LLVMFuzzerTestOneInput()
26 container[i] = data[i]; in LLVMFuzzerTestOneInput()
27 container[size] = '\0'; // Add null terminator to container. in LLVMFuzzerTestOneInput()
29 StringParserOutputDiff<double>(&__llvm_libc::atof, &::atof, container, size); in LLVMFuzzerTestOneInput()
30 delete[] container; in LLVMFuzzerTestOneInput()
/llvm-project-15.0.7/llvm/test/tools/dsymutil/X86/
H A Dunion-fwd-decl.test3 $ cat container.cpp
4 #include "container.h"
25 $ cat container.h
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")
/llvm-project-15.0.7/libc/fuzzing/string/
H A Dstrstr_fuzz.cpp46 uint8_t *container = new uint8_t[size1 + 1]; in LLVMFuzzerTestOneInput() local
47 if (!container) in LLVMFuzzerTestOneInput()
52 container[i] = data[i]; in LLVMFuzzerTestOneInput()
53 container[size1] = '\0'; // Add null terminator to container. in LLVMFuzzerTestOneInput()
55 const char *needle = reinterpret_cast<const char *>(container); in LLVMFuzzerTestOneInput()
83 delete[] container; in LLVMFuzzerTestOneInput()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/
H A Dcontainer-contains.rst1 .. title:: clang-tidy - readability-container-contains
3 readability-container-contains
6 Finds usages of ``container.count()`` and ``container.find() == container.end()`` which should be r…
8 Whether an element is contained inside a container should be checked with ``contains`` instead of `…
H A Dcontainer-data-pointer.rst1 .. title:: clang-tidy - readability-container-data-pointer
3 readability-container-data-pointer
7 element at index 0 in a container. This pattern is commonly used to materialize
8 a pointer to the backing data of a container. ``std::vector`` and
12 This also ensures that in the case that the container is empty, the data pointer
H A Dcontainer-size-empty.rst1 .. title:: clang-tidy - readability-container-size-empty
3 readability-container-size-empty
10 The emptiness of a container should be checked using the ``empty()`` method
15 ``empty()`` whenever possible makes it easier to switch to another container in
18 The check issues warning if a container has ``size()`` and ``empty()`` methods
/llvm-project-15.0.7/libcxx/include/__iterator/
H A Dback_insert_iterator.h35 _Container* container;
48 …_CONSTEXPR_AFTER_CXX17 explicit back_insert_iterator(_Container& __x) : container(_VSTD::addressof… in back_insert_iterator()
50 {container->push_back(__value); return *this;}
53 {container->push_back(_VSTD::move(__value)); return *this;}
59 …DE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 _Container* __get_container() const { return container; } in __get_container()
H A Dfront_insert_iterator.h35 _Container* container;
48 …CONSTEXPR_AFTER_CXX17 explicit front_insert_iterator(_Container& __x) : container(_VSTD::addressof… in front_insert_iterator()
50 {container->push_front(__value); return *this;}
53 {container->push_front(_VSTD::move(__value)); return *this;}
/llvm-project-15.0.7/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/
H A Dctor_alloc.pass.cpp26 test(const container_type& container, const test_allocator<int>& a) : base(container, a) {} in test()
28 … test(container_type&& container, const test_allocator<int>& a) : base(std::move(container), a) {} in test()
H A Dctor_container_alloc.pass.cpp39 test(const container_type& container, const test_allocator<int>& a) : base(container, a) {} in test()
41 … test(container_type&& container, const test_allocator<int>& a) : base(std::move(container), a) {} in test()
H A Dctor_rcontainer_alloc.pass.cpp45 test(const container_type& container, const allocator_type& a) : base(container, a) {} in test()
46 test(container_type&& container, const allocator_type& a) : base(std::move(container), a) {} in test()
H A Dctor_rqueue_alloc.pass.cpp45 test(const container_type& container, const allocator_type& a) : base(container, a) {} in test()
46 test(container_type&& container, const allocator_type& a) : base(std::move(container), a) {} in test()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A DPR11358.cpp6 struct container { struct
13 typedef container<T> Container;
39 struct container { struct
45 typedef container<T> Container;
/llvm-project-15.0.7/mlir/lib/IR/
H A DRegion.cpp14 Region::Region(Operation *container) : container(container) {} in Region() argument
25 assert(container && "region is not attached to a container"); in getContext()
26 return container->getContext(); in getContext()
32 assert(container && "region is not attached to a container"); in getLoc()
33 return container->getLoc(); in getLoc()
46 assert(container && "region is not attached to a container"); in getParentRegion()
47 return container->getParentRegion(); in getParentRegion()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/
H A Dloop-convert.rst21 In loops where the container expression is more complex than just a
55 for (int i = 0; i < container.size(); ++i)
56 cout << container[i];
125 ``rbegin`` and ``rend`` for looping backwards over a container. Out of the box
192 for (iterator it = container.begin(), e = container.end(); it != e; ++it) { }
197 for (iterator it = container.begin(); it != container.end(); ++it) { }
201 As explained above, calling member functions of the container in the body
203 container the semantics of the converted loop will differ due to ``.end()``
244 return container.end();
271 the iterator or container was modified within the loop, it is possible to
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/container.adaptors/priority.queue/priqueue.cons.alloc/
H A Dctor_comp_alloc.pass.cpp31 test(const value_compare& compare, const container_type& container, in test()
32 const test_allocator<int>& a) : base(compare, container, a) {} in test()
34 test(const value_compare& compare, container_type&& container, in test()
35 const test_allocator<int>& a) : base(compare, std::move(container), a) {} in test()
H A Dctor_alloc.pass.cpp31 test(const value_compare& comp, const container_type& container, in test()
32 const test_allocator<int>& a) : base(comp, container, a) {} in test()
34 test(const value_compare& comp, container_type&& container, in test()
35 const test_allocator<int>& a) : base(comp, std::move(container), a) {} in test()
H A Dctor_comp_cont_alloc.pass.cpp42 test(const value_compare& compare, const container_type& container, in test()
43 const test_allocator<int>& a) : base(compare, container, a) {} in test()
45 test(const value_compare& compare, container_type&& container, in test()
46 const test_allocator<int>& a) : base(compare, std::move(container), a) {} in test()
H A Dctor_comp_rcont_alloc.pass.cpp42 test(const value_compare& compare, const container_type& container, in test()
43 const test_allocator<int>& a) : base(compare, container, a) {} in test()
45 test(const value_compare& compare, container_type&& container, in test()
46 const test_allocator<int>& a) : base(compare, std::move(container), a) {} in test()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dsizeof-container.rst1 .. title:: clang-tidy - bugprone-sizeof-container
3 bugprone-sizeof-container
6 The check finds usages of ``sizeof`` on expressions of STL container types. Most
18 …int a = 47 + sizeof(s); // warning: sizeof() doesn't return the size of the container. Did you mea…

123456789